@foreach ($transactions as $transaction) @php if ($transaction->store_resellbox_id) { $lokasi_barang = 'Stock Resell Toko'; } else { $resellboxUnload = $transaction ->resellbox_unload() ->whereNotNull('received_at') ->whereNotNull('received_by') ->first(); $lokasi_barang = $resellboxUnload ? 'Diterima di SK' : 'Dalam Perjalanan'; } @endphp @endforeach
Store Brand Invoice Data Status JR Customer Name Customer Handphone Berat Total Lokasi Barang
{{ $transaction->store->cmk_store ? $transaction->store->cmk_store->code . ' - ' . $transaction->store->cmk_store->m_nama : '~' }} {{ $transaction->store->brand->name }} {{ $transaction->invoice }} {{ $transaction->invoice_date }} {{ App\Models\Butik\Butik_store_resell_invoice_model::STATUS[$transaction->status]['text'] }} {{ $transaction->createdByAE->name . ' (' . $transaction->createdByAE->username . ')' }} {{ $transaction->customer_name }} {{ $transaction->customer_handphone }} {{ $transaction->invoice_detail()->sum('weight') }} {{ $transaction->grandtotal }} {{ $lokasi_barang }}