print.blade.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 UPT</h2>
  28. <hr>
  29. <table id="example" class="table-bordered">
  30. <thead class="thead-light">
  31. <tr>
  32. <th scope="col">Office ID</th>
  33. <th scope="col">Office Name</th>
  34. <th scope="col">District Name</th>
  35. <th scope="col">Province Name</th>
  36. <th scope="col">Zone</th>
  37. </tr>
  38. </thead>
  39. <tbody>
  40. @foreach($upt as $upts)
  41. <tr>
  42. <td>{{$upts->office_id}}</td>
  43. <td>{{$upts->office_name}}</td>
  44. <td>{{$upts->district_name}}</td>
  45. <td>{{$upts->province_name}}</td>
  46. <td>{{$upts->zone}}</td>
  47. </tr>
  48. @endforeach
  49. </tbody>
  50. </table>
  51. <hr>
  52. </div>
  53. </center>
  54. </body>
  55. </html>