<?php $__env->startSection('content'); ?>
         <div class="container">
               <h2>Suas Leads</h2>
            <table class="display" id="laravel_datatable">
               <thead>
                  <tr>
                     <th>Nome</th>
                     <th>Data</th>
                     <th>Produto</th>
                     <th>Proposta</th>
                     <th>Status</th>
                     <th>Editar</th>
                  </tr>
               </thead>
            </table>
         </div>
   <script>
   $(document).ready( function () {
    $('#laravel_datatable').DataTable({
           processing: true,
           serverSide: true,
           "order": [
                [1, "desc"]
            ],
           ajax: "<?php echo e(url('myleads-list')); ?>",
           columns: [
                     { data: 'nome', name: 'nome' },
                     { data: 'designated_at', name: 'designated_at' },
                     { data: 'produto', name: 'produto' },
                     { data: 'proposta', name: 'proposta' },
                     { data: 'status', name: 'status' },
                     { data: 'lead_id', name: 'lead_id', render:function(data, type, row){
                        return "<a class='btn btn-outline-info' href='myleads/"+ row.lead_id +"/edit'><i class='far fa-eye' aria-hidden='true'></i></a>"
                        }}
                     ,
                     ]
         });
      });
   </script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\wamp64\www\resources\views/myleads.blade.php ENDPATH**/ ?>