@extends('layout') @section('css') @endsection @section('content')
{{-- --}} @method('PATCH') @csrf
Info Perusahaan
{{@$invoice->customer->coload->nama}}
{{@$invoice->customer->coload->alamat}}
Telp: {{@$invoice->customer->coload->telp}}
Harga Deals
{!! is_object($invoice->customer) ? ($invoice->customer->harga_deals != "" ? $invoice->customer->harga_deals : '-') : '-' !!}
Tagihan Untuk
{{ucwords(@$invoice->customer->nama)}}
{{@$invoice->customer->alamat}}
@if (\Auth::user()->id == 46) Telp: {{@$invoice->customer->telp}}
@endif Email: {{@$invoice->customer->email}}
No Invoice : {{$invoice->no_invoice}}
Term : {{$invoice->term}}
Pembayaran ke rekening :
   -        a.n.   
Tanggal Print :
@if (\Auth::user()->role == 1 && isset($rekapbonus))

@endif
{{--
--}}
status!=1) style="display:none" @endif>
status!=1) disabled @endif>
status!=3) style="display:none" @endif>
status!=3) disabled @endif>
status!=4) style="display:none" @endif>
status!=4) disabled @endif>
{{--
--}}
@if (!$invoice->invoice_detail->isEmpty())
status!=1) style="display:none" @endif>
@endif @if(strtolower(@$invoice->invoice_detail->first()->tipe_ekspedisi) == "udara") @else @endif @php $satuanekspedisi = ''; $jenisekspedisi = ''; @endphp @if(!$invoice->invoice_detail->isEmpty()) @php $grandtotal = 0; $i=1; @endphp @foreach ($invoice->invoice_detail as $detail) @php // $satuanekspedisi = ''; // $jenisekspedisi = ''; if ($detail->receipt_detail) { if ($detail->receipt_detail->detail_barang) { if ($detail->receipt_detail->detail_barang->first()->ekspedisi) { $satuanekspedisi = $detail->receipt_detail->detail_barang->first()->ekspedisi->satuan; $jenisekspedisi = $detail->receipt_detail->detail_barang->first()->ekspedisi->tipe_ekspedisi; } } } @endphp {{-- Total Volume --}} {{-- --}} {{-- Total Berat --}} {{-- Jika menggunakan ekspedisi udara dan berat volume > berat utama --}} @if ($detail->receipt_detail) @if((strtolower($jenisekspedisi) == "udara") && ($detail->volume > ($detail->berat * $detail->carton_count))) {{-- Jika menggunakan ekspedisi laut atau menggunakan ekspedisi udara tapi berat volume < berat utama --}} @else @endif @else {{-- JIKA KOSONG --}} @endif {{-- Harga / Perhitungan tergantung ekspedisi udara atau laut --}} {{-- Jika menggunakan ekspedisi udara dan berat volume > berat utama --}} @if ($detail->receipt_detail) @if((strtolower($jenisekspedisi) == "udara") && ($detail->volume > ($detail->berat * $detail->carton_count))) {{-- Jika menggunakan ekspedisi laut atau menggunakan ekspedisi udara tapi berat volume < berat utama --}} @else @endif @else @endif {{-- Total harga 1 row --}} {{-- --}} @if ($detail->receipt_detail) @else @endif {{-- @php $colspan = 0; if (strtolower($detail->tipe_ekspedisi) == "laut") { $colspan = 4; } else { $colspan = 4; } @endphp --}} {{-- @if(strtolower(@$detail->receipt_detail->detail_barang->first()->ekspedisi->tipe_ekspedisi) == "laut") @php $valcgberat = 0; @endphp {{-- @if(strtolower(@$detail->receipt_detail->detail_barang->first()->ekspedisi->tipe_ekspedisi) == "laut") @endif --}} @if ($detail->receipt_detail) @if ($detail->receipt_detail->detail_barang) @if (strtolower($jenisekspedisi) == "laut") @endif @endif @endif @php // $precg_subtotal = $detail->charge_berat_laut + (($detail->tax_refund_biaya_cbm * $kurensi->rate_rupiah) + $detail->tax_refund_kirim + ($detail->biaya_cod_cina * $kurensi->rate_rupiah)) ; $precg_subtotal = $detail->charge_berat_laut + (($detail->tax_refund_biaya_cbm * $kurensi) + $detail->tax_refund_kirim + ($detail->biaya_cod_cina * $kurensi)) ; @endphp @if ($detail->voucher) @php $voucherid = @$detail->voucher->id; $tipepotongan = @$detail->voucher->tipe_potongan; $tipevoucher = @$detail->voucher->tipe_voucher; $jumlahvoucher = @$detail->voucher->jumlah; @endphp @endif @php $i++; @endphp @endforeach @endif {{-- --}} {{-- --}} {{-- --}} @if(strtolower($jenisekspedisi) == "udara") @else {{-- --}} @endif {{-- --}} {{-- --}}
No. Resi Shipping Marks Tipe Barang Jml KartonTotal Berat Volume (m3)Total Volume (m3)Total Berat (kg) Biaya cbm/kg Total Biaya
{{$detail->no_resi}} {{@$detail->receipt_detail->receipt->shipping_mark}} {{$detail->volume}} * Berat Utama
* Berat tambahan
* {{$jenisekspedisi}}
* Biaya tambahan
* {{$jenisekspedisi}} * {{$jenisekspedisi}} {{ribuan($detail->total)}} @if ($detail->receipt_detail->detail_barang) @if(strtolower($jenisekspedisi) == "laut") * {{$satuanekspedisi}} x Harga @else @if($detail->volume > $detail->berat) * (Berat x Harga) + (Volume - Berat) x (Harga / 2) @else * Kg x Harga @endif @endif @else - @endif -
@else @endif --}}   Charge Berat Laut Charge Berat Laut Tax Refund Tax Refund Biaya Kirim Biaya COD China Subtotal
Deskripsi @if ($detail->receipt_detail) @foreach ($detail->receipt_detail->detail_barang as $barang) @if ($barang->deskripsi == null) - @else @if (!$loop->first) , @endif {{$barang->deskripsi}} @endif @endforeach @else - @endif
Biaya Packing & Asuransi yg sudah tercantum di resi Packing : Rp {{ribuan(@$detail->receipt->harga_packing)}} Asuransi : Rp {{ribuan(@$detail->receipt->harga_asuransi)}}
Voucher {{@$detail->voucher->nama_voucher}} Tipe Potongan : {{config('custom.tipe_potongan_voucher.'.$tipepotongan)}}
Tipe Voucher : {{config('custom.tipe_voucher.'.$tipevoucher)}}
Jumlah : @if ($tipevoucher == 2) Rp @endif {{ribuan(@$detail->voucher->jumlah)}} @if ($tipevoucher == 1) % @endif
@if ($tipepotongan == 2) Potongan Biaya cbm/kg: Rp {{ribuan(@$detail->potongan_diskon_voucher)}}
Potongan Biaya cbm/kg dengan potongan : Rp {{ribuan(@$detail->harga - $detail->potongan_diskon_voucher)}} @else Total Potongan : Rp {{ribuan(@$detail->potongan_diskon_voucher)}}
Subtotal dengan potongan : Rp {{ribuan(@$detail->total + $detail->potongan_diskon_voucher)}} @endif
Keterangan {{$invoice->keterangan}}   Biaya Packing
Biaya Asuransi
Biaya Quality ControlRp. {{ ribuan($invoice->biaya_lain) }}
@if (strtolower($jenisekspedisi) == "udara") COD @else CHARGE BERAT @endif Biaya Lain
Random Digit Number {{ $invoice->rdn?'Rp. '.$invoice->rdn:'--Akan digenerate setelah update--' }}
Other
  Biaya COD China
  Tax Refund Nominal
  Biaya Kelebihan Berat
 GrandtotalRp. {{ ribuan($invoice->total_tagihan) }}
@endsection @section('js') @endsection