@can('update', $order)
@endcan
| @lang('global.citem') |
@lang('global.section') |
@lang('global.quantity') |
@lang('global.price') |
@lang('global.notes') |
@lang('global.additional_options') |
@if (in_array($order->status->title, ['pending', 'preparing']))
@lang('global.actions') |
@endif
@foreach ($order->citems_pivot as $citem)
$citem->trashed()])>
| {{ $citem->title }} |
{{ $citem->section }} |
{{ $citem->quantity }} |
@if ($citem->price == 0)
---
@else
{{ $citem->price }}
@endif
|
{{ $citem->notes ?? __('global.not_exists') }} |
@if ($citem->details->options ?? null)
@foreach ($citem->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 (in_array($order->status->title, ['pending', 'preparing']))
@if (!$citem->trashed())
@endif
|
@endif
@endforeach
{{-- @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->is_delivery)
@if ($order->name)
@lang('validation.attributes.name')
{{ $order->name }}
@endif
@if ($order->phone)
@lang('validation.attributes.phone')
{{ $order->phone }}
@endif
@if ($order->email)
@lang('validation.attributes.email')
{{ $order->email }}
@endif
@endif
@lang('validation.attributes.total_price')
@if ($order->total_price == 0)
---
@else
{{ $order->total_price }}
@endif
@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->transaction && $order->transaction->status === 'paid')
{{ sprintf('%g', $order->transaction->amount) }}
@else
@if ($order->status->title === 'done')
{{ sprintf('%g', $order->total_price) }}
@else
0
@endif
@endif
--}}
@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.payment_method')
@lang("global.payment_methods.$order->payment_method")
@if ($order->persons)
@lang('validation.attributes.persons')
{{ $order->persons }}
@endif
@if (!charity_admin()->charity_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('pending')
@lang('global.pending')
@break
@case('preparing')
@lang('global.accepted')
@break
@case('delivering')
@lang('global.delivering')
@break
@case('done')
@lang('global.done')
@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
@if ($order->rating)
@lang('global.rating')
@for ($i = 0; $i < $order->rating->stars; $i++)
@endfor
{!! $order->rating->review !!}
@endif