app.blade.php 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. @extends('layouts.core.app')
  2. @section('title')
  3. Privillage
  4. @endsection
  5. @section('pageIcon') fa fa-users-cog @endsection
  6. @section('pageTitle') Privillage User @endsection
  7. @section('subPageTitle') Setting Access Rights 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>Description</th>
  24. <th>Action</th>
  25. </tr>
  26. </thead>
  27. <tbody>
  28. @foreach($roles as $key => $value)
  29. <tr>
  30. <td>{{$value->role_name}}</td>
  31. <td>{{$value->description}}</td>
  32. <td>
  33. <?php $id = Crypt::encryptString($value->id) ?>
  34. <a class="btn btn-info btn-sm text-white" data-toggle="modal" href="{{ route('detailByIdPrivillage',$value->id) }}"><i class="fa fa-desktop"></i>&nbsp;&nbsp;DETAIL</a>
  35. @if($getEdit == $getKdModule)
  36. <a class="btn btn-success btn-sm text-white" data-toggle="modal" href="{{ route('viewByIdPrivillage',$value->id) }}"><i class="fa fa-edit"></i>&nbsp;&nbsp;EDIT</a>
  37. @endif
  38. @if($getDelete == $getKdModule)
  39. <a class="btn btn-danger btn-sm deleteConfirmation" href="{{ route ('deletePrivillage',$id)}}"><i class="fa fa-trash"></i>&nbsp;&nbsp;DELETE</a>
  40. @endif
  41. </td>
  42. </tr>
  43. @endforeach
  44. </tbody>
  45. </table>
  46. </div>
  47. </div>
  48. </div>
  49. </div>
  50. @endsection
  51. @section('modals')
  52. @include('layouts.dev.info.privillageUser.create')
  53. @endsection
  54. @section('script')
  55. @include('layouts.dev.info.privillageUser.request')
  56. @endsection