@extends('layouts.account') @section('title', $order->number.' | '.setting_text('store.name', 'Mandano 888')) @section('heading', __('account.order').' '.$order->number) @section('subheading', $order->created_at->translatedFormat('d M Y — H:i')) @section('account')
{{ status_label($order->status) }} {{ payment_status_label($order->payment_status) }} @if ($order->canBeCancelled())
@csrf
@endif {{ __('invoice.view') }} {{ __('invoice.download_pdf') }}
@foreach ($order->trackingSteps() as $step)
{{ status_label($step['key']) }}
@endforeach

{{ __('checkout.summary') }}

@foreach ($order->items as $item)
{{ $item->tr('name') }} {{ $item->qty }} × {{ money($item->unit_price) }} @if ($item->size || $item->color) · {{ collect([$item->size ? size_label($item->size) : null, $item->color ? color_label($item->color) : null])->filter()->implode(' · ') }} @endif @if ($item->option_text !== '') · {{ $item->option_text }} @endif
{{ money($item->line_total) }}
@endforeach
{{ __('cart.subtotal') }}{{ money($order->subtotal) }}
@if ($order->discount > 0)
{{ __('cart.discount') }}@if ($order->coupon_code) · {{ $order->coupon_code }}@endif−{{ money($order->discount) }}
@endif @if ($order->shipping_discount > 0)
{{ __('cart.coupon_free_shipping') }}{{ __('cart.free') }}
@endif
{{ __('cart.shipping') }}{{ $order->shipping === 0 ? __('cart.free') : money($order->shipping) }}
{{ __('account.total') }}{{ money($order->total) }}

{{ __('checkout.delivery_details') }}

{{ __('checkout.name') }}
{{ $order->customer_name }}
{{ __('checkout.phone') }}
{{ $order->customer_phone }}
{{ __('checkout.address') }}
{{ $order->address_line }}
{{ __('checkout.zone') }}
{{ $order->shipping_zone_name[app()->getLocale()] ?? collect($order->shipping_zone_name)->first() }}
{{ __('checkout.method') }}
{{ $order->payment_method_name }}
@if ($order->paymentMethod?->tr('instructions'))
{!! nl2br(e($order->paymentMethod->tr('instructions'))) !!}
@endif @if ($order->payment_status !== 'paid')
@csrf
@endif

{{ __('account.history') }}

@foreach ($order->history()->get() as $entry)
{{ status_label($entry->status) }} {{ $entry->created_at->translatedFormat('d M Y — H:i') }} @if ($entry->note)

{{ $entry->note }}

@endif
@endforeach
@if ($order->admin_note)
{{ __('account.store_note') }}

{{ $order->admin_note }}

@endif
@endsection