app.blade.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. @extends('layouts.core.app')
  2. @section('title')
  3. User Management
  4. @endsection
  5. @section('pageIcon') fa fa-users @endsection
  6. @section('pageTitle') User Management @endsection
  7. @section('subPageTitle') User Management for the ISR QR Code Service Portal Application. @endsection
  8. @section('content')
  9. <div class="col-lg-12">
  10. <div class="main-card mb-3 card">
  11. <div class="card-body">
  12. <h5 class="card-title">Master Data
  13. @if($getCreate == $getKdModule)
  14. @include('helpers.button.buttonCreate')
  15. @endif
  16. </h5>
  17. <br>
  18. <div class="table-responsive">
  19. <table id="dataTable" class="table table-striped table-bordered">
  20. <thead>
  21. <tr>
  22. <th>Name</th>
  23. <th>Email</th>
  24. <th>Role</th>
  25. <th>Action</th>
  26. </tr>
  27. </thead>
  28. <tbody>
  29. @foreach($users as $key => $value)
  30. <tr>
  31. <?php $id = Crypt::encryptString($value->id) ?>
  32. <td>{{$value->name}}</td>
  33. <td><a href="mailto:{{$value->email}}?Subject=Portal Layanan ISR QR Code" target="_top">{{$value->email}}</a></td>
  34. <td>{{\App\Model\Privillage\Role::where('id',$value->role_id)->value('role_name')}}</td>
  35. <td>
  36. <?php $id = Crypt::encryptString($value->id) ?>
  37. @include('helpers.button.buttonDetail')
  38. @if($getEdit == $getKdModule)
  39. @include('helpers.button.buttonEdit')
  40. @endif
  41. @if($getDelete == $getKdModule && $value->id != Auth::user()->id)
  42. <a class="btn btn-danger btn-sm deleteConfirmation" href="{{ route ('deleteUser',$id)}}"><i class="fa fa-trash"></i>&nbsp;&nbsp;DELETE</a>
  43. @endif
  44. </td>
  45. </tr>
  46. @endforeach
  47. </tbody>
  48. </table>
  49. </div>
  50. </div>
  51. </div>
  52. </div>
  53. @endsection
  54. @section('modals')
  55. @include('layouts.dev.info.userManagement.create')
  56. @include('layouts.dev.info.userManagement.edit')
  57. @include('layouts.dev.info.userManagement.detail')
  58. @endsection
  59. @section('script')
  60. @include('layouts.dev.info.userManagement.request')
  61. @endsection