@extends('layouts.shop') @section('title', 'Order #' . $order->order_number . ' - Delivery') @section('content')
@include('delivery.partials.sidebar')

Order #{{ $order->order_number }}

{{ ucfirst($order->status) }}

Customer Details

Name

{{ $order->shippingAddress->name ?? 'N/A' }}

Address

{{ $order->shippingAddress->address_line1 ?? '' }}
{{ $order->shippingAddress->address_line2 ?? '' }}
{{ $order->shippingAddress->city ?? '' }}, {{ $order->shippingAddress->state ?? '' }} - {{ $order->shippingAddress->postal_code ?? '' }}

Open in Maps
@if($order->pickupStore)

Pickup Location

Store Name

{{ $order->pickupStore->name }}

Contact

{{ $order->pickupStore->phone ?? 'N/A' }}

Store Address

{{ $order->pickupStore->address_line1 }}
{{ $order->pickupStore->city }}, {{ $order->pickupStore->state }} - {{ $order->pickupStore->postal_code }}

Get Directions
@endif

Order Items

    @foreach($order->items as $item)
  • {{ $item->product->name }}

    Qty: {{ $item->quantity }} @if($item->variation) | {{ $item->variation->name ?? 'Var' }} @endif

    ₹{{ number_format($item->price * $item->quantity, 2) }}

  • @endforeach
Total to Collect (if COD) @if($order->payment_method == 'cod') @if($order->payment_status == 'paid' || $order->status == 'completed') Paid @else ₹{{ number_format($order->total, 2) }} @endif @else Paid Online @endif
@if($order->status == 'completed' && ($order->agentRating || $order->productReviews->isNotEmpty()))

Customer Feedback

@if($order->agentRating)

Delivery Rating

@for($i = 1; $i <= 5; $i++) @endfor
@if($order->agentRating->comment)

"{{ $order->agentRating->comment }}"

@endif
@endif @if($order->productReviews->isNotEmpty())

Product Reviews

@foreach($order->productReviews as $review)

{{ $review->product->name }}

@for($i = 1; $i <= 5; $i++) @endfor
@if($review->comment)

"{{ $review->comment }}"

@endif
@endforeach
@endif
@endif

Update Status

@csrf
@if($order->status == 'processing' || $order->status == 'pending') @endif @if($order->status == 'shipped') @endif

Cancellation Details

@csrf
@push('scripts') @endpush @endsection