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

Detail Pesanan #{{ $order->reference_number }}

Status: @if ($order->status == 'pending') Menunggu Konfirmasi & Pembayaran @elseif ($order->status == 'approved') @if ($order->payment_method == 'COD') Disetujui & COD @else Disetujui & Menunggu Pengiriman @endif @else Ditolak @endif

@if ($order->status == 'pending' && $order->is_exported == 0) {{-- --}} @endif Kembali

Informasi Pembeli & Pengirim

Pembeli

{{ $order->customer_name }}

{{ $order->whatsapp }}

Alamat: {{ $order->address }}, {{ $order->subdistrict }}, {{ $order->district }}, {{ $order->postal_code }}

@if ($order->payment_method != 'COD') Lihat Bukti Transfer @endif

Pengirim

{{ $order->actor->full_name }}

Kode: #{{ $order->actor->code }}

Alamat: {{ $order->actor->address }}, {{ $order->actor->area->sub_district_name }}, {{ $order->actor->area->district_name }}, {{ $order->actor->area->city_name }}, {{ $order->actor->area->province_name }}

Rincian Pesanan & Pembayaran

@php $boxPrice = 170000; $sachetPrice = 49000; $totalQty = $order->total_quantity ?? 0; $isBox = $totalQty >= 5; $productLabel = $isBox ? 'Box (DRSBOX)' : 'Sachet (DRSSACHET)'; $productIcon = $isBox ? 'https://cdn-icons-png.flaticon.com/128/2826/2826142.png' : 'https://cdn-icons-png.flaticon.com/128/6522/6522522.png'; $productPrice = $isBox ? $boxPrice : $sachetPrice; $subtotal = $isBox ? ($totalQty / 5) * $productPrice : $totalQty * $productPrice; @endphp
DOORASI

DOORASI

Varian: {{ '(' . $order->sku . ')' }}

{{ $isBox ? $totalQty / 5 . ' x Rp 170.000' : $totalQty . 'x Rp 49.000' }} Rp {{ number_format($subtotal, 0, '.', '.') }}
Subtotal Rp {{ number_format($subtotal, 0, '.', '.') }}
Ongkos Kirim Rp {{ number_format($order->shipping_cost ?? 0, 0, '.', '.') }}

Total Pembayaran Rp {{ number_format($order->total_payment ?? 0, 0, '.', '.') }}

Verifikasi & Pengiriman

@php $selisihShipping = ($order->shipping_cost ?? 0) - ($order->shipping->shipping_cost ?? 0); $selisihTotal = ($order->total_payment ?? 0) - ($order->shipping->total_payment ?? 0); @endphp

{{ $selisihShipping != 0 ? 'ONGKIR TIDAK SESUAI' : 'ONGKIR SESUAI' }}

CS Input: Rp {{ number_format($order->shipping_cost ?? 0, 0, '.', '.') }}
Sistem: Rp {{ number_format($order->shipping->shipping_cost ?? 0, 0, '.', '.') }}

{{ $selisihTotal != 0 ? 'TOTAL TIDAK SESUAI' : 'TOTAL SESUAI' }}

CS Input: Rp {{ number_format($order->total_payment ?? 0, 0, '.', '.') }}
Sistem: Rp {{ number_format($order->shipping->total_payment ?? 0, 0, '.', '.') }}

Ekspedisi

{{ $order->shipping->logistic_name ?? '-' }}

Layanan

{{ $order->shipping->rate_name ?? '-' }} ({{ $order->shipping->rate_code ?? '-' }})

Estimasi

{{ $order->shipping->min_duration ?? '-' }} - {{ $order->shipping->max_duration ?? '-' }} hari

@endsection @push('scripts') {{-- --}} @endpush