log-in-as.blade.php 1.8 KB

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