@can('update', $order)
@if (in_array($order->status->title,['pending','preparing']))
@if ($order->status->title === 'pending')
@lang('global.preparing')
@endif
@if ($order->status->title === 'preparing')
@lang('global.done')
@endif
@if (!$order->restaurant->infrasys_code)
@lang('global.rejected')
@endif
@endif
@if ($order->type === 'in_restaurant_dining' && ($order->status->title === 'pending' || ($order->status->title === 'preparing' && !$order->restaurant->infrasys_code)))
@lang('global.edit')
@endif
@if ($order->type === 'in_room_dining' && ($order->status->title === 'pending' || ($order->status->title === 'preparing' && !$order->restaurant->infrasys_code)))
@lang('global.edit')
@endif
@if ($order->status->title === 'pending' || ($order->status->title === 'preparing' && !$order->restaurant->infrasys_code))
@endif
@endcan
@lang("global.meal") |
@lang("global.quantity") |
@lang("global.price") |
@lang("global.notes") |
@lang("global.additional_options") |
@if ($order->status->title === 'pending' || ($order->status->title === 'preparing' && !$order->restaurant->infrasys_code))
@lang("global.actions") |
@endif
@foreach ($order->meals_pivot as $meal)
$meal->trashed()]) >
{{ $meal->title }} |
{{ $meal->quantity }} |
{{ $meal->price }} @lang('global.sar') |
{{ $meal->notes ?? __('global.not_exists') }} |
@if ($meal->details->options ?? null)
@foreach ($meal->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
|
@if ($order->status->title === 'pending' || ($order->status->title === 'preparing' && !$order->restaurant->infrasys_code))
@if (!$meal->trashed())
@endif
|
@endif
@endforeach
@if ($order->tip)
@lang('global.tip') |
- |
{{ $order->tip }} @lang('global.sar') |
- |
- |
@if ($order->status->title === 'pending' || ($order->status->title === 'preparing' && !$order->restaurant->infrasys_code))
- |
@endif
@endif
@if ($order->coupon_discount)
@lang('global.coupon_discount') |
- |
{{ $order->coupon_discount }} @lang('global.sar') |
- |
- |
@if ($order->status->title === 'pending' || ($order->status->title === 'preparing' && !$order->restaurant->infrasys_code))
- |
@endif
@endif
@if ($order->name)
@lang('validation.attributes.name')
{{ $order->name }}
@endif
@if ($order->table)
@lang("global.table")
{{ $order->table->title }}
@endif
@if ($order->room)
@lang("global.room")
{{ $order->room->title }}
@endif
@if ($order->phone)
@lang('validation.attributes.phone')
{{ $order->phone }}
@endif
@if ($order->email)
@lang('validation.attributes.email')
{{ $order->email }}
@endif
@lang('validation.attributes.total_price')
{{ $order->total_price }} @lang('global.sar')
@lang('global.paid_amount')
@if ($order->transaction && $order->transaction->body->status === 'paid')
{{ sprintf('%g',$order->transaction->amount) }}
@else
@if ($order->status->title === 'done')
{{ sprintf('%g',$order->total_price) }}
@else
0
@endif
@endif
@lang('global.sar')
@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')
@lang('messages.error.moyaser.' . rtrim($order->undone_notes,'.'))
@endif
@lang('global.payment_method')
@lang("global.payment_methods.$order->payment_method")
@if ($order->persons)
@lang('validation.attributes.persons')
{{ $order->persons }}
@endif
@lang('global.order_number')
{{ $order->number }}
@lang('validation.attributes.type')
@lang("global.orders_type.$order->type")
@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('pending')
@lang("global.pending")
@break
@case('preparing')
@lang("global.preparing")
@break
@case('done')
@lang("global.done")
@break
@case('cancelled')
@lang("global.cancelled")
@break
@case('rejected')
@lang("global.rejected")
@break
@endswitch
@if ($order->rating)
@lang('global.rating')
@for ($i = 0; $i < $order->rating->stars; $i++)
@endfor
{!! $order->rating->review !!}
@endif