@extends('frontend.layouts.app') @section('main-content')
@include('frontend.account.partials._sidebar')

{{ __('frontend.tracking') }}

    @if ($order->status == \App\Enums\OrderStatus::CANCEL)
  • {{ __('frontend.order_cancel') }}
  • @else
  • {{ __('frontend.order_pending') }}
  • @endif @if ($order->status == \App\Enums\OrderStatus::REJECT)
  • {{ __('frontend.order_reject') }}
  • @else
  • {{ __('frontend.order_accept') }}
  • @endif
  • {{ __('frontend.order_process') }}
  • {{ __('frontend.on_the_way') }}
  • {{ __('frontend.order_completed') }}
  • {{ __('frontend.order') }}:#{{ $order->order_code }}
  • {{ __('frontend.order_date') }} :{{ $order->created_at->format('d M Y, h:i A') }}

{{ __('frontend.billing_to') }}

  • {{ __('frontend.name') }} :

    {{ $order->user->name ?? '' }}

  • {{ __('frontend.phone') }} :

    {{ $order->mobile ?? '' }}

  • {{ __('frontend.address') }} :

    {{ orderAddress($order->address) }}

{{ __('frontend.delivery_status') }}

  • {{ __('frontend.order_status') }} : {{ trans('order_status.' . $order->status) }}
  • {{ __('levels.order_type') }} :

    {{ $order->getOrderType }}

  • {{ __('frontend.payment_status') }} : @if ($order->payment_status == \App\Enums\PaymentStatus::PAID) {{ trans('payment_status.' . $order->payment_status) ?? null }} @else {{ trans('payment_status.' . $order->payment_status) ?? null }} @endif
  • {{ __('frontend.payment_method') }} :

    {{ trans('payment_method.' . $order->payment_method) ?? null }}

@if (session('status')) @endif @foreach ($items as $itemKey => $item) @endforeach
{{ __('frontend.item') }} {{ __('frontend.price') }} {{ __('frontend.quantity') }} {{ __('frontend.totals') }}
{{ $item->menuItem->name }} {{ $item->variation ? ' ( ' . $item->variation['name'] . ' )' : '' }}
@if ($item->options)
@foreach (json_decode($item->options, true) as $option) {{ $option['name'] }} @endforeach
@endif
{{ currencyFormat($item->unit_price) }}
{{ $item->quantity }} {{ currencyFormat($item->item_total) }}
    @if ($order->discount && $order->discount->amount > 0 && Schema::hasColumn('coupons', 'slug'))
  • {{ __('frontend.discount') }} {{ currencyFormat($order->discount->amount) }}
  • @endif
  • {{ __('frontend.subtotal') }} {{ currencyFormat($order->sub_total) }}
  • {{ __('frontend.delivery_charge') }} {{ currencyFormat($order->delivery_charge) }}
  • {{ __('frontend.total') }} {{ currencyFormat($order->total) }}

{{ setting('site_name') ? setting('site_name') : '' }} {{ __('frontend.restaurant') }}

{{ __('frontend.food_ordering_delivery_system') }}

{{ __('frontend.email') }}: {{ setting('site_email') }}

{{ __('frontend.tel') }}: {{ setting('site_phone_number') }}

  • #{{ $order->order_code }}
  • {{ $order->created_at->format('d M Y') }} {{ $order->created_at->format('h:i A') }}
  • {{ __('frontend.quantity') }}
  • {{ __('frontend.item') }}
  • {{ __('frontend.totals') }}
@foreach ($items as $itemKey => $item)
  • {{ $item->quantity }}
  • {{ $item->menuItem->name }} {{ $item->variation ? ' ( ' . $item->variation['name'] . ' )' : '' }} @if ($item->options)

    @foreach (json_decode($item->options, true) as $option) {{ $option['name'] }} @endforeach

    @endif
  • {{ currencyFormat($item->item_total) }}
@endforeach
  • {{ __('frontend.subtotal') }}: {{ currencyFormat($order->sub_total) }}
  • @if ($order->discount && $order->discount->amount > 0 && Schema::hasColumn('coupons', 'slug'))
  • {{ __('frontend.discount') }}: {{ currencyFormat($order->discount->amount) }}
  • @endif
  • {{ __('frontend.delivery_charge') }}: {{ currencyFormat($order->delivery_charge) }}
  • {{ __('frontend.total') }}: {{ currencyFormat($order->total) }}
  • {{ __('levels.order_type') }}: {{ $order->getOrderType }}
  • {{ __('frontend.payment_status') }}: {{ trans('payment_status.' . $order->payment_status) ?? null }}
  • {{ __('levels.customer') }}: {{ $order->user->name ?? '' }}
  • {{ __('frontend.phone') }}: {{ $order->mobile ?? '' }}
  • {{ __('frontend.address') }}: {{ orderAddress($order->address) }}

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

{{ setting('site_name') ? setting('site_name') : '' }}

{{ __('frontend.restaurant') }} {{ __('frontend.food_ordering_delivery_system') }}

@if ($order->status == \App\Enums\OrderStatus::PENDING) @endif @if ($order->attachment) @endif @if (!$order->attachment) @endif
@endsection