list.blade.php 1.49 KB
Newer Older
Angel MAS committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
@extends('layouts.admin.admin-layout')

@section('content')
 <div class="row"> 
  <div class="col-md-12">
    <div class="box">
      <div class="box-header dark">
        <h2>Listado de clientes</h2>
      </div>

        <div class="box-body">

          <div class='table-responsive'>
            <table class='table table-striped b-t b-b table-hover' id='registros'>
              <thead>
                <tr>
                  <th>Id</th>
                  <th>Nombre</th>
                  <th>Correo</th>
                  <th>Teléfono</th>
                  <th>Landing</th>
                  <th>Origin</th>
                  <th>Fecha de registro</th>
                  <th>URL</th>
                </tr>
              </thead>
            </table>
          </div>
        </div>

        <div class="dker p-a text-right">  
        </div>
        
    </div>
  </div>


</div>
@endsection

@push('scripts')
<script>
  $(function() {
    $('#registros').DataTable({
      processing: true,
      serverSide: true,
      pageLength: 25,
      ajax: '{{ route("crm.datatable") }}',
      columns: [
            {data: 'id', name: 'id'},
            {data: 'name', name: 'name'},
            {data: 'email', name: 'email'},
            {data: 'phone', name: 'phone'},
            {data: 'landing', name: 'landing'},
            {data: 'origin', name: 'origin'},
            {data: 'created_at', name: 'created_at'},
            {data: 'details_url', name: 'details_url'}
        ]
    });

  });
</script>
@endpush