@php($page = 'orders') {{env('APP_NAME')}} | View Order {{-- --}} {{-- leaflet map --}}
@include("components.navbar")
@include("components.sidebar")

Order Information

{{-- Actions --}}

{{-- client header --}}
Customer Information
@if($order->customer->type == 'individual') Name : {{$order->customer->first_name . " " . $order->customer->last_name}},
Phone : {{$order->customer->phone_number .", ". $order->customer->phone_number2}},
Address : {{$order->address}}
@else Name : {{$order->customer->corporate_name}},
Rep Name : {{$order->customer->rep_name . "(". $order->customer->rep_role .")"}},
Phone : {{$order->customer->rep_phone .", ". $order->customer->phone_number}},
Address : {{$order->address}}
@endif
Order Information
Order #ID : {{$order->order_code}}
Order Status : {{$order->status}}
Date : {{substr($order->created_at,0,10)}}
Payment Status : {{$order->payment_status ?? "Partially Paid"}}
{{-- items --}}
Ordered Plots
@php($count = 1) @foreach($items as $item) @php($count++) @endforeach {{-- Order Summary --}} @if($order->payment_plan == "Installment") @endif
S/N Item Size Quantity Price
{{$count}} {{$item->plot->number ."-".$item->plot->code ."(".$item->plot->area->title.")" }} {{$item->plot->size}} 1 ₦ {{number_format($item->price)}}
Total Quantity {{ number_format($order->quantity) }} Sub Total ₦ {{ number_format($order->amount) }}
Discount ₦ {{ number_format($order->discount) }} Total ₦ {{ number_format($order->total) }}
First Payment ₦ {{ number_format($order->deposit_amount) }} Installment / Tenure ₦ {{ number_format($order->installment_amount) }} / {{ number_format($order->tenure) }} month(s)
Remaining Balance ₦ {{ number_format($order->balance) }}
{{-- transaction --}}
Payments
@php($count = 1) @foreach($order->payments as $payment) @php($count++) @endforeach
S/N Reference Amount Channel Status Date
{{$count}} {{$payment->reference}} ₦ {{number_format($payment->amount)}} {{$payment->method}} {{$payment->status}} {{$payment->created_at}}

{{-- actions --}}
Actions
Invoice Payment History @can('approve_payments') Payment @endcan @can('cancel_payments') @if($order->status !== 'Successful' || $order->status !== 'Completed' || $order->status !== 'Canceled') Cancel @endif @endcan {{-- Payment --}}
@include("components.footer") @include("components.models.cancel-order")
{{-- --}} {{-- --}}