| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151 |
- @php
- use App\Helpers\PoliziaUtils;
- use App\Helpers\DateHelper;
- @endphp
- <!DOCTYPE html>
- <html>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <style>
- body {
- font-family: Helvetica, sans-serif;
- color: rgb(80, 80, 80);
- font-size: 13px;
- }
- *,
- table,
- table tr,
- table tr td {
- text-transform: uppercase !important;
- }
- .table-content {
- border: solid 1px #333;
- padding: 10px 0;
- border-collapse: collapse;
- }
- .tr-title td {
- font-weight: bold;
- }
- .veicolo-title-cell {
- font-weight: bold;
- border: 0 none !important;
- padding: 0px;
- }
- .veicolo-content-cell {
- border: 0 none !important;
- padding: 0px;
- }
- .tr-sub-title {
- font-size: 0.9em;
- }
- .bold {
- font-weight: bold;
- }
- .no-border {
- border: 0 none !important;
- }
- .footer {
- text-align: center;
- }
- span.signature {
- width: 100% !important;
- height: 1px !important;
- display: block;
- border-bottom: 1px solid #333333;
- }
- .page-break {
- page-break-after: always;
- }
- .total-pages:before {
- content: counter(pages);
- }
- </style>
- <body>
- <x-verbale.intestazione.index_pc :data="$data" />
- <x-verbale.header.header :data="$data" />
- <p></p>
- <p align="center">
- Verbale redatto con sistemi meccanizzati ed archiviato in formato elettronico da personale autorizzato dal
- comando in intestazione.
- </p>
- <div class="page-break"></div>
- <x-verbale.veicoli.index :data="$data" />
-
- @php
- $vehicles = collect($data['parti_coinvolte'])->filter(function ($item) {
- return $item->conducente_o_pedone == 2;
- });
- $pedestrians = collect($data['parti_coinvolte'])->filter(function ($item) {
- return $item->conducente_o_pedone == 1;
- });
- $vehicleNumber = 0;
- @endphp
- @foreach ($vehicles as $idx => $parte)
- @if($idx > 0)
- <div class="page-break"></div>
- @endif
- @php
- $datiVeicolo = $data['datiVeicolo'][$parte->progressive];
- $datiPasseggeri = App\Models\ReportDataPasseggeri::with('passeggero_value')
- ->where('report_id', $data['record']->id)
- ->get()
- ->groupBy('progressive');
- $datiInfortunati = App\Models\ReportDataInfortunati::with('infortunato_value')
- ->where('report_id', $data['record']->id)
- ->get()
- ->groupBy('progressive');
- @endphp
- <table width="100%">
- <tr>
- <td width="100%" valign="top" align="center" style="border:none!important">
- <h2>DATI VEICOLO</h2>
- </td>
- </tr>
- </table>
- <x-verbale.veicolo.dettaglio :parte="$parte" :datiVeicolo="$datiVeicolo" :vehicleNumber="$vehicleNumber" />
- @php $vehicleNumber++; @endphp
- <x-verbale.veicolo.proprietario :datiVeicolo="$datiVeicolo" />
- <x-verbale.veicolo.conducente :datiVeicolo="$datiVeicolo" />
- @if ($datiVeicolo?->polizze > 0)
- <x-verbale.veicolo.assicurazione :datiVeicolo="$datiVeicolo" />
- @endif
-
- @endforeach
- </table>
- </body>
- </html>
|