@extends('template.desktop.app') @section('content')
Order {{ $order->reference_number }} @if ($order->status == 'pending') Pending @elseif ($order->status == 'approved') Disetujui @else Ditolak @endif {{ $order->payment_method }}

{{ $order->created_at }}

@if ($order->status == 'pending') @endif ← Kembali
@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 = $totalQty * $productPrice; @endphp
Rincian Produk
@if ($totalQty > 0) @else @endif
Produk Harga Jumlah Total
Produk
DOORASI Varian: {{ $productLabel }}
Rp {{ number_format($productPrice, 0, ',', '.') }} {{ $totalQty }} Rp {{ number_format($subtotal, 0, ',', '.') }}
Tidak ada produk dipesan.
Subtotal:
Rp {{ number_format($subtotal ?? 0, 0, ',', '.') }}
Ongkos Kirim:
Rp {{ number_format($order->shipping_cost ?? 0, 0, ',', '.') }}
Total Pembayaran:
Rp {{ number_format($order->total_payment ?? 0, 0, ',', '.') }}
Perbandingan Data Order
Cek perbedaan data yang diinput oleh CS dan data sistem ekspedisi
@php $selisihShipping = ($order->shipping_cost ?? 0) - ($order->shipping->shipping_cost ?? 0); $selisihTotal = ($order->total_payment ?? 0) - ($order->shipping->total_payment ?? 0); @endphp
Ongkos Kirim Total Pembayaran
Input Sistem Selisih Input Sistem Selisih
CS Input Rp {{ number_format($order->shipping_cost ?? 0, 0, ',', '.') }} Sistem Rp {{ number_format($order->shipping->shipping_cost ?? 0, 0, ',', '.') }} Rp {{ number_format($selisihShipping, 0, ',', '.') }} @if ($selisihShipping != 0) Tidak Sesuai @else Sesuai @endif CS Input Rp {{ number_format($order->total_payment ?? 0, 0, ',', '.') }} Sistem Rp {{ number_format($order->shipping->total_payment ?? 0, 0, ',', '.') }} Rp {{ number_format($selisihTotal, 0, ',', '.') }} @if ($selisihTotal != 0) Tidak Sesuai @else Sesuai @endif

Dientri oleh:

{{ $order->customerService->customerService->full_name ?? '-' }}

Ekspedisi Pengiriman:

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

Rate Name:

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

Rate Code:

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

Estimasi Durasi Pengiriman:

{{ $order->shipping->min_duration ?? '-' }} - {{ $order->shipping->max_duration ?? '-' }} hari
Data Pembeli
Avatar
{{ $order->customer_name }}
Nomor HP: {{ $order->whatsapp }}
Alamat Pembeli

{{ $order->address }}

{{ $order->subdistrict }}, {{ $order->district }}, {{ $order->postal_code }}
Data Pengirim
Avatar
{{ $order->distributor->full_name }}
Kode Pengirim: #{{ $order->distributor->agent_code }}
Kontak Pengirim
Email: {{ $order->distributor->email }} WhatsApp: {{ $order->distributor->primary_phone }}
Alamat Pengirim

{{ $order->distributor->address }}

{{ $order->distributor->area->sub_district_name }}, {{ $order->distributor->area->district_name }}, {{ $order->distributor->area->city_name }}, {{ $order->distributor->area->province_name }}
@endsection @push('scripts') @endpush