@extends('admin.layout') @section('content')
{{ $order->order_number }}
{{ $order->placed_at?->format('d M Y, h:i A') }}
Back
Items
@foreach ($order->items as $item)
{{ $item->service_name }}
x{{ $item->quantity }}
৳{{ number_format((float) $item->line_total, 2) }}
@endforeach
Subtotal
৳{{ number_format((float) $order->subtotal, 2) }}
Discount
- ৳{{ number_format((float) $order->discount_amount, 2) }}
Total
৳{{ number_format((float) $order->total, 2) }}
Status
@csrf @method('PATCH')
Schedule
{{ $order->scheduled_date->format('d M Y') }} • {{ $order->timeSlot?->label }}
Customer
{{ $order->customer?->name ?? $order->guest_name ?? 'Guest' }}
@if ($order->customer?->phone || $order->guest_phone)
{{ $order->customer?->phone ?? $order->guest_phone }}
@endif @if ($order->customer?->email || $order->guest_email)
{{ $order->customer?->email ?? $order->guest_email }}
@endif
Address
@if ($order->area)
{{ $order->area->name }}
@endif
{{ $order->address }}
@if ($order->coupon)
Coupon
{{ $order->coupon->code }}
@endif
@endsection