header.blade.php 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <table class="table-content" width="100%">
  2. <tr>
  3. <td valign="top" align="center">
  4. <h1>COMUNE DI FRASCATI</h1>
  5. <h2>CORPO DI POLIZIA LOCALE</h2>
  6. <h3>UFFICIO POLIZIA STRADALE E INFORTUNISTICA</h3>
  7. <h3>
  8. VIA ANGELO CELLI 23A1 – 00044 FRASCATI<br>
  9. TEL. 06.9416491 – FAX 06.94010040<br>
  10. PEC: polizialocalefrascati@legalmail.it
  11. </h3>
  12. <img src="{{ public_path() }}/images/logo_pdf.png" width="250">
  13. <h2>RAPPORTO</h2>
  14. <p>
  15. <h3>
  16. <b>
  17. RAPPORTO TECNICO DESCRITTIVO DELL'INCIDENTE STRADALE<br>
  18. VERIFICATOSI IN DATA
  19. {{ $data['record']->verificatosi_in_data ? \Carbon\Carbon::parse($data['record']->verificatosi_in_data)->format('d/m/Y') : '' }}
  20. ALLE ORE
  21. {{ $data['record']->verificatosi_in_data_ora }}:{{ $data['record']->verificatosi_in_data_minuti }}<br>
  22. IN
  23. @if ($data['record']->localita)
  24. {{ optional($data['record']->localita)->title }}
  25. @endif
  26. <br>
  27. @if ($data['record']->indirizzo)
  28. {{ optional($data['record']->indirizzo)->TOPONIMO }}
  29. {{ optional($data['record']->indirizzo)->DESCRIZIONE }}<br>
  30. @endif
  31. IN PROSSIMITA' DEL CIVICO: {{ $data['record']->prossimita_civico }}<br>
  32. @php
  33. $incidentTypes = [];
  34. if ($data['record']->incidente_con_danni_a_cose) {
  35. $incidentTypes[] = 'DANNI A COSE';
  36. }
  37. if ($data['record']->incidente_con_feriti) {
  38. $incidentTypes[] = 'FERITI';
  39. }
  40. if ($data['record']->incidente_con_feriti_lesioni_lievi) {
  41. $incidentTypes[] = 'FERITI LESIONI LIEVI';
  42. }
  43. if ($data['record']->incidente_con_feriti_lesioni_gravi) {
  44. $incidentTypes[] = 'FERITI LESIONI GRAVI';
  45. }
  46. if ($data['record']->incidente_mortale) {
  47. $incidentTypes[] = 'MORTALE';
  48. }
  49. @endphp
  50. @if (!empty($incidentTypes))
  51. INCIDENTE CON: {{ implode(', ', $incidentTypes) }}<br>
  52. @endif
  53. </b>
  54. </h3>
  55. </p>
  56. </td>
  57. </tr>
  58. </table>