@extends('pages.layouts.panel') @section('head') @include('pages.layouts.style') @endsection @section('body')
Kembali ke Daftar Pesanan

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

{{ $order->created_at->locale('id')->translatedFormat('d F Y H:i') }} WIB

{{ ucfirst($order->status) }}
No. Pesanan: {{ $order->invoice }}
Tanggal Order: {{ $order->created_at->locale('id')->translatedFormat('d F Y H:i') }} WIB
Nama Customer: {{ $order->username }}
No. Telepon: {{ $order->phone }}
Detail Produk
@foreach ($order->items as $item)
@if ($item->product && $item->product->image) {{ $item->title }} @else
@endif
{{ $item->title }}
@if ($item->product)

{{ $item->product->description }}

{{ $item->product->status == 1 ? 'Active' : 'Non Active' }} Dibuat: {{ $item->product->created_at->format('d M Y') }}
@endif
Harga Satuan:
Rp {{ number_format($item->final_price, 0, ',', '.') }}
Berat:
{{ $item->qty }} KG

Subtotal Produk:
Rp {{ number_format($item->item_total, 0, ',', '.') }}
@if (!$loop->last)
@endif @endforeach
Rincian Pembayaran
@foreach ($order->items as $item)
{{ $item->title }} ({{ $item->qty }} KG)
Rp {{ number_format($item->item_total, 0, ',', '.') }}
@endforeach
Subtotal:
Rp {{ number_format($order->calculated_subtotal, 0, ',', '.') }}
Total Berat:
{{ number_format($order->weight ?? $order->calculated_weight, 0, ',', '.') }} KG

Total Pembayaran:

Rp {{ number_format($order->grand_total ?? $order->calculated_subtotal, 0, ',', '.') }}

@endsection