Resell Transaction List

{{--
--}}
{{--
--}}
{{--
--}}
{{--
--}}
{{--
--}}
@php $totalQty = 0; $totalBerat = 0; $totalHarga = 0; $currentItemType = null; $rowspan = 0; @endphp @foreach ($data as $row) @if ($currentItemType !== $row->item_type->type) @php $currentItemType = $row->item_type->type; $rowspan = $data->where('item_type_id', $row->item_type_id)->count(); @endphp @else @endif @php $totalQty += $row->total_barang; $totalBerat += $row->berat; $totalHarga += $row->harga; @endphp @endforeach
Item Berat Total Qty Total Berat Total Harga Beli Resell
{{ $currentItemType }} {{ $row->weight_total }} {{ number_format($row->total_barang) }} {{ number_format((float) $row->berat, 2, '.', ',') }} {{ number_format($row->harga) }}
{{ $row->weight_total }} {{ number_format($row->total_barang) }} {{ number_format((float) $row->berat, 2, '.', ',') }} {{ number_format($row->harga) }}
Total {{ number_format($totalQty) }} {{ number_format((float) $totalBerat, 2, '.', ',') }} {{ number_format($totalHarga) }}
{{-- --}}
Total Resell Stock Resell Toko Dalam Perjalanan Diterima SK Pusat
JUMLAH
TRANSAKSI
JUMLAH
BARANG
BERAT
BARANG
JUMLAH
TRANSAKSI
JUMLAH
BARANG
BERAT
BARANG
JUMLAH
TRANSAKSI
JUMLAH
BARANG
BERAT
BARANG
JUMLAH
TRANSAKSI
JUMLAH
BARANG
BERAT
BARANG
{{ number_format($data_transaksi) }} {{ number_format($data_transaksi_qty) }} {{ number_format($total_weight_transaksi, 2) }} {{ number_format($total_toko_document) }} {{ number_format($total_toko_qty) }} {{ number_format($total_toko_weight, 2) }} {{ number_format($dalam_perjalanan_document) }} {{ number_format($dalam_perjalanan_qty) }} {{ number_format($dalam_perjalanan_weight, 2) }} {{ number_format($sk_pusat_document) }} {{ number_format($sk_pusat_qty) }} {{ number_format($sk_pusat_weight, 2) }}
@forelse($transactions as $key => $transaction) @empty @endforelse
No Store Brand Invoice Date Status JR Name Berat Total Lokasi Barang # #
{{ $transactions->firstItem() + $key }} @if ($transaction->store->cmk_store) {{ $transaction->store->cmk_store->code }} - {{ $transaction->store->cmk_store->m_nama }} @endif {{ $transaction->store->brand->name }} {{ $transaction->invoice }}
{{ $transaction->resellbox_unload ? $transaction->resellbox_unload->delivery_code : '' }}
{{ $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 }}
{{ number_format($transaction->invoice_detail()->sum('weight'), 2, '.', ',') }}
Gram
{{ number_format($transaction->grandtotal) }} @if ($transaction->store_resellbox_id) Stock Resell Toko @else @if ($transaction->resellbox_unload()->whereNotNull('received_at')->whereNotNull('received_by')->first()) Diterima di SK @else Dalam Perjalanan @endif @endif @if ($transaction->response_status != '200') @else Passed @endif
No Data
{{ $transactions->appends($_GET)->links() }}
@include('includes.footer')