index.blade.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. @extends('layouts.pro')
  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. <table class="table table-sm">
  13. <thead class="thead-light">
  14. <tr>
  15. <th>#</th>
  16. <th>cell_number</th>
  17. <th>email_address</th>
  18. <th>name_credential</th>
  19. <th>name_display</th>
  20. <th>name_first</th>
  21. <th>name_last</th>
  22. <th>name_middle</th>
  23. <th>name_prefix</th>
  24. <th>name_suffix</th>
  25. <th>is_active</th>
  26. </tr>
  27. </thead>
  28. <tbody>
  29. @foreach($pros as $pro)
  30. <tr>
  31. <td>{{$pro->id}}</td>
  32. <td><a href="{{route('pro-show', $pro->uid)}}">{{$pro->cell_number}}</a></td>
  33. <td><a href="{{route('pro-show', $pro->uid)}}">{{$pro->email_address}}</a></td>
  34. <td>{{$pro->name_credential}}</td>
  35. <td>{{$pro->name_display}}</td>
  36. <td>{{$pro->name_first}}</td>
  37. <td>{{$pro->name_last}}</td>
  38. <td>{{$pro->name_middle}}</td>
  39. <td>{{$pro->name_prefix}}</td>
  40. <td>{{$pro->name_suffix}}</td>
  41. <td>{{$pro->is_active}}</td>
  42. </tr>
  43. @endforeach
  44. </tbody>
  45. </table>
  46. @endsection