@extends('bo.layouts.layout') @section('title', sprintf('%s - %s %s', Str::ucfirst(__('crud.actions.edit')), Str::ucfirst(trans_choice('models.classes.orders', 1)), $order->reference)) @section('breadcrumb', request()->route()->getName()) @php view()->share('brParam', $order) @endphp @section('content')

{{ Str::ucfirst(trans_choice('models.classes.orders', 1)) }} - {{ $order->reference }}

@can('forward', $order) {{ Str::title($order->status->label()) }} @endcan @can('cancel', $order)
@csrf
@endcan
{{-- EMPLOYEE --}}

{{ str::title(trans_choice('models.classes.customers', 1)) }}

{{ __('Order data') }}

{{ Str::title($employee->firstname) }} {{ Str::title($employee->lastname) }}

{{ __('Facility') }} {{ $employee->facility }} {{ __('Service') }} {{ $employee->service }} {{ __('Site') }} {{ $employee->site }}

@if (!empty($crmCustomer))

{{ __('CRM data') }}

{{ $crmCustomer->email }} @if ($crmCustomer->phone) {{ $crmCustomer->phone }} @endif

{{ $crmCustomer->address }} @if ($crmCustomer->address2) {{ $crmCustomer->address2 }} @endif {{ $crmCustomer->postcode }} {{ $crmCustomer->city }}

@endif
{{-- ORDER --}}

{{ __('Order details') }}

  • {{ Str::ucfirst(__('validation.custom.attributes.reference')) }} {{ $order->reference }}
  • {{ Str::ucfirst(__('validation.custom.attributes.order_date')) }} {{ Date::forHumans($order->created_at) }}
  • {{ Str::ucfirst(__('validation.custom.attributes.order_status')) }} {{ Str::ucfirst($order->status->label()) }}
  • {{ Str::ucfirst(__('validation.custom.attributes.total')) }} @money($order->total)
{{-- SHOP --}}

{{ trans_choice('Pickup Locations', 1) }}

@can('update', $shop) @endcan

{{ $shop->name }}

@if ($shop->phone) {{ $shop->phone }} @endif

{{ $shop->address }} {{ $shop->postcode }} {{ $shop->city }} {{ $shop->latitude }} {{ $shop->longitude }}

@foreach ($order->lines as $line) @endforeach
{{ Str::ucfirst(__('validation.custom.attributes.reference')) }} {{ Str::ucfirst(trans_choice('models.classes.products', 1)) }} {{ Str::ucfirst(__('validation.attributes.quantity')) }} {{ __('Unit price (excluding tax)') }} {{ __('Discounted unit price (excluding tax)') }} {{ __('Total Price (excluding tax)') }} {{ __('VAT') }} {{ __('Total (including tax)') }}
{{ $line->product_inco_id }} {{ $line->product_name }} {{ $line->product_brand_label }} {{ $line->quantity }} @money($line->unit_price) @money($line->unitPriceDiscountedHt) @money($line->total_ht) @money($line->total_tax) @money($line->total_ttc)
@endsection