@include('includes.header')

Liste des factures

@if(Auth::user()->admin == 1)
@endif @include('includes.toast', ['msg' => $msg])

@if(Auth::user()->admin == 1) @endif @foreach ($factures as $facture) @if(Auth::user()->admin == 1) @endif @endforeach
# Date Fournisseur Statut Projet Montants totaux Pièce jointe
#{{ $facture->id }}
{{ $facture->date }} @if(!empty($facture->fournisseur_nom)) {{ $facture->fournisseur_nom }} @else N/A @endif @if($facture->status == 1) En traitement @elseif($facture->status == 2) En circulation @elseif($facture->status == 3) Payée @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)) @else N/A @endif
@if(Auth::user()->admin == 1) @endif
@include('widgets.newFacture') @include('includes.footer')