@extends('layouts.ecommerce_store') @section('title', 'Order '.$order->order_number.' - '.($settings['store_name'] ?? $business->name)) @section('content')
Order tracking

{{ $order->order_number }}

{{ \App\Utils\EcommerceService::STATUS_LABELS[$order->status] ?? ucfirst(str_replace('_',' ',$order->status)) }}
@php $pickupCode = session('ecommerce.last_pickup_code.'.$order->tracking_token); @endphp @if($pickupCode)
Collection code
{{ $pickupCode }}

Show this code when collecting your order. It is also included in your order notification.

@endif

Items

@foreach($order->lines as $line) @endforeach
ItemSupplying branchQuantityTotal
{{ $line->product_name }}
{{ $line->variation_name }} {{ $line->sku }}
{{ optional($line->sourceLocation)->name }} {{ number_format($line->quantity) }} ₱{{ number_format($line->line_total, 2) }}

Progress

    @foreach($order->history as $event)
  • {{ \App\Utils\EcommerceService::STATUS_LABELS[$event->status] ?? ucfirst(str_replace('_',' ',$event->status)) }}
    {{ $event->created_at->format('M d, Y h:i A') }}
    @if($event->note)
    {{ $event->note }}
    @endif
  • @endforeach
@if($returnWindowOpen && collect($returnableQuantities)->sum() > 0)

Request a return

Items already included in an open return request are excluded from the available quantities.

@csrf
@foreach($order->lines as $line) @php $returnable = (float) ($returnableQuantities[$line->id] ?? 0); @endphp @if($returnable > 0)
@endif @endforeach
@endif
@endsection