@extends('admin.layouts.index', ['header' => true, 'nav' => true, 'demo' => true]) @section('content')
@if (Session::has('success')) @endif {{-- Failed --}} @if (Session::has('failed')) @endif {{-- Order Details --}}

{{ __('Order & Delivery Details') }}

{{ __('Payment ID') }}
{{ $order->nfc_card_order_transaction_id ?? '-' }}
{{ __('Order ID') }}
{{ $order->nfc_card_order_id ?? '-' }}
{{ __('Order Date') }}
{{ formatDateForUser($order->created_at) }}
{{ __('Delivery Status') }}
@if ($order->order_status == 'pending') {{ __('Pending') }} @elseif($order->order_status == 'processing') {{ __('Processing') }} @elseif($order->order_status == 'out for delivery') {{ __('Out for delivery') }} @elseif($order->order_status == 'delivered') {{ __('Delivered') }} @elseif($order->order_status == 'cancelled') {{ __('Cancelled') }} @elseif($order->order_status == 'hold') {{ __('Hold') }} @elseif($order->order_status == 'shipped') {{ __('Shipped') }} @elseif($order->order_status == 'printing process begun') {{ __('Printing Process Begun') }} @endif
{{ __('Payment Mode') }}
{{ $order->payment_method ?? '-' }}
{{ __('Delivery Partner') }}
{{ json_decode($order->order_details)->courier_partner ?? '-' }}
{{ __('Tracking Number') }}
{{ json_decode($order->order_details)->tracking_number ?? '-' }}
{{ __('Delivery Note') }}
{{ json_decode($order->order_details)->delivery_message ?? '-' }}
{{ __('Billing Address') }}
@php $address = $order->delivery_address ? json_decode($order->delivery_address) : new stdClass(); $billingName = $address->billing_name ?? ''; $billingAddress = $address->billing_address ?? ''; $billingCity = $address->billing_city ?? ''; $billingPostcode = $address->billing_zipcode ?? ''; $billingCountry = $address->billing_country ?? ''; $billingPhone = $address->billing_phone ?? ''; $billingEmail = $address->billing_email ?? ''; $vatNumber = $address->vat_number ?? ''; $type = $address->type ?? ''; @endphp {{ $billingName }}
{{ $billingAddress }}, {{ $billingCity }}, {{ $billingPostcode }}, {{ $billingCountry }}
{{ __('Phone Number') }} : {{ $billingPhone }}
{{ __('Email') }} : {{ $billingEmail }}
{{ __('VAT Number') }} : {{ $vatNumber }}
{{ __('Shipping Address') }}
@php $address = $order->delivery_address ? json_decode($order->delivery_address) : new stdClass(); $billingName = $address->billing_name ?? ''; $billingAddress = $address->billing_address ?? ''; $billingCity = $address->billing_city ?? ''; $billingPostcode = $address->billing_zipcode ?? ''; $billingCountry = $address->billing_country ?? ''; $billingPhone = $address->billing_phone ?? ''; $billingEmail = $address->billing_email ?? ''; $vatNumber = $address->vat_number ?? ''; $type = $address->type ?? ''; @endphp {{ $billingName }}
{{ $billingAddress }}, {{ $billingCity }}, {{ $billingPostcode }}, {{ $billingCountry }}
{{ __('Phone Number') }} : {{ $billingPhone }}
{{ __('Email') }} : {{ $billingEmail }}
{{ __('VAT Number') }} : {{ $vatNumber }}
{{ __('Delivery Note') }}
{{ $order->delivery_note ?? '-' }}
{{ __('Total') }}
{{ formatCurrency(json_decode($order->order_details)->invoice_amount) }}
{{-- Order Items --}}

{{ __('Order Items') }}

@if (json_decode($order->order_details)->tax_value != null) @endif @if (json_decode($order->order_details)->discounted_price != null) @endif
{{ __('Item') }} {{ __('Price') }} {{ __('Quantity') }} {{ __('Total') }}

{{ json_decode($order->order_details)->order_item }}

{!! nl2br(e(wordwrap(json_decode($order->order_details)->order_description, 100, "\n"))) !!}
{{ formatCurrency(json_decode($order->order_details)->price) }} {{ json_decode($order->order_details)->order_quantity }} {{ formatCurrency(json_decode($order->order_details)->price) }}
{{ __('Subtotal') }} {{ formatCurrency(json_decode($order->order_details)->subtotal) }}
{{ __('Tax') }}
{{ json_decode($order->order_details)->tax_name }} : {{ json_decode($order->order_details)->tax_value }}%
{{ formatCurrency(json_decode($order->order_details)->tax_amount) }}
{{ __('Before Applied Coupon') }} {{ formatCurrency(json_decode($order->order_details)->subtotal + json_decode($order->order_details)->tax_amount) }}
{{ __('Coupon') }}
{{ __('Applied Coupon') }} : {{ json_decode($order->order_details)->applied_coupon }}
-{{ formatCurrency(json_decode($order->order_details)->discounted_price) }}
{{ __('Total') }} {{ formatCurrency(json_decode($order->order_details)->invoice_amount) }}
{{-- Footer --}} @include('admin.includes.footer')
@endsection