log-in-as.blade.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. @extends ('layouts/template')
  2. @section('content')
  3. <div class="p-3 mcp-theme-1">
  4. <div class="card">
  5. @if(session('message'))
  6. <div class="alert alert-info">{{session('message')}}</div>
  7. @endif
  8. <table class="table table-sm table-striped">
  9. <thead>
  10. <tr>
  11. <th>First Name</th>
  12. <th>Last Name</th>
  13. <th>Cell Number</th>
  14. <th>Email</th>
  15. <th></th>
  16. </tr>
  17. </thead>
  18. <tbody>
  19. @foreach($pros as $pro)
  20. <tr>
  21. <td>{{$pro->name_first}}</td>
  22. <td>{{$pro->name_last}}</td>
  23. <td>{{$pro->cell_number}}</td>
  24. <td>{{$pro->email}}</td>
  25. <td>
  26. <form action="{{route('process-log-in-as')}}" method="POST">
  27. @csrf
  28. <input type="hidden" name="proUid" value="{{$pro->uid}}">
  29. <button class="btn btn-primary">Login</button>
  30. </form>
  31. </td>
  32. </tr>
  33. @endforeach
  34. </tbody>
  35. </table>
  36. </div>
  37. </div>
  38. @endsection