@php $coload = @$invoice->invoice_detail->first()->receipt_detail->receipt->coload; @endphp

Sales Invoice

{{-- antara --}} @if (in_array(@$coload->id, [1,4])) {{-- --}} {{-- east --}} @elseif (@$coload->id == 2) {{-- --}} {{-- vendorbeli --}} @elseif (@$coload->id == 3) {{-- --}} @elseif (strtolower(@$coload->nama) == 'yuapp') {{-- --}} {{-- --}} @else {{-- --}} @endif
@if (in_array(@$coload->id, [1,4])) {{--

Ruko Osaka,
Blok OTPH No.17,
Salembaran, Kec. Kosambi, Kabupaten Tangerang
Banten 14440
Phone: (021) 23584700
Website: www.antaralogistic.com

--}} {{-- @else --}} @elseif (@$coload->id == 2) {{--

Ruko Osaka,
Blok G03 OTD,
Lemo, Teluknaga, Tangerang
Banten 15510
Phone: (021) 2158-4118
Website: www.mte.co.id

--}} @elseif (@$coload->id == 3) {{--

Yos Sudarso Square,
Jl. Yos Sudarso, Blok B No. 16
Tawangsari, Semarang, Jawa Tengah
Phone: +62 889 8008 1998
Website: www.vendorbeli.com

--}} @else {{--

Ruko Shibuya,
Blok C No.5 PIK 2,
Lemo, Teluknaga, Tangerang Regency
Banten 15510
Phone: (021) 23584700
Website: www.antaralogistic.com

--}} @endif
{{-- --}} {{-- --}}
   
  logo INVOICE  
{{-- --}}
Date
Invoice#
Marking Code
Container Ship Code
{{$invoice->tgl_print?date('d/m/Y',strtotime($invoice->tgl_print)):date('d/m/Y')}}
{{$invoice->no_invoice}}
{{@$invoice->invoice_detail->first()->receipt_detail->receipt->shipping_mark}}
@if (count($containers) > 0) @foreach ($containers as $container) @if (!$loop->first) , @endif {{strtoupper($container)}} @endforeach @endif
@if (in_array(@$coload->id, [1,4])) @elseif (@$coload->id == 2) @elseif (@$coload->id == 3) @elseif (strtolower(@$coload->nama) == 'yuapp') {{-- --}} @else @endif
Bill to
{{ucwords(@$invoice->customer->nama)}}
{{--
@if (in_array(@$coload->id, [1,4])) @elseif (@$coload->id == 2) @elseif (@$coload->id == 3) @elseif (strtolower(@$coload->nama) == 'yuapp') @else @endif
Bill to
{{ucwords(@$invoice->customer->nama)}}
 
{{ @$invoice->customer->alamat }} @if (\Auth::user()) @if (\Auth::user()->id == 46 || \Auth::user()->role == 9)
Telp: {{ @$invoice->customer->telp }} @endif @endif
@if (in_array(@$coload->id, [1,4])) @elseif (@$coload->id == 2) @elseif (@$coload->id == 3) @elseif (strtolower(@$coload->nama) == 'yuapp') @else @endif
Ship to
{{ ucwords(@$invoice->customer->nama) }}
 
{{ @$invoice->customer->alamat }} @if (\Auth::user()) @if (\Auth::user()->id == 46)
Telp: {{ @$invoice->customer->telp }} @endif @endif
--}}
{{-- antara --}} @if (in_array(@$coload->id, [1,4])) {{-- east --}} @elseif (@$coload->id == 2) {{-- vendorbeli --}} @elseif (@$coload->id == 3) @elseif (strtolower(@$coload->nama) == 'yuapp') {{-- --}} @else @endif
Salesperson Ship Via Terms
{{ucwords(@$sales->nama)}} @foreach ($shipvia as $ship) {{$ship->tipe_ekspedisi}} @if (!$loop->last) , @endif @endforeach {{$invoice->term?$invoice->term:'-'}}
{{-- --}}
{{-- --}} @php $subtotal = 0; $totalvolume = 0; $totalberat = 0; $totalcarton = 0; $sumbiayatambahan = 0; $lastresi = null; $sum_chargeberat = 0; $sum_tax = 0; $sum_taxkirim = 0; $sum_codcina = 0; $sum_tax_refund_total = 0; @endphp @foreach ($invoice->invoice_detail as $detail) @php if ($lastresi == null) { $lastresi = $detail->no_resi; } $deskripsi = ''; $kata = null; $jumlah_kata = null; if ($detail->receipt_detail) { if ($detail->receipt_detail->detail_barang) { $deskripsi = @$detail->receipt_detail->detail_barang->first()->deskripsi; $kata = explode(" ", $deskripsi); $jumlah_kata = count($kata); } } @endphp {{-- @if (@$detail->tax_refund_biaya_cbm != 0 && @$detail->tax_refund_biaya_cbm != null) --}} @if ($lastresi == $detail->no_resi) @php $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 @else @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 {{-- --}} @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") @else @endif @endif
Item #TipeDescription Resi / Mark Resi Coload Ctn Berat (kg) Kubikasi (m³) Unit Price Total
@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)}}
{{$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
Charge Berat Laut : Rp {{ribuan(@$sum_chargeberat)}}   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 $satuan = 'm³'; $text_kubikasi = 'Total Kubikasi'; if (@$invoice->invoice_detail->first()->receipt_detail) { if (@$invoice->invoice_detail->first()->receipt_detail->detail_barang) { if(strtolower(@$invoice->invoice_detail->first()->receipt_detail->detail_barang->first()->ekspedisi->tipe_ekspedisi) == "udara") { $satuan = 'kg'; $text_kubikasi = 'Total Charge Volume'; } } } @endphp
Total Quantity : {{$totalcarton}} ctn Total Berat : {{number_format($totalberat, 2, ',', '.')}} kg {{$text_kubikasi}} : {{number_format($totalvolume, 2, ',', '.')}} {{$satuan}}

 
{{-- antara --}} @if (in_array(@$coload->id, [1,4])) {{-- --}} {{-- --}} {{-- --}} {{-- --}}
{{-- east --}} @elseif (@$coload->id == 2) {{-- vendorbeli --}} @elseif (@$coload->id == 3) @elseif (strtolower(@$coload->nama) == 'yuapp') {{-- --}} @else @endif  
Note :
 
Note :
--}} {{--

--}} {{--   --}} {{-- Apabila barang di pickup di Gudang Jakarta, mohon tunjukan invoice ini atau menyebutkan Kode Container, Marking, dan Receipt barang kepada Petugas Gudang. --}} {{--

--}} {{--

--}} {{--   --}} {{-- Jika pengukuran volume atau berat barang tidak sesuai, mohon menghubungi pihak kami untuk proses ukur ulang sebelum melakukan proses pembayaran invoice, kami akan melakukan pengukuran ulang di Gudang Jakarta disaksikan oleh Customer atau perwakilan. Kami tidak menerima ukur ulang setelah barang keluar dari Gudang Jakarta. --}} {{--

--}} {{--

--}} {{--   --}} {{-- Penyimpanan barang di Gudang Jakarta maksimal 3 hari setelah invoice terbit (terhitung pada hari kerja senin-sabtu). Jika melebihi batas waktu yang telah ditentukan, maka akan dikenakan Biaya Penumpukan Gudang sebesar Rp 20.000/hari/cbm. --}} {{--

--}} {{--
--}} {{-- Pembayaran :
Bank {{$invoice->bank}}
{{$invoice->no_rek}}
A/N {{$invoice->nama_rek}}

Virtual Account @php $vabank = '-'; $vanumber = '-'; $vaexpired = '-'; if ($va) { $vabank = $va->payment_channel; $vanumber = $va->va_number; $vaexpired = date('H:i d-m-Y', strtotime($va->expired_time)); } @endphp
Bank {{$vabank}}
@if ($invoice->status != 4) Pay to : {{$vanumber}}
Harap lakukan Pembayaran sebelum {{$vaexpired}} @endif @if ($invoice->status == 4) Paid to : {{$vanumber}} @endif --}} {{--
id == 2) background-image: url('{{url("/global_assets/images/lunas_stempel_red_60.png")}}'); background-attachment: fixed; background-repeat: no-repeat; background-size: 47%; background-position: 135 10; @endif @if ($coload->id == 3) background-image: url('{{url("/global_assets/images/lunas_stempel_red_60.png")}}'); background-attachment: fixed; background-repeat: no-repeat; background-size: 47%; background-position: 135 10; @endif @endif "> @if($invoice->biaya_limit>0) @endif
SUBTOTAL Rp. {{ribuan($subtotal)}}
PACKING Rp. {{ribuan($invoice->harga_packing)}}
INSURANCE Rp. {{ribuan($invoice->harga_asuransi)}}
QUALITY CONTROL Rp. {{ribuan($invoice->biaya_qc)}}
Rp. {{ribuan($invoice->biaya_limit)}}
RDN Rp. {{ribuan($invoice->rdn)}}
OTHER Rp. {{ribuan($invoice->biaya_other)}}
 
TOTAL Rp. {{ribuan($invoice->total_tagihan)}}

Pastikan anda transfer dana sesuai hingga 3 digit terakhir,

agar konfirmasi pembayaran dapat dilakukan otomatis.

@php $detail_text = ''; $dtbarang = ''; $total_ctn = 0; $total_vol = 0; $total_brt = 0; foreach($invoice->invoice_detail as $detail){ $total_ctn += $detail->jml_ctn; $total_vol += $detail->volume; $total_brt += $detail->berat; $dtbarang .= 'No Resi : '.$detail->no_resi. "\r\n" .'Tipe Barang : '.$detail->tipe_barang. "\r\n"; } $dtbarang = substr($dtbarang, 0, 1100); @endphp no_invoice. "\r\n" .'Customer : '.ucwords(@$invoice->customer->nama). "\r\n" .'Marking : '.@$invoice->customer->shipping_mark. "\r\n" .'Total Harga : '.$invoice->total_tagihan. "\r\n" . "\r\n" . 'Info Barang :'. "\r\n" . "\r\n" .$dtbarang. "\r\n" .'Total Carton : '.$total_ctn. "\r\n" .'Total Volume : '.$total_vol.' m3'. "\r\n" .'Total Berat : '.$total_brt.' kg', 'QRCODE') }}" alt="QRCode" />