


<?php $__env->startPush('plugin-styles'); ?>
<?php $__env->stopPush(); ?>

<?php $__env->startSection('content'); ?>
<div class="row">

  <div class="col-lg-12 grid-margin stretch-card">
    <div class="card">
      
      <div class="card-body">
       
        <div style="clear: both;">
            <h4 class="card-title">Contatos</h4>
            <p class="card-description"> Listagem de Contatos </p>
        </div>

        <div class="table-responsive">
          <div id="pesquisar">
            <div style="float: right; width: 50%; padding-right: 16px;">
                <?php if(Auth::user()->eAdmin() || Auth::user()->existeRule('Sucesso do cliente')): ?> 
                  <form action="<?php echo e(route('contato.export')); ?>" method="post" enctype="multipart/form-data">
                    <?php echo csrf_field(); ?>
                    <div class="row clearfix">
                      <div class="col-sm-6">
                          <div class="form-group">
                              <div class="input-group">
                                <input type="date" name="dt_inicial" id="dt_inicial" class="validate form-control"
                                    Placeholder="Data Inicial">
                            </div>
                          </div>
                        </div>
                        <div class="col-sm-6">
                          <div class="form-group">
                              <div class="input-group">                                 
                                <input type="date" name="dt_final" id="dt_final" class="validate form-control"
                                    Placeholder="Data Final">    
                            </div>
                          </div>
                        </div>
                        </div>
                    
                        
                      <div style="text-align: right">
                        <button type="submit" data-action="<?php echo e(route('contato.export')); ?>" class="btn btn-success">Exportar</button>
                      </div>
                  </form>
                <?php endif; ?>

            </div>
          </div>

          <br /><br />
          <?php echo $__env->make('admin.contatos.table', $objs, \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

        </div>
      </div>
    </div>
  </div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layout.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/site.apoiocotacoes.com.br/apoio/resources/views/admin/contatos/index.blade.php ENDPATH**/ ?>