@extends('app.app') @section('title') Finance - Payment @endsection @section('content')

Detail Pesanan (#{{ $order->ord_code }})

@if ($order->crt_type_order === \App\Models\Orders::CRT_TYPE_ORDER_ADMIN_SPECIAL) Pesanan Khusus @endif

Penjemputan dan Pengantaran

22 Apr 2022

19.20

Layanan Yang Dipilih

{{ $order->lead_time }} Hari

Rp{{ number_format($order->price, 0, ',', '.') }}

{{--

{{ $order->prefer_truck_type_name }}

--}}

{{ $order->vhc_type_name }}

{{--

Gudang Pluit SiCepat (Jakarta)

--}}

{{ $order->pck_name }}

{{--

Jl. Pluit Karang Karya 2 No.33, RT.7/RW.16, Pejagalan, Kec. Penjaringan, Kota Jkt Utara, Daerah Khusus Ibukota Jakarta 14440

--}}

{{ $order->pck_addr }}

{{--

to

--}}
{{--

Kantor Pusat SiCepat (yogyakarta)

--}}

{{ $order->drop_name }}

{{--

Jl. Prof. Herman Yohanes No.989, Terban, Gondokusuman, Kota Yogyakarta, Daerah Istimewa Yogyakarta 55223, Indonesia

--}}

{{ $order->drop_addr }}

{{-- invoicing termin 1 --}} @php $current_group_termin_id = 0; $prev_group_termin_id = 0; @endphp @foreach ($group_termins as $yi => $y) @if ($y->c_group_termin_id !== $current_group_termin_id) @php $prev_group_termin_id = $current_group_termin_id; $prev_group_termin_is_paid = $y->termin_is_paid; $result_is_enable_btn = App\Helper::viewBillFncIsEnableBtn($y->termin_ddln_type, $y->drop_chk_at, $prev_group_termin_id, $prev_group_termin_is_paid); $sub_total = 0; $invc_items = ''; @endphp

Data Penagihan | Termin {{ $y->termin_sequence }}

@if ($result_is_enable_btn === 0)
Menunggu Pengantaran Selesai
@elseif ($result_is_enable_btn === 1)
@elseif ($result_is_enable_btn === 2)
Pengantaran Selesai pada {{ date('Y-m-d H:i', $y->drop_chk_a) }}
@elseif ($result_is_enable_btn === 3)
Termin sebelumnya belum selesai
@endif
@endif @foreach ($ord_a_items as $xi => $x) @if ($x->c_group_termin_id === $y->c_group_termin_id) @php $sub_total += $x->amt_total_flat; $invc_items .= "$x->ord_a_item_id,"; @endphp @endif @endforeach @if ($y->c_group_termin_id !== $current_group_termin_id) @php $current_group_termin_id = $y->c_group_termin_id; @endphp @php $tax = $sub_total * \App\Models\OrdersInvoices::DFT_TAX_PERCENT / 100; @endphp @if ($result_is_enable_btn === 1 || $result_is_enable_btn === 2) @else @endif
# Item Jumlah Satuan Harga (Rp) Total (Rp)
1 {!! $x->desc !!} {{ $x->unit_qty }} {{ \App\Models\OrdersAItems::getUnitTypeText($x->unit_type) }} {{ number_format($x->amt_base_flat, 0, ',', '.') }} {{ number_format($x->amt_total_flat, 0, ',', '.') }}
Sub total {{ number_format($sub_total, 0, ',', '.') }} {{ number_format($sub_total, 0, ',', '.') }}
@if ($x->invc_disc_type === \App\Models\OrdersInvoices::AMT_TYPE_PERCENT) Diskon ({{ $x->c_group_termin_id }}%) @else Diskon @endif -{{ number_format(round($x->invc_disc_flat) ?? 0, 0, ',', '.') }}
PPN ({{ \App\Models\OrdersInvoices::DFT_TAX_PERCENT }}%) {{ number_format($tax, 0, ',', '.') }}
TOTAL {{ number_format($sub_total + $tax - (round($x->invc_disc_flat) ?? 0), 0, ',', '.') }}
@if ($result_is_enable_btn === 0) @elseif ($result_is_enable_btn === 1) @elseif ($result_is_enable_btn === 2) @elseif ($result_is_enable_btn === 3) @endif
@endif @endforeach
{{-- Modal --}} {{-- ./Modal --}} @endsection @section('customcss') @endsection @section('customjs') @endsection