Detail Cashbox List

ID
: {{ $cashbox->id }}
Store
: {{ $cashbox->store->nama }}
Code
: {{ $cashbox->code }} ({{ $cashbox->detail->count() }} item)
Status
: @if($cashbox->status == 'on_store') On Store @elseif($cashbox->status == 'sending') Sending @elseif($cashbox->status == 'requested') Requested @endif
@if($cashbox->status == 'on_store') @else @endif

Detail Item

@php $no=0; @endphp @foreach($cashbox->detail as $detail) @foreach($detail->buy_item as $buy_item) @php $no += 1; @endphp @endforeach @endforeach @if($cashbox->detail->count() == 0) @endif
No Code Name Handphone Disburse Approve By Approve At #
{{ $no }} {{ $buy_item->code }} {{ $buy_item->name }} {{ $buy_item->handphone }} {{ number_format($buy_item->disburse) }} {{ $buy_item->approved_user ? $buy_item->approved_user->name : '~' }} {{ \Carbon\Carbon::parse($buy_item->approved_at)->format('d F Y H:i') }}
Data not found
@if (Session::has('success')) @endif @if (Session::has('oops')) @endif

Cashbox Moving Log

@foreach($cashbox->logs as $log) @if ($loop->last) @else @endif @endforeach @if($cashbox->logs->count() == 0) @endif
Created At Cashbox Code From To Status
{{ \Carbon\Carbon::parse($log->created_at)->format('d F Y H:i') }} {{ $cashbox->code }} {{ $log->store_from->nama }} {{ $log->store_to->nama }}{!! $cashbox->status == 'on_store' ? 'On Store' : ' Requested' !!}On Store
Data not found