| {{ $no }} |
{{$receipt->created_at}} |
{{ $receipt->no_resi }} |
{{ $receipt->no_resi_coload }} |
{{ $receipt->shipping_to }} |
{{ $receipt->alamat_gudang }} |
{{$receipt->shipping_mark}} |
{{-- @if ($receipt->receipt_detail->count() > 0)
@foreach ($receipt->receipt_detail as $rdetail)
@if (!$loop->first)
//
@endif
@if ($rdetail->detail_barang->count() > 0)
@foreach ($rdetail->detail_barang as $barang)
{{$barang->deskripsi}}
@endforeach
@else
-
@endif
@endforeach
@else
-
@endif --}}
{{ $receipt->deskbarangs }}
|
@if ($receipt->receipt_detail->count() > 0)
@foreach ($receipt->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
|
@if ($receipt->receipt_detail->count() > 0)
@foreach ($receipt->receipt_detail as $rdetail)
@if ($rdetail->detail_barang->count() > 0)
@foreach ($rdetail->detail_barang as $barang)
@if (!$loop->first)
;
@endif
@php
$hargas = '';
$hargamasters = cekhargauserwhcina(@$receipt->customer_id, $barang->tipe_ekspedisi);
@endphp
@if (count($hargamasters) > 0)
@foreach ($hargamasters as $key => $harga_user)
@php
if ($key != 0) {
$hargas .=', ' ;
}
$hargas .= @$harga_user->ekspedisi->tipe_barang.' (Range '.@$harga_user->ekspedisidetail->start_cbm.'-'.@$harga_user->ekspedisidetail->end_cbm.' Cbm)'." - Rp.".ribuan($harga_user->harga);
@endphp
@endforeach
@endif
{{$hargas}}
@endforeach
@else
-
@endif
@endforeach
@else
-
@endif
|
{{$receipt->carton_count}} |
{{-- {{$receipt->getcartonstat(2)->sum('carton_numbers.berat')}} | --}}
{{-- {{number_format($receipt->getcartonstat(2)->sum('carton_numbers.volume'), 3, '.', '')}} | --}}
@php
$totalberat = 0;
$totalvolume = 0;
@endphp
@foreach ($receipt->receipt_detail as $detail)
@php
$totalberat += $detail->total_berat;
$totalvolume += $detail->total_volume;
@endphp
@endforeach
{{$totalberat}} |
{{$totalvolume}} |
{{$receipt->no_local_cina}} |
{{$receipt->storage_number}} |
{{$receipt->wh_number?$receipt->wh_number:'-'}} |
{{$receipt->brand}} |
@php
$grandtotal_jml = $grandtotal_usd = $grandtotal_rmb = 0;
foreach($receipt->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_usd.' USD, '}} {{$grandtotal_rmb.' RMB'}} |
{{ config('custom.status_resi.'.$receipt->status) }} |
{{-- @if ($receipt->receipt_detail)
@if ($receipt->receipt_detail->first()->detail_barang)
{{@$receipt->receipt_detail->first()->detail_barang->first()->ekspedisi->tipe_ekspedisi}}
@endif
@endif --}}
{{$receipt->tipebarangs}}
|
{{-- @if ($receipt->file == null)
-
@else
{{url('').'/'.$receipt->file}}
@endif --}}
@foreach ($receipt->receiptmainfiles as $file)
@if (!$loop->first)
,
@endif
{{asset($file->file)}}
@endforeach
|
@php
$no++;
@endphp
@endforeach
@endif