|
@if (@$detail->receipt_detail->detail_barang)
@if(strtolower(@$detail->receipt_detail->detail_barang->first()->ekspedisi->tipe_ekspedisi) == "laut")
Charge Berat Laut :
Rp {{ribuan(@$sum_chargeberat)}}
@else
@endif
@endif
|
Tax Refund :
¥ {{@$sum_tax}}
|
Tax Refund Biaya Kirim :
Rp {{ribuan(@$sum_taxkirim)}}
|
Biaya COD China :
¥ {{@$sum_codcina}}
|
{{-- Rp {{ribuan($sumbiayatambahan)}} --}}
{{-- Rp {{ribuan($detail->tax_refund_biaya_cbm_total)}} --}}
Rp {{ribuan($sum_tax_refund_total)}}
|
@php
$lastresi = $detail->no_resi;
$sum_chargeberat = $detail->charge_berat_laut;
$sum_tax = $detail->tax_refund_biaya_cbm;
$sum_taxkirim = $detail->tax_refund_kirim;
$sum_codcina = $detail->biaya_cod_cina;
$sum_tax_refund_total = $detail->tax_refund_biaya_cbm_total;
// $sumbiayatambahan = $sum_chargeberat + $sum_taxkirim + ($sum_tax * $kurensi->rate_rupiah) + ($sum_codcina * $kurensi->rate_rupiah);
$sumbiayatambahan = $sum_chargeberat + $sum_taxkirim + ($sum_tax * $kurensi) + ($sum_codcina * $kurensi);
@endphp
@endif
| {{$loop->iteration}} |
{{--
{{$detail->tipe_barang}}
{{$detail->tipe_ekspedisi}}
| --}}
{{-- {{$jumlah_kata > 2 ? $kata[0].' '.$kata[1].'...' : $deskripsi}} --}}
Parcel-Others
|
{{$detail->no_resi}} /
{{@$detail->receipt_detail->receipt->shipping_mark}} |
{{@$detail->receipt_detail->receipt->no_resi_coload?@$detail->receipt_detail->receipt->no_resi_coload:'-'}} |
{{$detail->jml_ctn}} |
{{$detail->berat}} |
@if (@$detail->receipt_detail)
@if (@$detail->receipt_detail->detail_barang)
{{-- udara --}}
@if(strtolower(@$detail->receipt_detail->detail_barang->first()->ekspedisi->tipe_ekspedisi) == "udara")
{{-- @if(is_null($detail->berat_tambahan) && is_null($detail->harga_tambahan)) --}}
{{-- @if ($detail->volume == 0.000 || $detail->volume == 0 || $detail->volume == null) --}}
{{number_format($detail->berat, 2, ',', '.')}}
{{-- @else --}}
{{-- {{number_format($detail->volume, 2, ',', '.')}} --}}
{{-- @endif --}}
{{-- @else
{{number_format($detail->volume, 2, ',', '.')}}
@endif --}}
{{-- laut --}}
@else
{{-- {{number_format($detail->berat, 2, ',', '.')}} --}}
{{number_format($detail->volume, 2, ',', '.')}}
@endif
@endif
@endif
@if ($detail->receipt_detail)
@if ($detail->receipt_detail->detail_barang)
{{-- {{@$detail->receipt_detail->detail_barang->first()->ekspedisi->satuan}} --}}
@endif
@endif
@if(!is_null($detail->berat_tambahan))
{{number_format($detail->berat_tambahan, 2, ',', '.')}}
{{-- {{@$detail->receipt_detail->detail_barang->first()->ekspedisi->satuan}} --}}
(Charge Volume)
@endif
@if ($detail->charge_berat_laut != 0 && $detail->charge_berat_laut != null)
* Charge Berat Laut
@endif
|
Rp. {{ribuan($detail->harga)}}
@if(!is_null($detail->harga_tambahan))
Rp. {{ribuan($detail->harga_tambahan)}} (Charge Volume)
@endif
|
@if(!is_null($detail->harga_tambahan) && !is_null($detail->berat_tambahan))
Rp. {{ribuan($detail->berat * $detail->harga)}}
Rp. {{ribuan($detail->berat_tambahan * $detail->harga_tambahan)}}
@else
Rp. {{ribuan($detail->total)}}
@endif
|
@php
if (@$detail->receipt_detail) {
if (@$detail->receipt_detail->detail_barang) {
if(strtolower(@$detail->receipt_detail->detail_barang->first()->ekspedisi->tipe_ekspedisi) == "udara") {
if(!is_null($detail->berat_tambahan)) {
$totalvolume += $detail->berat_tambahan;
}
} else {
$totalvolume += $detail->volume;
}
}
}
$totalberat += $detail->berat;
$totalcarton += $detail->jml_ctn;
// $subtotal += $detail->total + @$detail->tax_refund_biaya_cbm_total + $sumbiayatambahan;
$subtotal += $detail->total + @$detail->tax_refund_biaya_cbm_total;
// $subtotal += ($detail->berat * $detail->harga) + ($detail->berat_tambahan * $detail->harga_tambahan) + @$detail->tax_refund_biaya_cbm_total;
@endphp
@endforeach
@if ($sum_chargeberat > 0 || $sum_tax > 0 || $sum_taxkirim > 0 || $sum_codcina > 0)
@if(strtolower(@$detail->receipt_detail->detail_barang->first()->ekspedisi->tipe_ekspedisi) == "laut")
|
Charge Berat Laut :
Rp {{ribuan(@$sum_chargeberat)}}
|
@else
|
@endif
Tax Refund :
¥ {{@$sum_tax}}
|
Tax Refund Biaya Kirim :
Rp {{ribuan(@$sum_taxkirim)}}
|
Biaya COD China :
¥ {{@$sum_codcina}}
|
{{-- Rp {{ribuan($sumbiayatambahan)}} --}}
{{-- Rp {{ribuan($detail->tax_refund_biaya_cbm_total)}} --}}
Rp {{ribuan($sum_tax_refund_total)}}
|
@endif