{{-- @if (\Auth::user()->role == 1) --}} @if (\Auth::user()->id == 46) @endif @php $i = 1; @endphp @foreach ($datas as $item) {{-- @if (!$loop->first) @if ($lastresi == @$item->receipt_detail->receipt->no_resi) @continue @endif @endif --}} {{-- @if (\Auth::user()->role == 1) --}} @if (\Auth::user()->id == 46) @endif {{-- --}} @php $grandtotal_jml = $grandtotal_usd = $grandtotal_rmb = 0; foreach ($item->receipt_detail as $detail) { foreach($detail->detail_barang as $detbar){ $grandtotal_jml += $detbar->jumlah; if($detbar->currency_code == 'USD'){ $grandtotal_usd += $detbar->harga; } else { $grandtotal_rmb += $detbar->harga; } } } @endphp @php $i++; // $lastresi = @$item->receipt_detail->receipt->no_resi; @endphp @endforeach
No. Container {{$no_container}}
No. Tanggal. No. ResiNo. Telpon CustomerShipping Mark Nama Barang Kategori Barang Jumlah Karton Total Berat Total Cbm No. Resi Lokal Storage Number Brand Qty Barang Value Barang (RMB) Value Barang (USD) Status Resi Files
{{$i}} {{@$item->created_at}} {{@$item->no_resi}}{{@$item->customer->telp}}{{@$item->shipping_mark}} @php $totalberat = 0; $totalvolume = 0; @endphp @foreach ($item->receipt_detail as $detail) @php $totalberat += $detail->total_berat; $totalvolume += $detail->total_volume; @endphp @foreach ($detail->detail_barang as $barang) @if (!$loop->first) || @endif {{$barang->deskripsi?$barang->deskripsi:'-'}} @endforeach @endforeach @if ($item->receipt_detail->count() > 0) @foreach ($item->receipt_detail as $rdetail) @if (!$loop->first) , @endif @if ($rdetail->detail_barang->count() > 0) @foreach ($rdetail->detail_barang as $barang) {{$barang->ekspedisi?@$barang->ekspedisi->tipe_barang:'-'}} @endforeach @else - @endif @endforeach @else - @endif {{@$item->carton_count}}{{$item->getcartonstat(4)->sum('carton_numbers.berat')}} {{number_format($item->getcartonstat(4)->sum('carton_numbers.volume'), 3, '.', '')}}{{@$item->receipt_detail->sum('total_berat')}} kg {{number_format(@$item->receipt_detail->sum('total_volume'), 3, '.', '')}} {{@$item->no_local_cina?$item->no_local_cina:'-'}} {{@$item->storage_number?$item->storage_number:'-'}} {{@$item->brand?$item->brand:'-'}}{{$grandtotal_jml}} {{$grandtotal_rmb.' RMB'}} {{$grandtotal_usd.' USD, '}} {{ config('custom.status_resi.'.@$item->status) }} @php $listfile = ''; @endphp @foreach ($item->receiptmainfiles as $files) @if (!$loop->first) @php $listfile .= ', '; @endphp @endif @php $listfile .= url('').'/'.$files->file; @endphp @endforeach {{$listfile}}