@lang('global.order_details')

@lang('global.order_bill') @if ($order->store_bill) @lang('global.store_bill') @lang('global.store_bill_actual_amount') @endif @if ($order->is_delivery && !$order->is_retrieved) @lang('global.retrieved') @endif @if (in_array($order->store_status->title, ['pending', 'preparing'])) @lang('global.rejected') @endif @if ($order->store_bill) @endif
@if ($order->is_delivery) @endif @foreach ($order->meals_pivot as $meal) @if ($order->is_delivery) @endif @foreach ($meal->details->options ?? [] as $option) @foreach ($option->choices as $choice) @if ($order->is_delivery) @endif @endforeach @endforeach @endforeach
@lang('global.meal') @lang('global.section') @lang('global.quantity') @lang('global.unit_price') @lang('global.total_price') @lang('global.unit_delivery_markup') @lang('global.total_delivery_markup') @lang('global.total_amount')@lang('global.notes')
{{ $meal->title }} {{ $meal->section }} {{ $meal->quantity }} {{ $meal->price - $meal->delivery_markup }} {{ ($meal->price - $meal->delivery_markup) * $meal->quantity }} {{ $meal->delivery_markup }} {{ $meal->delivery_markup * $meal->quantity }} {{ $meal->price * $meal->quantity }} {{ $meal->notes ?? __('global.not_exists') }}
{{ $choice->title->$locale }} {{ $option->title->$locale }} {{ $choice->quantity ?? 1 }} {{ $choice->price - $choice->delivery_markup }} {{ ($choice->price - $choice->delivery_markup) * ($choice->quantity ?? 1) }} {{ $choice->delivery_markup }} {{ $choice->delivery_markup * ($choice->quantity ?? 1) }} {{ $choice->price * ($choice->quantity ?? 1) }} @lang('global.choice_total_times_product_quantity') : {{ $choice->price * ($choice->quantity ?? 1) * $meal->quantity }}

@lang('global.restaurant')

{{ $order->branch->restaurant->title }}

@lang('validation.attributes.created_at')

{{ $order->created_at }}

@lang('global.order_number')

{{ $order->number }}

@if ($order->notes)

@lang('global.notes')

{!! $order->notes !!}

@endif @if ($order->rejection_notes)

@lang('validation.attributes.rejection_notes')

{!! $order->rejection_notes !!}

@endif @if ($order->cancellation_notes)

@lang('validation.attributes.cancellation_notes')

{!! $order->cancellation_notes !!}

@endif @if ($order->undone_notes)

@lang('validation.attributes.undone_notes')

{{ $order->undone_notes }}

@endif

@lang('global.order_status')

@switch($order->is_delivery ? $order->delivery_status->title : $order->store_status->title) @case('initiated') @lang('global.initiated') @break @case('undone') @lang('global.undone') @break @case('pending') @lang('global.pending') @break @case('preparing') @lang('global.preparing') @break @case('ready') @lang('global.ready') @break @case('delivering') @lang('global.delivering') @break @case('done') @lang('global.done') @if ($order->is_retrieved) - @lang('global.retrieved_1') @endif @break @case('cancelled') @lang('global.cancelled') @break @case('rejected') @lang('global.rejected') @if (in_array($order->transaction?->status, ['voided', 'refunded'])) - @lang('global.refunded') @endif @break @endswitch

@lang('global.payment_method')

@lang("global.payment_methods.$order->payment_method")

@if ($order->persons)

@lang('validation.attributes.persons')

{{ $order->persons }}

@endif

@lang('global.order_type')

@lang("global.orders_type.$order->type")

@if ($order->rating)

@lang('global.rating')

@for ($i = 0; $i < $order->rating->stars; $i++) @endfor {!! $order->rating->review !!}

@endif {{--

@lang('global.amount_collected')

@if (is_null($order->delivery_fees_collected)) @lang('global.unknown') @elseif ($order->delivery_fees_collected) @lang('global.yes') @else @lang('global.no') @endif

--}}

@lang('global.financial_details')

@lang('global.total_products_price')

{{ $order->financial->products_price }}

@lang('global.delivery_markup')

{{ $order->financial->delivery_markup }}

@if ($order->financial->tip)

@lang('global.tip')

{{ $order->financial->tip }}

@endif @if ($order->financial->delivery_fees)

@lang('validation.attributes.delivery_fees')

{{ $order->financial->delivery_fees }}

@endif

@lang('global.paid_amount')

{{ $order->financial->products_price + $order->financial->delivery_markup + $order->financial->tip + $order->financial->delivery_fees }}

@if ($order->financial->store_coupon_discount)

@lang('global.store_coupon_discount')

{{ $order->financial->store_coupon_discount }}

@endif @if ($order->financial->platform_coupon_discount)

@lang('global.platform_coupon_discount')

{{ $order->financial->platform_coupon_discount }}

@endif @if ($order->transaction_id)

@lang('global.transaction_id')

{{ $order->transaction->provider_id }}

@endif

@lang('global.customer_details')

@if ($order->name)

@lang('validation.attributes.name')

{{ $order->name }}

@endif @if ($order->first_name)

@lang('validation.attributes.first_name')

{{ $order->first_name }}

@endif @if ($order->last_name)

@lang('validation.attributes.last_name')

{{ $order->last_name }}

@endif @if ($order->phone)

@lang('validation.attributes.phone')

{{ $order->phone }}

@endif @if ($order->email)

@lang('validation.attributes.email')

{{ $order->email }}

@endif @if ($order->birthdate)

@lang('validation.attributes.birthdate')

{{ $order->birthdate }}

@endif @if ($order->passport_number)

@lang('validation.attributes.passport_number')

{{ $order->passport_number }}

@endif @if ($order->passport_country)

@lang('validation.attributes.passport_country')

@lang("countries.{$order->passport_country}")

@endif @if ($order->residence_country)

@lang('validation.attributes.residence_country')

@lang("countries.{$order->residence_country}")

@endif @if ($order->table)

@lang('global.table')

{{ $order->table->title }}

@endif @if ($order->metadata->hotel_branch_id ?? false)

@lang('global.hotel')

{{ $order->metadata->{'hotel_branch_' . app()->getLocale()} }}

@endif @if ($order->metadata->room_id ?? false)

@lang('global.room')

{{ $order->metadata->{'room_' . app()->getLocale()} }}

@endif @if ($order->captain)

@lang('global.captain_details')

@lang('global.captain_name')

{{ $order->captain->name }}

@lang('validation.attributes.phone')

{{ $order->captain->phone }}

@endif
@lang('global.order_log')
@foreach ($order->is_delivery ? $order->delivery_statuses : $order->store_statuses as $status) @endforeach
@lang('validation.attributes.description') @lang('validation.attributes.created_at')
@lang("global.$status->title") @if ($status->creator) - {{ $status->creator instanceof \App\Models\Admin || $status->creator instanceof \App\Models\Captain ? 'Pro Solutions' : __('global.digital-center') }} @endif {{ $status->created_at }}