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