index.blade.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. @extends('layouts.pro-logged-in')
  2. @section('content')
  3. <div class="d-flex mb-2">
  4. <div><i class="fa fa-users" aria-hidden="true"></i> Pros</div>
  5. <div class="ml-auto">
  6. <a class="btn btn-primary btn-sm" href="{{route('pro-create')}}">
  7. <i class="fa fa-plus-circle" aria-hidden="true"></i>
  8. Add new
  9. </a>
  10. </div>
  11. </div>
  12. <div class="table-responsive p-0">
  13. <table class="table table-hover text-nowrap">
  14. <thead>
  15. <tr>
  16. <th>#</th>
  17. <th>cell_number</th>
  18. <th>email_address</th>
  19. <th>name_credential</th>
  20. <th>name_display</th>
  21. <th>name_first</th>
  22. <th>name_last</th>
  23. <th>name_middle</th>
  24. <th>name_prefix</th>
  25. <th>name_suffix</th>
  26. <th>is_active</th>
  27. </tr>
  28. </thead>
  29. <tbody>
  30. @foreach($pros as $pro)
  31. <tr>
  32. <td>{{$pro->id}}</td>
  33. <td><a href="{{route('pro-show', $pro->uid)}}">{{$pro->cell_number}}</a></td>
  34. <td><a href="{{route('pro-show', $pro->uid)}}">{{$pro->email_address}}</a></td>
  35. <td>{{$pro->name_credential}}</td>
  36. <td>{{$pro->name_display}}</td>
  37. <td>{{$pro->name_first}}</td>
  38. <td>{{$pro->name_last}}</td>
  39. <td>{{$pro->name_middle}}</td>
  40. <td>{{$pro->name_prefix}}</td>
  41. <td>{{$pro->name_suffix}}</td>
  42. <td>{{$pro->is_active}}</td>
  43. </tr>
  44. @endforeach
  45. </tbody>
  46. </table>
  47. </div>
  48. @endsection