@extends('user.layouts.master') @section('title','Order Detail') @section('main-content')
Order Generate PDF
@if($order)
S.N. Order No. Name Email Charge Total Amount Status Action
{{ $order->id }} {{ $order->order_number }} {{ $order->first_name }} {{ $order->last_name }} {{ $order->email }} Rs{{ optional($order->shipping)->price ?? '0.00' }} Rs{{ number_format($order->total_amount,2) }} @if($order->status=='new') {{ $order->status }} @elseif($order->status=='process') {{ $order->status }} @elseif($order->status=='delivered') {{ $order->status }} @else {{ $order->status }} @endif
@csrf @method('delete')

ORDER INFORMATION

Order Number : {{ $order->order_number }}
Order Date : {{ $order->created_at->format('D d M, Y') }} at {{ $order->created_at->format('g : i a') }}
Products : @foreach($order->cart_info as $item) {{ $item->product->title ?? 'Deleted Product' }} ( Size: {{ $item->size ?? 'N/A' }}) @if (!$loop->last), @endif @endforeach
Total Quantity : {{ $order->quantity }}
Order Status : {{ $order->status }}
Shipping Charge : Rs{{ optional($order->shipping)->price ?? '0.00' }}
Total Amount : Rs{{ number_format($order->total_amount,2) }}
Payment Method : @if($order->payment_method=='cod') Cash on Delivery @else Paypal @endif
Payment Status : {{ $order->payment_status }}

SHIPPING INFORMATION

Full Name : {{ $order->first_name }} {{ $order->last_name }}
Email : {{ $order->email }}
Phone No. : {{ $order->phone }}
Address : {{ $order->address1 }}, {{ $order->address2 }}
Country : {{ $order->country }}
Post Code : {{ $order->post_code }}
@endif
@endsection @push('styles') @endpush