@extends($activeTemplate . 'layouts.user') @section('panel')
@lang('Order Items')
@lang('Order ID'): {{ $order->order_number }} @php echo $order->paymentBadge() @endphp @php echo $order->statusBadge() @endphp
{{ showDateTime($order->created_at, 'F d, Y') }} @lang('at') {{ showDateTime($order->created_at, 'h:i A') }}
@php $subtotal = $order->orderDetail->sum(function ($detail) { return $detail->price * $detail->quantity; }); @endphp @foreach ($order->orderDetail as $data) @php $mainImage = $data->productVariant && @$data->productVariant->main_image_id ? $data->productVariant->mainImage(true) : @$data->product->mainImage(true); @endphp @endforeach
@lang('Product') @lang('Price') @lang('Quantity') @lang('Total Price')
product-image
{{ @$data->product->name }} @if ($data->productVariant) - {{ @$data->productVariant->name }} @endif @if($data->product->is_downloadable && $order->status == Status::ORDER_DELIVERED && $order->payment_status == Status::PAYMENT_SUCCESS) @lang('Download') @endif
{{ showAmount($data->price) }} {{ $data->quantity }} {{ showAmount($data->price * $data->quantity) }}
@lang('Order Summary')
  • @lang('Subtotal') {{ showAmount($subtotal, 2) }}
  • @if ($order->appliedCoupon)
  • () @lang('Coupon') ({{ $order->appliedCoupon->coupon->coupon_code }}) {{ showAmount($order->appliedCoupon->amount, 2) }}
  • @endif
  • () @lang('Shipping') {{ @gs('cur_sym') . getAmount($order->shipping_charge, 2) }}
  • @lang('Total') {{ showAmount($order->total_amount) }}
@if (isset($order->deposit) && $order->deposit->status != 0)
@lang('Payment Details')
  • @lang('Payment Method') @if ($order->deposit->method_code == 0) @lang('Cash On Delivery') @else {{ __($order->deposit->gateway->name) }} @endif
  • @lang('Total Bill') {{ showAmount($order->total_amount) }}
  • @if (@$order->deposit->charge > 0)
  • @lang('Gateway Charge') {{ gs('cur_sym') . getAmount(@$order->deposit->charge) }}
  • @endif
  • @lang('Total Payable Amount') {{ gs('cur_sym') . getAmount($order->deposit->amount + @$order->deposit->charge) }}
@endif
@php $shippingAddress = $order->shipping_address ? json_decode($order->shipping_address) : null; @endphp
@if ($shippingAddress)
@lang('Shipping Details')
  • @lang('Name') : {{ $order->user->firstname }} {{ $order->user->lastname }}
  • @lang('Address') : {{ $shippingAddress->address }}
  • @lang('State') : {{ $shippingAddress->state }}
  • @lang('City') : {{ $shippingAddress->city }}
  • @lang('Zip') : {{ $shippingAddress->zip }}
  • @lang('Country') : {{ $shippingAddress->country }}
@endif
@endsection