@extends('layouts.master') @section('title', 'Show Order | Alboosh - Timeless authenticity, born of the desert') @section('title-topbar', __('basic.show order')) @section('css') {{-- leaflet --}} @endsection @section('fixedcontent') @if (Session::has('success'))

Sent Successfully

{{ Session::get('success') }}

@endif @endsection @section('content')
{{ __('basic.dashboard') }} | {{ __('basic.orders') }} | {{ __('basic.new order') }}
{{ __('basic.print') }} @if($order->invoice_id) {{ __('basic.invoice') }} @endif @if(count($order->not_shipped) > 0) {{ __('basic.shipment collection') }} @endif {{ __('basic.edit') }}
{{ __('basic.order no') }}: {{ $order->code }}
{{ __('basic.not shipped items') }}: {{ count($order->not_shipped) }} {{ __('basic.items') }}
{{ __('basic.created') }}: {{ $order->created_at }}
@foreach ($order->order_items as $item)
@if (!$loop->first)
@endif
@if($item->order_shipment_id) {{ __('basic.shipped') }} @else {{ __('basic.not shipped') }} @endif

{{ $item->product->name }}

{{ $item->main_price?->name ?? "n/a" }}

{{ $item->main_price?->sell ?? "n/a" }}


@if($item->additions) @foreach ($item->additions as $item_addit)

{{ $item_addit->product_price?->name ?? "n/a" }}

{{ $item_addit->product_price?->sell ?? "n/a" }}

@endforeach @endif
{{ $item->qty }}

{{ $item->product?->unit?->name ?? "n/a" }}

{{ $item->final_price }}

{{ $currency }}

@endforeach {{-- products --}}

{{ __('basic.new product') }}
{{------------ shipments ---------------}} @if($order->shipments)
{{ __('basic.all shipments') }}
@foreach ($order->shipments as $item_ship)
{{ __('basic.waybill') }} @if($item_ship->delivery_last_latitude) {{ __('basic.track') }} @endif {{ __('basic.edit') }} {{ __('basic.delete') }}
{{ __('basic.shipment no') }}: {{ $item_ship->code }}
{{ __('basic.delivery') }}: @if($item_ship->delivery) {{ $item_ship->delivery->full_name }} @endif
{{ __('basic.shipped from') }}: @if($item_ship->shipped_from > 0) {{ $item_ship->shipped_from_status }} @endif
{{ __('basic.created') }}: {{ $item_ship->created_at }}
@foreach ($item_ship->order_items as $item_si)

{{ $item_si->product->name }}

{{ $item_si->main_price->name }}

{{ $item_si->main_price->sell }}


@if($item_si->additions) @foreach ($item_si->additions as $item_addit)

{{ $item_addit->product_price->name }}

{{ $item_addit->product_price->sell }}

@endforeach @endif
{{ $item_si->qty }}

{{ $item_si->product->unit->name }}

{{ $item_si->final_price }}

{{ $currency }}

@endforeach
{{ __('basic.shipment details') }}
{{ __('basic.subtotal') }}
{{ $currency }}
{{ __('basic.delivery') }}
{{ $currency }}
{{ __('basic.discount') }}
{{ $currency }}
{{ __('basic.final price') }}
{{ $currency }}
@endforeach
@endif {{-- client, address, order total --}}
{{ __('basic.client details') }}
@error('traveler_id') {{ $message }} @enderror
{{ __('basic.delivery address') }}:
{{ __('basic.street name') }}: {{ $order->delivery_address?->street_name }} , {{ __('basic.bulding no') }}: {{ $order->delivery_address?->bulding_number }}, {{ __('basic.floor') }}: {{ $order->delivery_address?->floor }}, {{ __('basic.apt no') }}: {{ $order->delivery_address?->apartment_number }}
{{ $order->delivery_address?->extra_info }}
{{ $order->delivery_address?->phone_number }}
@error('note') {{ $message }} @enderror
{{ __('basic.order details') }}
{{ __('basic.subtotal') }}
{{ $currency }}
{{ __('basic.delivery') }}
{{ $currency }}
{{ __('basic.discount') }}
{{ $currency }}
{{ __('basic.final price') }}
{{ $currency }}
{{--
--}}
@endsection @section('js') {{-- products come from --}} {{-- print jquery --}} {{-- leaflet --}} @endsection