<table>
    <thead>
        <tr>
            <th>Ref</th>
            <th>Matricule </th>
            <th>Matricule WW</th>
            <th>Garantie</th>
            <th>Type de Dossier</th>
            <th>Mode</th>
            <th>Vehicule</th>
            <th>Compagnie</th>
            <th>Intermidiaire</th>
            <th>Ville</th>
            <th>Garage</th>
            <th>Num Sinistre </th>
            <th>Compagnie Adversaire</th>
            <th>Date Sinistre</th>
            <th>DMC</th>
            <th>Date Création</th>
            <th>Date Reception</th>
            <th>Date Signature Rapport</th>
            <th>Date Facturation</th>
            <th>Montant Accord</th>
            <th>Montant Facture</th>
            <th>Montant Rapport</th>
            <th>Status</th>

        </tr>
    </thead>
    <tbody>
        @foreach ($dossiers as $dossier)
            <tr>
                <td>{{ $dossier->ref }}</td>
                <td>{{ $dossier->matricule ?? ' ' }}</td>
                <td>{{ $dossier->new_matricule  ?? ' ' }}</td>
                <td>{{ $dossier->guarantee->guarantee  ?? ' ' }}</td>
                <td>{{ $dossier->typeexpertise->type  ?? ' ' }}</td>
                <td>{{ $dossier->mode->mode  ?? ' ' }}</td>
                <td>{{ $dossier->vehiculemodel->name  ?? ' ' }}</td>
                <td>{{ $dossier->company->company  ?? ' ' }}</td>
                <td>{{ $dossier->intermidiaire->intermidiare  ?? ' ' }}</td>
                <td>{{ $dossier->city->city  ?? ' ' }}</td>
                <td>{{ $dossier->garage->libelle  ?? ' ' }}</td>
                <td>{{ $dossier->numero_sinistre  ?? ' ' }}</td>
                <td>{{ $dossier->opponent->company->company  ?? ' ' }}</td>
                <td>{{ $dossier->date_sinistre  ?? ' ' }}</td>
                <td>{{ $dossier->date_circulation  ?? ' ' }}</td>
                <td>{{ $dossier->created_at  ?? ' ' }}</td>
                <td>{{ $dossier->date_reception  ?? ' ' }}</td>
                <td>{{ $dossier->date_fin  ?? ' ' }}</td>
                <td>{{ $dossier->date_facturation  ?? ' ' }}</td>
                <td>{{ $dossier->montant->montant_accord  ?? ' ' }}</td>
                <td>{{ $dossier->onefacture->montant_facture  ?? ' ' }}</td>
                <td>{{ $dossier->montant->montant_rapport  ?? ' ' }}</td>
                
                <td>{{ $dossier->status->status  ?? ' ' }}</td>
                <td>{{ $drawing ?? ' ' }}</td>

            </tr>
        @endforeach
    </tbody>
</table>
