@extends('dashboard.body.main') @section('container')

Order Details Information

{{ $order->customer->name }}

{{ $order->customer->email }}

{{ $order->customer->address }}

$
$
@if ($order->order_status == 'pending')
@method('put') @csrf Cancel
@else
@endif

Order Items

@foreach ($orderDetails as $item) @endforeach
No. Photo Product Name Product Code Quantity Price Total
{{ $loop->iteration }} {{ $item->product->name }} {{ $item->product->name }} {{ $item->product->code }} {{ $item->quantity }} {{ number_format($item->unit_price, 2) }} {{ number_format($item->total, 2) }}
Subtotal {{ number_format($order->sub_total, 2) }}
VAT {{ number_format($order->vat, 2) }}
Total {{ number_format($order->total, 2) }}
@endsection