header.blade.php 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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. @if($data['record']->verificatosi_in_data && \Carbon\Carbon::parse($data['record']->verificatosi_in_data)->year > 0)
  20. {{ \Carbon\Carbon::parse($data['record']->verificatosi_in_data)->format('d/m/Y') }}
  21. @endif ALLE ORE
  22. {{ $data['record']->verificatosi_in_data_ora }}:{{ $data['record']->verificatosi_in_data_minuti }}<br>
  23. IN
  24. @if ($data['record']->localita)
  25. {{ optional($data['record']->localita)->title }}
  26. @endif
  27. <br>
  28. @if ($data['record']->indirizzo)
  29. {{ optional($data['record']->indirizzo)->TOPONIMO }}
  30. {{ optional($data['record']->indirizzo)->DESCRIZIONE }}<br>
  31. @endif
  32. @if ($data['record']->intersezione_con > 0)
  33. @php
  34. $intersezione = \App\Models\Stradario::find($data['record']->intersezione_con);
  35. if ($intersezione) {
  36. $intersezione_toponimo = $intersezione['TOPONIMO'];
  37. $intersezione_address = $intersezione['DESCRIZIONE'];
  38. $full_intersection = $intersezione_toponimo . ' ' . $intersezione_address;
  39. $location_description = ' INTERSEZIONE CON ' . $full_intersection;
  40. }
  41. @endphp
  42. {{ $location_description }}<br>
  43. @endif
  44. IN PROSSIMITA' DEL CIVICO: {{ $data['record']->prossimita_civico }}<br>
  45. @php
  46. $incidentTypes = [];
  47. if ($data['record']->incidente_con_danni_a_cose) {
  48. $incidentTypes[] = 'DANNI A COSE';
  49. }
  50. if ($data['record']->incidente_con_feriti) {
  51. $incidentTypes[] = 'FERITI';
  52. }
  53. if ($data['record']->incidente_con_feriti_lesioni_lievi) {
  54. $incidentTypes[] = 'FERITI LESIONI LIEVI';
  55. }
  56. if ($data['record']->incidente_con_feriti_lesioni_gravi) {
  57. $incidentTypes[] = 'FERITI LESIONI GRAVI';
  58. }
  59. if ($data['record']->incidente_mortale) {
  60. $incidentTypes[] = 'MORTALE';
  61. }
  62. @endphp
  63. @if (!empty($incidentTypes))
  64. INCIDENTE CON: {{ implode(', ', $incidentTypes) }}<br>
  65. @endif
  66. </b>
  67. </h3>
  68. </p>
  69. </td>
  70. </tr>
  71. </table>