@can('update', $order)
@if ($order->status->title === 'confirmed' ) @lang('global.cancel') @endif
@endcan
@if ($order->coupon_discount) @endif
@lang("global.service") @lang("global.price") @lang("global.notes") @lang("global.additional_options")
{{ $order->sitem_title }} @if ($order->price == 0) --- @else {{ $order->price }} @endif {{ $order->notes ?? __('global.not_exists') }} @if ($order->details->options ?? null) @foreach ($order->details->options as $option)
{{ $option->title->$locale }}
    @foreach ($option->choices as $choice)
  • {{ $choice->title->$locale }} @if ($choice->quantity) ({{ $choice->quantity }}) @endif
  • @endforeach
@endforeach @else @lang('global.not_exists') @endif
@lang('global.coupon_discount') {{ $order->coupon_discount }} - -
@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')

{{ $order->appointment_time->format('Y-m-d h:i a') }}

@if ($order->name)

@lang('validation.attributes.name')

{{ $order->name }}

@endif @if ($order->phone)

@lang('validation.attributes.phone')

{{ $order->phone }}

@endif

@lang('validation.attributes.total_price')

@if ($order->price == 0) --- @else {{ $order->price }} @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')

@lang('messages.error.moyaser.' . rtrim($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('validation.attributes.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") @break @endswitch