@extends('admin.MainComponent') @section('content')

Order Details #{{ $order->id }}

Back to Orders
@if(session('success')) @endif
Order Items
@php $grandTotal = 0; @endphp @foreach($items as $item) @endforeach
Item Description Price Additional Price Qty Total
{{ App\Models\Product::find($item->elementId)->name ?? 'Unknown Item' }} {{ Str::limit(App\Models\Product::find($item->elementId)->description ?? '-', 50) }} {{ number_format(App\Models\Product::find($item->elementId)->price ?? 0, 2) }} {{ $item->additionPrice ?? '-' }} {{ $item->quantity }} {{ number_format(($item->total ?? 0) * $item->quantity, 2) }}
Promo Code Discount: {{ number_format($order->promoCodeDiscount, 2) }}
Total Amount: {{ number_format($order->total, 2) }}
@if($order->notes)
Special Instructions
{{ $order->notes }}
@endif
Order Info
  • Order Status: {{ ucfirst($order->status) }}
  • Payment Status: {{ $order->is_paid ? 'Paid' : 'Unpaid' }}
  • Order Date: {{ $order->created_at->format('M d, Y h:i A') }}
  • Payment Method: {{ ucfirst($order->payment_method) }}
  • @if($order->transaction_id)
  • Transaction ID: {{ $order->transaction_id }}
  • @endif
Customer Details
@if($order->client?->avatar) Customer @else Customer @endif
{{ $order->buyerName ?? $order->client?->name ?? 'Guest' }}
{{ $order->client?->phone ?? 'N/A' }}
  • Email: {{ $order->client?->email ?? $order->email ?? 'N/A' }}
@endsection @push('styles') @endpush