index.blade.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. @extends('layouts.admin')
  2. @section('content')
  3. <div class="container">
  4. <div class="row">
  5. <div class="col-12">
  6. <div class="bg-primary p-3">
  7. <h4 class="m-0 text-white">Website Forms</h4>
  8. </div>
  9. <div class="my-2">Showing <b>{{ $records->firstItem() }}</b> to <b>{{ $records->lastItem() }}</b> of total <b>{{$records->total()}}</b> records</div>
  10. <div class="table-responsive">
  11. <table class="table table-sm table-bordered table-striped">
  12. <thead>
  13. <tr>
  14. <th>Date</th>
  15. <th>IID</th>
  16. <th>Form Name</th>
  17. <th>IP Address</th>
  18. <th>Device Type</th>
  19. <th>Form Data</th>
  20. </tr>
  21. </thead>
  22. <tbody>
  23. @foreach($records as $record)
  24. <tr>
  25. <td>{{ $record->created_at }}</td>
  26. <td>{{ $record->iid }}</td>
  27. <td>{{ $record->form_name }}</td>
  28. <td>{{ $record->ip_address }}</td>
  29. <td>{{ $record->device_type }}</td>
  30. <td>{{ $record->form_data }}</td>
  31. </tr>
  32. @endforeach
  33. </tbody>
  34. </table>
  35. </div>
  36. <div>
  37. {{ $records->appends(request()->input())->links() }}
  38. </div>
  39. </div>
  40. </div>
  41. </div>
  42. @endsection