@foreach ($factures as $facture) @if($facture->projet_id == $projet->id) @endif @endforeach
# Date Fournisseur Projet Montants totaux Pièce jointe
#{{ $facture->id }}
{{ $facture->date }} @php $fournisseur_id = (array) json_decode(json_encode(DB::table('fournisseurs')->where('id', '=', $facture->fournisseur_id)->get(), JSON_FORCE_OBJECT)); @endphp @if(!empty($fournisseur_id[0]->nom)) {{ $fournisseur_id[0]->nom }} @else N/A @endif @php $projet_id = (array) json_decode(json_encode(DB::table('projets')->where('id', '=', $facture->projet_id)->get(), JSON_FORCE_OBJECT)); @endphp @if(!empty($projet_id[0]->nom)) {{ $projet_id[0]->nom }} @else N/A @endif {{ $facture->montant_taxes }} $ @if(!empty($facture->file))  Téléchargement @else N/A @endif