@foreach ($orders as $order)
@php $logoUrl = match($order->order->logistic_name) { 'ID Express' => 'https://s3.bukalapak.com/attachment/340042/id-express.png', 'J&T Express' => 'https://upload.wikimedia.org/wikipedia/commons/thumb/0/01/J%26T_Express_logo.svg/2560px-J%26T_Express_logo.svg.png', 'JNE' => 'https://upload.wikimedia.org/wikipedia/commons/9/92/New_Logo_JNE.png', 'POS Indonesia' => 'https://admin-piol.posindonesia.co.id/media/pages-makna-logo-4.jpg', default => '' }; @endphp
{{ $order->client_order_no }}
{{ $order->order->rate_code }}
{{ $order->awb_number }}
Tanggal Order: {{ \Carbon\Carbon::parse($order->order_date)->format('d M Y') }}
Pengirim:
{{ $order->shipper_name }} {{ $order->shipper_phone_number }}
{{ $order->shipper_address }}, {{ $order->shipper_location_detail }}
Penerima:
{{ $order->receiver_name }} {{ $order->receiver_phone_number }}
{{ $order->receiver_address }}, {{ $order->receiver_location_detail }}
BERAT
1 KG
ONGKIR
Rp {{ number_format($order->shipment_price, 0, ',', '.') }}
Sudah Termasuk PPN
COD
Rp {{ number_format($order->total_cod, 0, ',', '.') }}
{{ $order->total_cod > 0 ? 'Bayar di Tempat (COD)' : 'Sudah Dibayar' }}
@endforeach