@extends('admin.layout') @section('content')
{{ __('Back') }}
@php $position = $details->currency_text_position; $currency = $details->currency_text; @endphp
{{ __('Order No.') . ' ' . '#' . $details->order_number }}
{{ __('Order Date') . ' :' }}
{{ date_format($details->created_at, 'M d, Y') }}
{{ __('Cart Total') . ' :' }}
{{ $position == 'left' ? $currency . ' ' : '' }}{{ number_format($details->total, 2, '.', ',') }}{{ $position == 'right' ? ' ' . $currency : '' }}
{{ __('Discount') }} () :
{{ $position == 'left' ? $currency . ' ' : '' }}{{ $details->discount }}{{ $position == 'right' ? ' ' . $currency : '' }}
{{ __('Subtotal') . ' :' }}
@php $total = floatval($details->total); $discount = floatval($details->discount); $subtotal = $total - $discount; @endphp {{ $position == 'left' ? $currency . ' ' : '' }}{{ number_format($subtotal, 2, '.', ',') }}{{ $position == 'right' ? ' ' . $currency : '' }}
{{ __('Shipping Cost') }} () :
@if (is_null($details->shipping_cost)) - @else {{ $position == 'left' ? $currency . ' ' : '' }}{{ $details->shipping_cost }}{{ $position == 'right' ? ' ' . $currency : '' }} @endif
{{ __('Tax') }} {{ '(' . $tax->product_tax_amount . '%)' }} () :
{{ $position == 'left' ? $currency . ' ' : '' }}{{ $details->tax }}{{ $position == 'right' ? ' ' . $currency : '' }}
{{ __('Grand Total') . ' :' }}
{{ $position == 'left' ? $currency . ' ' : '' }}{{ number_format($details->grand_total, 2, '.', ',') }}{{ $position == 'right' ? ' ' . $currency : '' }}
{{ __('Shipping Type') . ' :' }}
@php $shippingMethod = $details->shippingMethod()->first(); @endphp
{{ is_null($shippingMethod) ? '-' : $shippingMethod->title }}
{{ __('Paid via') . ' :' }}
{{ $details->payment_method }}
{{ __('Payment Status') . ' :' }}
@if ($details->payment_status == 'completed') {{ __('Completed') }} @elseif ($details->payment_status == 'pending') {{ __('Pending') }} @else {{ __('Rejected') }} @endif
{{ __('Order Status') . ' :' }}
@if ($details->order_status == 'processing') {{ __('Processing') }} @elseif ($details->order_status == 'pending') {{ __('Pending') }} @elseif ($details->order_status == 'completed') {{ __('Completed') }} @else {{ __('Rejected') }} @endif
{{ __('Billing Details') }}
{{ __('Name') . ' :' }}
{{ $details->billing_name }}
{{ __('Email') . ' :' }}
{{ $details->billing_email }}
{{ __('Phone') . ' :' }}
{{ $details->billing_phone }}
{{ __('Address') . ' :' }}
{{ $details->billing_address }}
{{ __('City') . ' :' }}
{{ $details->billing_city }}
{{ __('State') . ' :' }}
{{ is_null($details->billing_state) ? '-' : $details->billing_state }}
{{ __('Country') . ' :' }}
{{ $details->billing_country }}
{{ __('Shipping Details') }}
{{ __('Name') . ' :' }}
{{ $details->shipping_name }}
{{ __('Email') . ' :' }}
{{ $details->shipping_email }}
{{ __('Phone') . ' :' }}
{{ $details->shipping_phone }}
{{ __('Address') . ' :' }}
{{ $details->shipping_address }}
{{ __('City') . ' :' }}
{{ $details->shipping_city }}
{{ __('State') . ' :' }}
{{ is_null($details->shipping_state) ? '-' : $details->shipping_state }}
{{ __('Country') . ' :' }}
{{ $details->shipping_country }}

{{ __('Ordered Products') }}

@foreach ($items as $item) @endforeach
# {{ __('Image') }} {{ __('Title') }} {{ __('Quantity') }} {{ __('Unit Price') }} {{ __('Total Price') }}
{{ $loop->iteration }} image {{ $item->title }} {{ $item->quantity }} {{ $position == 'left' ? $currency . ' ' : '' }}{{ $item->current_price }}{{ $position == 'right' ? ' ' . $currency : '' }} @php $eachItemTotal = floatval($item->current_price) * $item->quantity; @endphp {{ $position == 'left' ? $currency . ' ' : '' }}{{ number_format($eachItemTotal, 2, '.', ',') }}{{ $position == 'right' ? ' ' . $currency : '' }}
@endsection