print.blade.php 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. @include('templates.helpers.data')
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <style>
  6. .table-bordered {
  7. border-collapse: collapse;
  8. width: 100%;
  9. }
  10. .table-bordered td, .table-bordered th {
  11. border: 1px solid black;
  12. padding: 8px;
  13. }
  14. .thead-light{
  15. background-color: #E9ECEF;
  16. }
  17. .table-bordered th {
  18. padding-top: 12px;
  19. padding-bottom: 12px;
  20. text-align: left;
  21. }
  22. </style>
  23. </head>
  24. <body>
  25. <center>
  26. <div>
  27. <hr>
  28. <h2 class="font-weight-bolder">Lampiran Data Daftar Pengguna</h2>
  29. <hr>
  30. <table class="table table-sm table-bordered" width="400">
  31. <thead class="thead-light">
  32. <tr>
  33. <th scope="col">Nama Pengguna / Email</th>
  34. <th scope="col">Nama</th>
  35. <th scope="col">Level</th>
  36. <th scope="col">Provinsi</th>
  37. <th scope="col">UPT</th>
  38. <th scope="col">No. Telp</th>
  39. <th scope="col">No. HP</th>
  40. <th scope="col">No. Fax</th>
  41. <th scope="col">Alamat</th>
  42. <th scope="col">Tanggal Buat</th>
  43. <th scope="col">Tanggal Diperbaharui</th>
  44. </tr>
  45. </thead>
  46. <tbody>
  47. @foreach($users as $user)
  48. <tr>
  49. <?php
  50. $upts = \App\Model\Setting\UPT::where('office_id',$user->upt)->select('office_name')->distinct()->value('office_name');
  51. ?>
  52. <td>{{$user->email}}</td>
  53. <td>{{$user->name}}</td>
  54. <td>{{\App\Model\Privillage\Role::where('id',$user->role_id)->value('role_name')}}</td>
  55. <td>{{\App\Model\Region\Provinsi::where('id',$user->province_code)->value('nama')}}</td>
  56. <td>{{$upts}}</td>
  57. <td>{{$user->no_telp}}</td>
  58. <td>{{$user->no_hp}}</td>
  59. <td>{{$user->no_fax}}</td>
  60. <td>{{$user->alamat}}</td>
  61. <td>{{$user->created_at}}</td>
  62. <td>{{$user->updated_at}}</td>
  63. </tr>
  64. @endforeach
  65. </tbody>
  66. </table>
  67. <hr>
  68. </div>
  69. </center>
  70. </body>
  71. </html>