@extends('template.desktop.app') @push('styles') {{-- --}} @endpush @section('content')

#{{ $order['reference_no'] }}

Dibuat pada: {{ $order['order_date'] }}

@php $topCards = [ [ 'title' => 'Total Pembayaran', 'value' => number_format($order['total_payment']), 'desc' => 'Barang + ongkir + biaya lainnya', 'icon' => 'bx-wallet', ], [ 'title' => 'Total Barang', 'value' => number_format($order['total']), 'desc' => 'Subtotal seluruh produk', 'icon' => 'bx-cart-alt', ], [ 'title' => 'Metode Pembayaran', 'value' => $order['payment_method'], 'desc' => 'Sumber: ' . strtoupper($order['order_source']), 'icon' => 'bx-credit-card', ], ]; @endphp @foreach ($topCards as $card)

{{ $card['title'] }}

Rp {{ $card['value'] }}

{{ $card['desc'] }}

@endforeach
@php function glossy_start() { return '
'; } function glossy_end() { return '
'; } @endphp
{!! glossy_start() !!}

Detail Order

Client Order {{ $order['client_order_no'] }}
Actor {{ $order['actor_label'] }} (ID: {{ $order['actor_id'] }})
Shipment Order {{ $order['shipment_order_no'] }}
No Resi {{ $shipment['awb_number'] ?? '-' }}
Catatan {{ $order['notes'] ?: '-' }}
{!! glossy_end() !!} {!! glossy_start() !!}

Data Penerima

@if ($receiver)

Nama

{{ $receiver['name'] }}

No HP

{{ $receiver['phone_number'] }}

Kota

{{ $receiver['city'] }}

Alamat Lengkap

{{ $receiver['address'] }}
{{ $receiver['postal_code'] }}

@endif {!! glossy_end() !!} {!! glossy_start() !!}

Informasi COD

@if ($cod)

Total COD

Rp {{ number_format($cod['total']) }}

Biaya COD

Rp {{ number_format($cod['fee']) }}

Total Pencairan

Rp {{ number_format($cod['total_disbursement']) }}

Dibayar Oleh

{{ strtoupper($cod['fee_paid_by']) }}

@else

Pesanan ini bukan COD.

@endif {!! glossy_end() !!}
{!! glossy_start() !!}

Produk dalam Pesanan

@foreach ($items as $item) @endforeach
SKU Nama Produk Qty Harga Subtotal
{{ $item['sku'] }} {{ $item['product_name'] }} {{ $item['qty'] }} Rp {{ number_format($item['price']) }} Rp {{ number_format($item['subtotal']) }}
{!! glossy_end() !!} {!! glossy_start() !!}

Informasi Pengiriman

@if ($shipment)

Nomor Resi

{{ $shipment['awb_number'] }}

Status

{{ $shipment['status_name'] }}

Biaya Ongkir

Rp {{ number_format($shipment['shipment_cost']) }}

Biaya Admin

Rp {{ number_format($shipment['admin_fee']) }}

Diskon

Rp {{ number_format($shipment['discount']) }}

Pickup

{{ $shipment['min_pickup_time'] }} — {{ $shipment['max_pickup_time'] }}

@endif {!! glossy_end() !!} @isset($comparison) {!! glossy_start() !!}

Perbandingan Harga

Harga Logistik

Rp {{ number_format($comparison['logistic_price_original']) }}

Final Ongkir

Rp {{ number_format($comparison['logistic_shipment_cost']) }}

Cashback: Rp {{ number_format($comparison['logistic_cashback']) }}

Generate Ongkir

Rp {{ number_format($comparison['generated_shipping_cost']) }}

Tagihan Logistik

Rp {{ number_format($comparison['generated_total_payment']) }}

Total di Order

Rp {{ number_format($comparison['order_total_payment']) }}

Sudah termasuk ongkir + barang

{!! glossy_end() !!} @endisset
@endsection