passeggeri.blade.php 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. {{-- resources/views/components/accertamenti/passeggeri.blade.php --}}
  2. <style>
  3. .striped-table {
  4. width: 100%;
  5. border-collapse: collapse;
  6. }
  7. .striped-table th, .striped-table td {
  8. border: 1px solid #000;
  9. padding: 8px;
  10. }
  11. .striped-table tr:nth-child(even) {
  12. background-color: #f2f2f2;
  13. }
  14. .striped-table tr:nth-child(odd) {
  15. background-color: #fff;
  16. }
  17. </style>
  18. <table class="table-content striped-table" width="100%">
  19. <tr>
  20. <td width="20%" align="center" style="font-size: 20px;">
  21. <table class="">
  22. <tr class="tr-sub-title">
  23. <td class="bold" style="border:none!important"> ACCERTAMENTI PASSEGGERI</td>
  24. </tr>
  25. </table>
  26. </td>
  27. <td width="80%">
  28. <table class="striped-table">
  29. @if($datiCintureSicurezza)
  30. @for($i = 0; $i <= 3; $i++)
  31. <tr>
  32. <td width="100%" class="" style="border: none!important; padding-bottom:10px!important;">
  33. <b>CINTURE SICUREZZA PASSEGGERO{{ $i + 1 }}:</b>
  34. @php
  35. $fieldName = "passeggeri_{$i}";
  36. $value = $datiCintureSicurezza?->$fieldName;
  37. @endphp
  38. {{ $getYesNoStatus($value) }}
  39. </td>
  40. </tr>
  41. @endfor
  42. @if($datiCasco)
  43. <tr>
  44. <td width="100%" class="" style="border: none!important; padding-bottom:10px!important;">
  45. <b>USO CASCO:</b>
  46. {{ $getYesNoStatus($datiCasco?->passeggeri) }}
  47. </td>
  48. </tr>
  49. @endif
  50. @if(($datiCascoOmologazione) && $getYesNoStatus($datiCasco?->passeggeri) =='SI' )
  51. <tr>
  52. <td width="100%" class="" style="border: none!important; padding-bottom:10px!important;">
  53. <b>CASCO OMOLOGAZIONE:</b>
  54. {{ $datiCascoOmologazione?->passeggeri ?? 'NON RILEVATO' }}
  55. </td>
  56. </tr>
  57. @endif
  58. @if($datiVeicolo && $datiVeicolo?->sistema_ritenuta_minori)
  59. <tr>
  60. <td width="100%" class="" style="border: none!important; padding-bottom:10px!important;">
  61. <b>SISTEMA RITENUTA MINORI:</b>
  62. {{ $getYesNoStatus($datiVeicolo?->sistema_ritenuta_minori) }}
  63. </td>
  64. </tr>
  65. @if($datiVeicolo?->sistema_ritenuta_minori == 1)
  66. <tr>
  67. <td width="100%" class="" style="border: none!important; padding-bottom:10px!important;">
  68. <b>SISTEMA RITENUTA MINORI OMOLOGAZIONE:</b>
  69. {{ $datiVeicolo?->sistema_ritenuta_minori_omologazione ?? 'NON RILEVATO' }}
  70. </td>
  71. </tr>
  72. @endif
  73. @endif
  74. @endif
  75. </table>
  76. </td>
  77. </tr>
  78. </table>