@extends('layouts.ecommerce_admin') @section('title', $order->order_number) @section('page_heading', 'Order '.$order->order_number) @section('content')

{{ $order->order_number }}

Placed {{ $order->created_at->format('M d, Y h:i A') }} · {{ ucfirst(str_replace('_', ' ', $order->channel)) }}
Open customer tracking

Items and branch allocation

@foreach($order->lines as $line) @endforeach
ItemSource branchQtyPriceTotal
{{ $line->product_name }}
{{ $line->variation_name ?: $line->sku }}
{{ optional($line->sourceLocation)->name ?: 'Unavailable branch' }} {{ number_format($line->quantity, 2) }} ₱{{ number_format($line->unit_price, 2) }} ₱{{ number_format($line->line_total, 2) }}
Subtotal₱{{ number_format($order->subtotal,2) }}
Discount-₱{{ number_format($order->discount_total,2) }}
Delivery₱{{ number_format($order->shipping_total,2) }}
Total₱{{ number_format($order->final_total,2) }}

Fulfillment

@csrf
@if($order->fulfillment_method === 'delivery')
@else
@endif

Order history

    @foreach($order->history->sortByDesc('created_at') as $entry)
  1. {{ \App\Utils\EcommerceService::STATUS_LABELS[$entry->status] ?? ucfirst($entry->status) }}
    {{ $entry->created_at->format('M d, Y h:i A') }} · {{ ucfirst($entry->actor_type) }}
    @if($entry->note)
    {{ $entry->note }}
    @endif
  2. @endforeach
@endsection