@foreach($fournisseurs as $f) @endforeach
Fournisseur Catégorie Réduction Conditions Remarques Pièces Produits Gamme de prix Ajouté par Date d'ajout Site web Statut
{{ $f->name }} {{ $f->category }} @if ($f->reduction) Oui @else Non @endif @if(strlen($f->conditions) > 0) @php $conditions = str_replace('>','>',$f->conditions); $conditions = str_replace('<','<',$conditions); @endphp {{ $conditions }} @else --- @endif @if(strlen($f->remarks)>0) @php $remarks = str_replace('>','>',$f->remarks); $remarks = str_replace('<','<',$remarks); @endphp {!! nl2br($remarks) !!} @else --- @endif @if ($f->piece) @foreach ($f->piece as $key => $p) @if ($key != 0)
@endif {{ $p }} @endforeach @endif
@if ($f->produits) @foreach ($f->produits as $key => $p) @if ($key != 0)
@endif {{ $p }} @endforeach @endif
> {{$f->gammes}} @if ($f->added_by == 1) Admin @else @php $user = \App\Models\User::find($f->added_by); @endphp @if($user) {{ $user->prenom }} {{ $user->nom }} @else --- @endif @endif {{ $f->created_at->format('d-m-Y') }} @if ($f->website) {{$f->website}} @else --- @endif @if($f->status == 1) Affiché @else Caché @endif