@extends('admin.layout') @section('title', 'Order '.$o->ref) @section('content')

{{ $o->ref }}

{{ $o->customer_name }}
{{ $o->phone }}@if ($o->email)
{{ $o->email }}@endif
{{ $o->address }}, {{ $o->state }}

Message on WhatsApp

@can('jobs.view')

Technician jobs

@foreach ($jobs as $j)

{{ $j->ref }} · {{ $j->typeLabel() }} · {{ $j->statusLabel() }}

@endforeach @can('jobs.manage')

Create technician job

@endcan @endcan
@foreach ($items as $i)@endforeach
ItemPriceQtyLine
{{ $i->name }}{{ naira($i->unit_price) }}{{ $i->qty }}{{ naira($i->unit_price * $i->qty) }}
Items{{ naira($o->subtotal) }}
Delivery{{ $o->delivery_fee === null ? 'To be confirmed' : naira($o->delivery_fee) }}
Total{{ naira($o->total) }}

Payment method: {{ \App\Models\Order::METHODS[$o->payment_method] ?? $o->payment_method }}@if ($o->paystack_ref) | Paystack ref: {{ $o->paystack_ref }}@endif

Manage

@if ($o->payment_status !== 'paid') @can('payments.confirm')
@csrf

@endcan @endif @can('orders.manage')
@csrf @else

You can view this order but not change it.

@endcan

History

@endsection