@php $is_changed = 0; @endphp @foreach($master_cashes as $cash) @php $inputed_sgk_cash = $open_close_store->store_sgk_cash()->where("cash_id", $cash->id)->first(); if($inputed_sgk_cash) { if($inputed_sgk_cash->quantity != $inputed_sgk_cash->last_stock) $is_changed = 1; } @endphp @endforeach @if($is_changed == 1)
| Nominal | JR Input |
|---|---|
| {{ number_format($cash->nominal) }} | {{ $inputed_sgk_cash ? $inputed_sgk_cash->quantity : 0 }} |