| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- @php
- $verticaleAreas = [
- 'segnaletica_verticale_1',
- 'segnaletica_verticale_2',
- 'segnaletica_verticale_3',
- 'segnaletica_verticale_4'
- ];
- @endphp
- @foreach ($verticaleAreas as $area)
- @php
- $viaKey = $area . '_via';
- $direzioneKey = $area . '_direzione';
- $limiteVelocitaKey = $area . '_limite_velocita';
- $pannelloIntegrativoKey = $area . '_pannello_integrativo';
- $altroKey = $area . '_altro';
- @endphp
- @if ($data['record']->{$viaKey} != '')
- <table width="100%" class="table-title">
- <tr>
- <td align="center">
- <h2>SEGNALETICA VERTICALE</h2>
- </td>
- </tr>
- </table>
- <table class="table-content" width="100%">
- <tr>
- <td width="100%" align="center">
- <b>VIA DI RIFERIMENTO:</b>
- {{ optional($data['record']->{$viaKey . '_value'})->TOPONIMO }}
- {{ optional($data['record']->{$viaKey . '_value'})->DESCRIZIONE }}
- </td>
- </tr>
- @if ($data['record']->{$direzioneKey} != '')
- <tr>
- <td width="100%" align="center">
- DIREZIONE: {{ $data['record']->{$direzioneKey} }}
- </td>
- </tr>
- @endif
- @if (count($data[$area]) > 0)
- <tr class="tr-title">
- <td align="center">
- <b>DETTAGLIO SEGNALETICA VERTICALE:</b>
- </td>
- </tr>
- @foreach ($data[$area] as $segnaletica_verticale)
- <tr>
- <td align="center">
- {{ optional($segnaletica_verticale->segnaletica_verticale)->name }}
- </td>
- </tr>
- @endforeach
- @endif
- @if ($data['record']->{$limiteVelocitaKey} != '')
- <tr>
- <td width="100%" align="center">
- LIMITE DI VELOCITÀ: {{ $data['record']->{$limiteVelocitaKey} }}
- </td>
- </tr>
- @endif
- @if ($data['record']->{$pannelloIntegrativoKey} != '')
- <tr>
- <td width="100%" align="center">
- PANNELLO INTEGRATIVO: {{ $data['record']->{$pannelloIntegrativoKey} }}
- </td>
- </tr>
- @endif
- @if ($data['record']->{$altroKey} != '')
- <tr>
- <td width="100%" align="center">
- {{ $data['record']->{$altroKey} }}
- </td>
- </tr>
- @endif
- </table>
- @endif
- @endforeach
|