{{ __('Order detail') }}

{{ $order->order_number }}

@php $statusClass = match ($order->status) { 'new' => 'bg-indigo-500/15 text-indigo-200 ring-indigo-500/30', 'in_progress' => 'bg-amber-500/15 text-amber-200 ring-amber-500/30', 'done' => 'bg-emerald-500/15 text-emerald-200 ring-emerald-500/30', default => 'bg-white/5 text-gray-200 ring-white/10', }; @endphp
{{ __('Customer') }}
{{ $order->customer_name }}
@if ($order->customer_contact)
{{ $order->customer_contact }}
@endif
{{ __('Status') }}
{{ $order->status }}
@if ($order->paid_at)
{{ __('Paid at') }}: {{ $order->paid_at->format('Y-m-d H:i') }}
@endif
{{ __('Service') }}
{{ $order->service_name }}
@if ($order->package_name)
{{ $order->package_name }}
@endif
{{ __('Amount') }}
{{ number_format((float) $order->price_amount, 0, ',', '.') }} {{ $order->currency }}
@if ($order->notes)
{{ __('Notes') }}
{{ $order->notes }}
@endif
{{ __('Assignment') }}
@if ($order->assignedToUser)
{{ $order->assignedToUser->name }}
{{ $order->assignedToUser->role }}
@else
{{ __('Unassigned') }}
@endif
{{ __('Created') }}: {{ optional($order->created_at)->format('Y-m-d H:i') }}
{{ __('Updated') }}: {{ optional($order->updated_at)->format('Y-m-d H:i') }}