@foreach($master_cashes as $cash) @php $open = $store_open->store_butik_cash()->where("cash_id", $cash->id)->first(); $close = $store_open->store_butik_cash_close()->where("cash_id", $cash->id)->first(); $close_quantity = ($close ? $close->quantity : '-'); @endphp @endforeach
Nominal Last Stock Quantity Open Total Open Quantity Close Total Close
{{ number_format($cash->nominal) }} {{ $open->last_stock }} {{ $open->quantity }} {{ number_format($open_quantity * $cash->nominal) }} {{ $close_quantity }} {{ number_format($close_quantity * $cash->nominal) }}