@extends('fo.layouts.layout', ['brParam' => $order]) @section('title', __('Order detail of :date', ['date' => $order->created_at->isoFormat('ddd DD/MM/YY')])) @section('description', __('Order detail of :date', ['date' => $order->created_at->isoFormat('ddd DD/MM/YY')])) @section('breadcrumb', request()->route()->getName()) @section('content')

{{ __('Order detail of :date', ['date' => $order->created_at->isoFormat('ddd DD/MM/YY')]) }}

{{ __('ref: :reference', ['reference' => $order->reference]) }}

{{-- DESKTOP --}}
@foreach ($order->lines as $index => $line) @if ($index === 0) @endif @endforeach
{{ __('Order status') }} {{ __('Order summary') }} {{ __('Price per kg (incl. tax)') }} {{ __('Unit price (incl. tax)') }}
{{ $order->status->label() }} {{ $line->quantity }} x {{ $line->product_name }} @if ($line->is_variable_weight && $line->price_kg_ttc) @money($line->price_kg_ttc) @endif @money($line->unit_price_ttc)
{{ __('Estimated total incl. tax') }} @money($order->total)
{{-- MOBILE --}}
{{ __('Order status') }} {{ $order->status->label() }}
{{ __('Order summary') }}
@foreach ($order->lines as $line)
{{ $line->quantity }} x {{ $line->product_name }}
@if ($line->is_variable_weight && $line->price_kg_ttc)
{{ __('Price per kg (incl. tax)') }} @money($line->price_kg_ttc)
@endif
{{ __('Unit price (incl. tax)') }} @money($line->unit_price_ttc)
@endforeach
{{ __('Estimated total incl. tax') }} @money($order->total)

{{-- DELIVERY --}}

{{ __('Collection details') }}

{{ __('To be collected on') }}

{{ $order->pickup_day ? $order->pickup_day->translatedFormat('l j F Y') : '-' }}

{{ __('at the following address') }}

{{ $order->delivery_address->name }}
{{ $order->delivery_address->address }}
{{ $order->delivery_address->postcode }} {{ $order->delivery_address->city }}
@endsection