index.blade.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. @php
  2. $segnaleticaTypes = [
  3. 1 => 'SEGNALETICA ASSENTE',
  4. 2 => 'SEGNALETICA VERTICALE',
  5. 3 => 'SEGNALETICA ORIZZONTALE',
  6. 4 => 'SEGNALETICA VERTICALE E ORIZZONTALE',
  7. 5 => 'SEGNALETICA TEMPORANEA DI CANTIERE'
  8. ];
  9. $lineaTypes = [
  10. 4 => 'ASSENTE',
  11. 1 => 'CONTINUA',
  12. 2 => 'TRATTEGGIATA',
  13. 5 => 'SINGOLA',
  14. 6 => 'DOPPIA',
  15. 7 => 'TRATTEGGIATA IN CORRISPONDENZA DI'
  16. ];
  17. @endphp
  18. @if ($data['record']->segnaletica != '' && $data['record']->segnaletica != null)
  19. <div class="page-break"></div>
  20. <table width="100%" class="table-title">
  21. <tr>
  22. <td align="center">
  23. <h2>STATO SEGNALETICA</h2>
  24. </td>
  25. </tr>
  26. </table>
  27. <table class="table-content" width="100%">
  28. <tr>
  29. <td width="100%" align="center">
  30. <b>{{ $segnaleticaTypes[$data['record']->segnaletica] ?? '' }}</b>
  31. </td>
  32. </tr>
  33. </table>
  34. <x-verbale.segnaletica.verticale :data="$data" />
  35. <x-verbale.segnaletica.orizzontale :data="$data" />
  36. @endif