{{-- resources/views/components/accertamenti/conducente.blade.php --}}
<table class="table-content striped-table"  width="100%">
    <tr>
        <td width="20%" align="center" style="font-size: 20px;">
            <table class="">
                <tr class="tr-sub-title">
                    <td class="bold" style="border: none!important;">ACCERTAMENTI CONDUCENTE</td>
                </tr>
            </table>
        </td>
        <td width="80%">
            <table class="stirped-table">
                @if(isset($datiCintureSicurezza?->conducente) && $datiCintureSicurezza?->conducente != 0)
                    <tr>
                        <td width="100%" class="" style="border: none!important; padding-bottom:10px!important;">
                            <b>CINTURE SICUREZZA:</b>
                            {{ $datiCintureSicurezza?->conducente == 1 ? 'SI' : ($datiCintureSicurezza?->conducente == 2 ? 'NO' : 'NON RILEVATO') }}
                        </td>
                    </tr>
                @endif

                @if(isset($datiCasco?->conducente) && $datiCasco?->conducente != 0)
                    <tr>
                        <td width="40%" class="" style="border: none!important; padding-bottom:10px!important;">
                            <b>USO CASCO:</b>
                            {{ $datiCasco?->conducente == 1 ? 'SI' : 'NO' }}
                        </td>
                        @if($datiCasco?->conducente  && $getYesNoStatus($datiCasco?->conducente) =='SI')
                            <td width="60%" class="" style="border: none!important; padding-bottom:10px!important;">
                                <b>CASCO OMOLOGAZIONE:</b>
                                {{ $datiCascoOmologazione?->conducente ?? 'N/A' }}
                            </td>
                        @endif
                    </tr>
                @endif

                @if(isset($datiVeicolo?->alcool_test) && in_array($datiVeicolo?->alcool_test, [1, 2]))
                    <tr>
                        <td width="100%" class="" style="border: none!important; padding-bottom:10px!important;">
                            <b>ALCOOL TEST:</b>
                            {{ $datiVeicolo?->alcool_test == 1 ? 'SI' : 'NO' }}
                        </td>
                    </tr>
                    @if($datiVeicolo?->alcool_test == 1)
                        <tr>
                            <td width="100%" class="" style="border: none!important; padding-bottom:10px!important;">
                                <b>ALCOOL TEST ESITO:</b>
                                {{ $datiVeicolo?->alcool_test_esito == 1 ? 'Esito negativo' : 'Esito positivo' }}
                            </td>
                        </tr>
                    @endif
                @endif

                @if(isset($datiVeicolo->drug_test) && in_array($datiVeicolo->drug_test, [1, 2]))
                    <tr>
                        <td width="100%" class="" style="border: none!important; padding-bottom:10px!important;">
                            <b>DRUG TEST:</b>
                            {{ $datiVeicolo?->drug_test == 1 ? 'SI' : 'NO' }}
                        </td>
                    </tr>
                    @if($datiVeicolo?->drug_test == 1)
                        <tr>
                            <td width="100%" class="" style="border: none!important; padding-bottom:10px!important;">
                                <b>DRUG TEST ESITO:</b>
                                {{ $datiVeicolo?->drug_test_esito == 1 ? 'Esito negativo' : 'Esito positivo' }}
                            </td>
                        </tr>
                    @endif
                @endif
            </table>
        </td>
    </tr>
</table>
