{{-- resources/views/components/verbalizzanti/index.blade.php --}}

<table width="100%">
    <tr>
        <td width="33%" align="center">
            <div class="title">
                <h2>IL RESPONSABILE DELL'UFFICIO</h2>
            </div>
            <div class="name" style="font-weight: bold; font-size: 14px;">
            FRANCESCO MAROZZA
            </div>
            <small>COMMISSARIO COORDINATORE</small>
        </td>
        <td width="33%" align="center"></td>
        <td width="33%" align="center">
            <div class="title" style="margin-top: 20px;">
                <h2>I VERBALIZZANTI</h2>
            </div>
            @for ($i = 1; $i <= 5; $i++)
                @if ($record->{"accertatore_$i"} > 0)
                <div class="officer" >
                    <div class="name" style="font-weight: bold; font-size: 14px;">
                        {{ isset($record->{"accertatore_{$i}_value"}->lastname) ? $record->{"accertatore_{$i}_value"}->lastname : '' }}
                        {{ isset($record->{"accertatore_{$i}_value"}->firstname) ? $record->{"accertatore_{$i}_value"}->firstname : '' }}
                    </div>
                    <div class="mt-1 mb-1" style="font-size: 14px;">
                        {{ $record->{"grado_accertatore_{$i}_value"}->name }}
                    </div>
                </div>
                @endif
            @endfor
        </td>
    </tr>
</table>
