@extends('admin.app') @section('content')
{{ Breadcrumbs::render('dine-in-orders/view') }}

{{ __('order.order') }}: #{{ $order->order_code }}

{{ trans('payment_status.' . $order->payment_status) ?? null }} {{ trans('order_status.' . $order->status) }}
  • {{ \Carbon\Carbon::parse($order->created_at)->format('d M Y, h:i A') }}
  • {{ __('frontend.restaurant') }} : {{ @$order->restaurant->name }}
  • {{ __('levels.order_type') }} : {{ $order->getOrderType }}
  • {{ __('levels.table') }} : {{ $tableInfo->table->name ?? null }}
  • {{ __('levels.table_capacity') }} : {{ $tableInfo->table->capacity ?? null }}
  • {{ __('order.payment_method') }} : {{ trans('payment_method.' . $order->payment_method) }}
@if ($order->attachment) {{ __('levels.download') }} @endif

{{ __('order.order_details') }}

@foreach ($items as $itemKey => $item)

{{ $item->quantity }}

thumbnail
{{ $item->menuItem->name }} @if (!blank($item->variation))

{{ __('order.variation') }} : {{ json_decode($item->variation, true)['name'] }}

@endif

{{ currencyFormat($item->unit_price) }}

@if (!empty(json_decode($item->options)) || !blank($item->instructions))
    @if (!empty(json_decode($item->options)))
  • {{ __('order.options') }}:

      @foreach (json_decode($item->options, true) as $option)
    • {{ $option['name'] }}{{ $loop->last ? '' : ' ,' }}
    • @endforeach
  • @endif @if (!blank($item->instructions))
  • {{ __('levels.instructions') }} :

    {{ $item->instructions }}

  • @endif
@endif
@endforeach
    @if ($order->discount && $order->discount->amount > 0 && Schema::hasColumn('coupons', 'slug'))
  • {{ __('levels.discount') }} {{ currencyFormat($order->discount->amount) }}
  • @endif
  • {{ __('levels.sub_total') }} {{ currencyFormat($order->sub_total) }}
  • @if ($order->order_type !== App\Enums\OrderTypeStatus::PICKUP)
  • {{ __('levels.delivery_charge') }} {{ currencyFormat($order->delivery_charge) }}
  • @endif

{{ __('levels.total') }}

{{ currencyFormat($order->total) }}

{{ __('order.waiter_information') }}

avatar

{{ $waiter_details ?? null }}

  • {{$waiter->user->email }}
  • {{ $waiter->user->phone ?? null }}
@endsection @push('js') @endpush