print-search.blade.php 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <style>
  5. .table-bordered {
  6. border-collapse: collapse;
  7. width: 100%;
  8. }
  9. .table-bordered td, .table-bordered th {
  10. border: 1px solid black;
  11. padding: 8px;
  12. }
  13. .thead-light{
  14. background-color: #E9ECEF;
  15. }
  16. .table-bordered th {
  17. padding-top: 12px;
  18. padding-bottom: 12px;
  19. text-align: left;
  20. }
  21. </style>
  22. </head>
  23. <body>
  24. <center>
  25. <div>
  26. <hr>
  27. <h2 class="font-weight-bolder">Lampiran Data Bahan Sosialisasi</h2>
  28. <hr>
  29. <table id="example" class="table table-bordered align-items-center">
  30. <thead class="thead-light">
  31. <tr>
  32. <th scope="col">TAHUN</th>
  33. <th scope="col">BULAN</th>
  34. <th scope="col">TANGGAL</th>
  35. <th scope="col">PROVINSI</th>
  36. <th scope="col">UPT</th>
  37. <th scope="col">MATERI</th>
  38. <th scope="col">JUDUL</th>
  39. <th scope="col">DESKRIPSI</th>
  40. <th scope="col">KETERANGAN</th>
  41. <th scope="col">LAMPIRAN</th>
  42. <th scope="col">KONTRIBUTOR</th>
  43. </tr>
  44. </thead>
  45. <tbody>
  46. @foreach($bahsos as $key => $value)
  47. <tr>
  48. <td>{{\Carbon\Carbon::parse($value->created_at)->format('Y')}}</td>
  49. <td>{{\Carbon\Carbon::parse($value->created_at)->format('M')}}</td>
  50. <td>{{\Carbon\Carbon::parse($value->created_at)->format('d, M Y')}}</td>
  51. @if(\App\Model\Region\Provinsi::where('id',$value->id_prov)->value('nama'))
  52. <td>{{\App\Model\Region\Provinsi::where('id',$value->id_prov)->value('nama')}}</td>
  53. @else
  54. <td >-</td>
  55. @endif
  56. <?php
  57. $upts = \App\Model\Setting\UPT::where('office_id',$value->kode_upt)->select('office_name')->distinct()->value('office_name');
  58. ?>
  59. @if($upts)
  60. <td>{{$upts}}</td>
  61. @else
  62. <td>-</td>
  63. @endif
  64. <td>{{\App\Model\Refrension\Materi::where('id',$value->id_materi)->value('jenis_materi')}}</td>
  65. <td>{{$value->judul}}</td>
  66. <td>{{$value->deskripsi}}</td>
  67. <td>{{$value->keterangan}}</td>
  68. <td>{{$value->lampiran}}</td>
  69. <td>{{$value->author}}</td>
  70. </tr>
  71. @endforeach
  72. </tbody>
  73. </table>
  74. <hr>
  75. </div>
  76. </center>
  77. </body>
  78. </html>