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