| {{$i}} |
{{@$item->created_at}} |
{{@$item->no_resi}} |
{{-- @if (\Auth::user()->role == 1) --}}
@if (\Auth::user()->id == 46)
{{@$item->customer->telp}} |
@endif
{{@$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:'-'}} |
@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
{{$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}}
|
@php
$i++;
// $lastresi = @$item->receipt_detail->receipt->no_resi;
@endphp
@endforeach