@can('update', $order)
@if ($order->status->title === 'confirmed') @lang('global.cancel') @endif @can('view', $order) @lang('global.reservation_bill') @endcan
@endcan
@foreach ($order->details->options ?? [] as $option) @foreach ($option->choices as $choice) @endforeach @endforeach
@lang('global.service') @lang('global.section') @lang('global.quantity') @lang('global.unit_price') @lang('global.total_price') @lang('global.notes')
{{ $order->sitem_title }} {{ $order->sitem_section }} {{ $order->sitem_quantity }} {{ $order->sitem_price }} {{ $order->sitem_price * $order->sitem_quantity }} {{ $order->notes ?? __('global.not_exists') }}
{{ $choice->title->$locale }} {{ $option->title->$locale }} {{ $choice->quantity ?? 1 }} {{ $choice->price }} {{ $choice->price * ($choice->quantity ?? 1) }} @lang('global.choice_total_times_product_quantity') : {{ $choice->price * ($choice->quantity ?? 1) * $order->sitem_quantity }}
{{-- @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 --}}

@lang('global.reservation_date')

@switch($order->type) @case('time') {{ $order->appointment_time->format('Y-m-d h:i a') }} @break @case('day') {{ $order->start_date }} -- {{ $order->end_date }} @break @case('ticket') {{ $order->start_date }} @break @endswitch

@if (!$order->is_delivery) @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 @endif

@lang('validation.attributes.total_price')

{{ $order->total_price - $order->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 {{--

@lang('global.paid_amount')

--}} @if ($order->notes)

@lang('global.notes')

{!! $order->notes !!}

@endif @if ($order->rejection_notes)

@lang('validation.attributes.rejection_notes')

{!! $order->rejection_notes !!}

@endif @if ($order->undone_notes)

@lang('validation.attributes.undone_notes')

{{ $order->undone_notes }}

@endif

@lang('global.payment_method')

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

@if (!spa_admin()->spa_branch_id)

@lang('validation.attributes.branch')

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

@endif

@lang('global.order_number')

{{ $order->number }}

@lang('validation.attributes.created_at')

{{ $order->created_at }}

@lang('global.order_status')

@switch($order->status->title) @case('initiated') @lang('global.initiated') @break @case('undone') @lang('global.undone') @break @case('confirmed') @lang('global.confirmed') @break @case('done') @lang('global.done') @break @case('rejected') @lang('global.rejected') @if (in_array($order->transaction?->status, ['voided', 'refunded'])) - @lang('global.refunded') @endif @break @endswitch