@extends('admin.layouts.master') @section('main-content')

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

{{ Breadcrumbs::render('orders/edit') }}

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

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

{{ __('order.billed_to') }}:
{{ $order->user->name ?? null }}
{{ __('Mobile : '). $order->user->phone ?? null }}
{{ orderAddress($order->address) }}
{{ __('order.order_date') }}:
{{ \Carbon\Carbon::parse($order->created_at)->format('d M Y, h:i A') }}

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

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

@foreach($items as $itemKey => $item) @endforeach
{{ __('#') }} {{ __('Item') }} {{ __('levels.price') }} {{ __('levels.quantity') }} {{ __('levels.total') }}
{{ $itemKey+1 }} {{ $item->menuItem->name ?? null }} @if(!blank($item->variation)) {{ ' ( '.json_decode($item->variation,true)['name'].' )'}} @endif @if(!blank($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($showStatus && !blank($orderStatusArray))
{{ __('levels.change_your_status') }}
@method('PUT') @csrf
* @error('status')
{{ $message }}
@enderror
@endif @if($showReceive)
{{ __('order.change_product_receive') }}
@csrf
* @error('product_received')
{{ $message }}
@enderror
@endif
{{ __('levels.sub_total') }}
{{ currencyFormat($order->sub_total) }}
{{ __('levels.delivery_charge') }}
{{ currencyFormat($order->delivery_charge) }}

{{ __('levels.total') }}
{{ currencyFormat($order->total) }}
@endsection