@extends('layout') @section('css') @endsection @section('content')
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 : '0') : '0' !!}
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}}
No Container : {{@$invoice->invoice_detail->first()->no_container?@$invoice->invoice_detail->first()->no_container:'-'}}
Tanggal : {{date('d-m-Y', strtotime($invoice->created_at))}}
Term : {{$invoice->term}}
Pembayaran ke rekening :
{{$invoice->bank}} - {{$invoice->no_rek}} a.n. {{$invoice->nama_rek}}
@if(!$invoice->invoice_detail->isEmpty()) @foreach ($invoice->invoice_detail as $detail) @if(!is_null($detail->berat_tambahan) && !is_null($detail->harga_tambahan)) @endif @if(strtolower(@$detail->receipt_detail->detail_barang->first()->ekspedisi->tipe_ekspedisi) == "laut") @else @endif @if(strtolower(@$detail->receipt_detail->detail_barang->first()->ekspedisi->tipe_ekspedisi) == "laut") @endif {{-- @if(strtolower(@$detail->receipt_detail->detail_barang->first()->ekspedisi->tipe_ekspedisi) == "laut") @else --}} @if(strtolower(@$detail->receipt_detail->detail_barang->first()->ekspedisi->tipe_ekspedisi) == "laut") @else @endif @php $valcgberat = 0; @endphp @if(strtolower(@$detail->receipt_detail->detail_barang->first()->ekspedisi->tipe_ekspedisi) == "laut") @endif @php // $precg_subtotal = $detail->charge_berat_laut + $detail->tax_refund_biaya_cbm + $detail->biaya_cod_cina * $kurensi->rate_rupiah; $precg_subtotal = $detail->charge_berat_laut + $detail->tax_refund_biaya_cbm + $detail->biaya_cod_cina * $kurensi; @endphp @endforeach @endif
No. Resi Shipping Marks Tipe Barang Jml Karton Total Volume(m3) Total Berat (kg) Biaya cbm/kg Total Biaya
{{$detail->no_resi}} {{@$detail->receipt_detail->receipt->shipping_mark}} {{$detail->tipe_barang}} {{$detail->jml_ctn}} {{number_format($detail->volume, 3, '.', ',')}} {{$detail->berat}} {{ribuan($detail->harga)}} {{ribuan($detail->total)}}
{{$detail->berat_tambahan}} (Add) {{ribuan($detail->harga_tambahan)}} (Add)
    Charge Berat LautTax Refund Tax Refund Biaya Kirim Biaya COD China  
@endif       {{ribuan($detail->charge_berat_laut)}}{{ribuan($detail->tax_refund_biaya_cbm)}} {{ribuan($detail->tax_refund_kirim)}} {{$detail->biaya_cod_cina}}Subtotal {{ribuan($detail->tax_refund_biaya_cbm_total)}}
Deskripsi @if ($detail->receipt_detail) @if ($detail->receipt_detail->detail_barang) @foreach ($detail->receipt_detail->detail_barang as $barang) @if ($barang->deskripsi == null) - @else @if (!$loop->first) , @endif {{$barang->deskripsi}} @endif @endforeach @endif @endif

Keterangan

{{$invoice->keterangan}}   @if (count($invoice->invoice_detail) > 0) @if ($invoice->invoice_detail->first()->receipt_detail) @if(@$invoice->invoice_detail->first()) @php $tipe_ekspedisi = @$invoice->invoice_detail->first()->receipt_detail->detail_barang->first()->ekspedisi->tipe_ekspedisi; @endphp @else @php $tipe_ekspedisi = ''; @endphp @endif @if (strtolower($tipe_ekspedisi) == "udara") COD @else CHARGE BERAT @endif {{-- Biaya Lain --}} @endif @endif Rp. {{ ribuan($invoice->biaya_lain) }}
Random Digit Number Rp. {{ $invoice->rdn }}
Other Rp. {{ $invoice->biaya_other }}
Grandtotal Rp. {{ ribuan($invoice->total_tagihan) }}
@endsection @section('js') @endsection