@if (count($data['materiale_recuperato']) > 0)
    <table width="100%" class="">
        <tr>
            <td align="center">
                <h2>RIPRISTINO POST INCIDENTE</h2>
            </td>
        </tr>
    </table>

    <table class="table-content striped-table" width="100%">
        @if ($data['record']->ditta_intervenuta != '')
            <tr>
                <td width="100%" align="center" style="padding-bottom: 10px !important;border: none!important">
                    DITTA INTERVENUTA: {{ $data['record']->ditta_intervenuta }}
                </td>
            </tr>
        @endif

        @if ($data['record']->ripristino_ora_chiamata != '')
            <tr>
                <td width="100%" align="center" style="padding-bottom: 10px !important;border: none!important">
                    ORA CHIAMATA:
                    {{ $data['record']->ripristino_ora_chiamata }}:{{ $data['record']->ripristino_minuti_chiamata }}
                </td>
            </tr>
        @endif

        @if ($data['record']->ripristino_ora_arrivo != '')
            <tr>
                <td width="100%" align="center" style="padding-bottom: 10px !important;border: none!important">
                    ORA ARRIVO:
                    {{ $data['record']->ripristino_ora_arrivo }}:{{ $data['record']->ripristino_minuti_arrivo }}
                </td>
            </tr>
        @endif

        @foreach ($data['materiale_recuperato'] as $materiale_recuperato)
        <tr class="tr-title">
            <td width="100%" align="center" style="padding-bottom: 10px !important;border: none!important">
                MATERIALE RECUPERATO:
                {{ optional($materiale_recuperato->materiale_recuperato)->name }}
                </td>
            </tr>
        @endforeach

        @if ($data['record']->danni_cose_diverse_da_veicoli != '')
            <tr class="tr-title">
                <td width="100%" align="center" style="padding-bottom: 10px !important;border: none!important">
                    DANNI A COSE DIVERSI DA VEICOLI:
                    {{ $data['record']->danni_cose_diverse_da_veicoli }}
                </td>
            </tr>
        @endif
    </table>
    <div class="page-break"></div>
@endif
