view.blade.php 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. @extends('admin.layout.index')
  2. @push('css-head')
  3. @endpush
  4. @section('content')
  5. <!-- Page header -->
  6. <div class="page-header page-header-light">
  7. <div class="breadcrumb-line breadcrumb-line-light header-elements-md-inline">
  8. <div class="d-flex">
  9. <div class="breadcrumb">
  10. <a href="{{url('/admin')}}" class="breadcrumb-item"><i class="icon-home2 mr-2"></i> Dashboard</a>
  11. <a href="{{url('/admin/admins')}}" class="breadcrumb-item"> Admins</a>
  12. <span class="breadcrumb-item active">View</span>
  13. </div>
  14. </div>
  15. </div>
  16. </div>
  17. <!-- /page header -->
  18. <!-- Content area -->
  19. <div class="content">
  20. <div class="card">
  21. <div class="table-responsive">
  22. <table class="table">
  23. <tbody>
  24. <tr>
  25. <td class="font-weight-bold">Name:</td>
  26. <td>{{ $admin->name }}</td>
  27. </tr>
  28. <tr>
  29. <td class="font-weight-bold">Email:</td>
  30. <td>{{ $admin->email }}</td>
  31. </tr>
  32. <td class="font-weight-bold">Role:</td>
  33. <td>{{ $admin->roles->first()?$admin->roles->first()->name:'--' }}</td>
  34. </tr>
  35. <tr>
  36. <td class="font-weight-bold">Status:</td>
  37. <td>
  38. @if($admin->status == 1)
  39. <span class="badge bg-success">{{ 'On' }}</span>
  40. @else
  41. <span class="badge bg-danger">{{ 'Off' }}</span>
  42. @endif
  43. </td>
  44. </tr>
  45. <tr>
  46. <td class="font-weight-bold">Created at:</td>
  47. <td>{{date('F j, y h:i a', strtotime($admin->created_at))}}</td>
  48. </tr>
  49. </tbody>
  50. </table>
  51. </div>
  52. </div>
  53. </div>
  54. <!-- /content area -->
  55. @endsection
  56. @push('scripts')
  57. @endpush