Inventaire des ventes
{{-- @foreach($sells as $sell) @endforeach --}}
Date Produits Client Total Statut
{{ $sell->date }}
@php $achats = json_decode($sell->achats); @endphp
@foreach($achats as $achat) {{ json_decode($achat->product)->wholesale_available_quantity }} {{ json_decode($achat->product)->name }}, @endforeach
{{ ($sell->customer)?$sell->customer->name:"" }}
{{ $sell->total }} FCFA
{{ $sell->state->name }}