@extends('layouts.frontlayout') @section('content')
Home
Order Detail
@if(isset($order) && $order) @foreach($order->orderItem as $k => $o) @php if(isset($o['addons']) && $o['addons']) { $addons = json_decode($o['addons'], true); } @endphp
...
{{isset($o->title) && $o->title ? $o->title : ''}}
{{isset($o->price) && $o->price ? Settings::get('currency_symbol').''.round($o->price,2) : ''}} @php $actualPrice = isset($addons) && isset($addons['price']) && isset($addons['price']['price_without_discount']) && $addons['price']['price_without_discount'] ? $addons['price']['price_without_discount'] : ''; $actualPrice = isset($o['quantity']) && $o['quantity'] > 1 ? $actualPrice/$o['quantity'] : $actualPrice; @endphp {{ isset($actualPrice) && $actualPrice ? Settings::get('currency_symbol').''.$actualPrice : '' }}
@if(isset($addons['color']) && $addons['color'])
Color :
{{ isset($addons['color']) && $addons['color'] ? $addons['color'] : '' }}
@endif @if(isset($addons['thread']) && $addons['thread'])
{{ isset($addons['thread']['thread_title']) && $addons['thread']['thread_title'] ? $addons['thread']['thread_title'] : '' }} :
@php $addons['thread']['thread_price'] = $addons['thread']['thread_price'] ? $addons['thread']['thread_price'] : 0; @endphp {{ $addons['thread']['thread_quantity'] > 0 ? " {$addons['thread']['thread_quantity']} * {$addons['thread']['thread_price']} = " : '' }} {{ isset($addons['thread']['thread_price']) && $addons['thread']['thread_price'] ? Settings::get('currency_symbol').''.($addons['thread']['thread_price']*$addons['thread']['thread_quantity']) : 0 }}
@endif @if(isset($addons['product_size']) && $addons['product_size'])
Size :
{{ isset($addons['product_size']) && $addons['product_size'] ? $addons['product_size'] : '' }}
@endif
@if(isset($o['quantity']) && $o['quantity'])
Qty: {{ isset($o['quantity']) && $o['quantity'] ? $o['quantity'] : '' }}
@endif
@endforeach @endif @if(isset($order) && isset($order->status) && $order->status > 0)
    @php $orderLogs = isset($order->orderLogs) && $order->orderLogs ? $order->orderLogs->toArray() : ''; @endphp
  • ...
    Shipping Soon
    @if(isset($orderLogs[0]) && isset($orderLogs[0]['status']) && $orderLogs[0]['status'])
    {{isset($orderLogs[0]) && isset($orderLogs[0]['status']) && $orderLogs[0]['status'] > 1 || $orderLogs[0]['status'] == 1 ? date('d F, Y', strtotime($orderLogs[0]['created'])) : ''}}
    @endif
  • ...
    Shipped
    @if(isset($orderLogs[1]) && isset($orderLogs[1]['status']) && $orderLogs[1]['status'])
    {{isset($orderLogs[1]) && isset($orderLogs[1]['status']) && $orderLogs[1]['status'] > 2 || $orderLogs[1]['status'] == 2 ? date('d F, Y', strtotime($orderLogs[1]['created'])) : ''}}
    @endif
  • ...
    Out of Delivery
    @if(isset($orderLogs[2]) && isset($orderLogs[2]['status']) && $orderLogs[2]['status'])
    {{isset($orderLogs[2]) && isset($orderLogs[2]['status']) && $orderLogs[2]['status'] > 3 || $orderLogs[2]['status'] == 3 ? date('d F, Y', strtotime($orderLogs[2]['created'])) : ''}}
    @endif
  • ...
    Delivered
    @if(isset($orderLogs[3]) && isset($orderLogs[3]['status']) && $orderLogs[3]['status'])
    {{isset($orderLogs[3]) && isset($orderLogs[3]['status']) && $orderLogs[3]['status'] > 4 || $orderLogs[3]['status'] == 4 ? date('d F, Y', strtotime($orderLogs[3]['created'])) : ''}}
    @endif
@endif
Order Info.
Order Id : {{ isset($order->id) && $order->id ? General::formatOrderNumber($order->id) : '' }}
Ordered on : {{isset($order->created) && $order->created ? date('d M, Y', strtotime($order->created)) : ''}}
Payment Mode : {{isset($order->payment_type) && $order->payment_type == 'online' ? 'Online' : 'Cash on Delivery'}}
Shipping Address : @if(isset($shippingAddress) && isset($shippingAddress['first_name']) && $shippingAddress['first_name']) {{isset($shippingAddress->address) && $shippingAddress->address ? $shippingAddress->address.', ' : ''}}{{isset($getCityName) && $getCityName ? $getCityName.', ' : ''}}{{isset($getStateName) && $getStateName ? $getStateName.', ' : ''}}{{isset($getCountryName) && $getCountryName ? $getCountryName.', ' : ''}}{{isset($shippingAddress->pincode) && $shippingAddress->pincode ? ', '.$shippingAddress->pincode.'. ' : ''}} @else {{isset($order->orderAddress->address) && $order->orderAddress->address ? $order->orderAddress->address.', ' : ''}}{{isset($order->orderAddress->city_name) && $order->orderAddress->city_name ? $order->orderAddress->city_name.', ' : ''}}{{isset($order->orderAddress->state_name) && $order->orderAddress->state_name ? $order->orderAddress->state_name.', ' : ''}}{{isset($order->orderAddress->country_name) && $order->orderAddress->country_name ? $order->orderAddress->country_name.', ' : ''}}{{isset($order->orderAddress->pincode) && $order->orderAddress->pincode ? $order->orderAddress->pincode.'. ' : ''}} @endif
Billing Address : {{isset($order->orderAddress->address) && $order->orderAddress->address ? $order->orderAddress->address.', ' : ''}}{{isset($order->orderAddress->city_name) && $order->orderAddress->city_name ? $order->orderAddress->city_name.', ' : ''}}{{isset($order->orderAddress->state_name) && $order->orderAddress->state_name ? $order->orderAddress->state_name.', ' : ''}}{{isset($order->orderAddress->country_name) && $order->orderAddress->country_name ? $order->orderAddress->country_name.', ' : ''}}{{isset($order->orderAddress->pincode) && $order->orderAddress->pincode ? $order->orderAddress->pincode.'. ' : ''}}
@if(isset($order->gift_message) && $order->gift_message)
Gift Message : {{ isset($order->gift_message) && $order->gift_message ? $order->gift_message : '' }}
@endif @if(isset($order->notes) && $order->notes)
Note : {{ isset($order->notes) && $order->notes ? $order->notes : '' }}
@endif
Bill Details
Item Total
{{isset($order->actual_price) && $order->actual_price ? Settings::get('currency_symbol').''.round($order->actual_price, 2) : ''}}
@if(isset($order->order_type) && $order->order_type == 'domestic') @if(isset($order->tax_percentage) && $order->tax_percentage > 0.00 && isset($order->tax) && $order->tax > 0.00)
GST Tax {{isset($order->tax_percentage) && $order->tax_percentage ? '( '.round($order->tax_percentage,2).'% )' : ''}}

i

{{isset($order->tax) && $order->tax ? ' + '.Settings::get('currency_symbol').''.round($order->tax, 2) : ''}}
@endif @if(isset($order->sgst_tax_percentage) && $order->sgst_tax_percentage > 0.00 && isset($order->sgst_tax) && $order->sgst_tax > 0.00)
SGST Tax {{isset($order->sgst_tax_percentage) && $order->sgst_tax_percentage ? '( '.round($order->sgst_tax_percentage,2).'% )' : ''}}

i

{{isset($order->sgst_tax) && $order->sgst_tax ? ' + '.Settings::get('currency_symbol').''.round($order->sgst_tax, 2) : ''}}
@endif @elseif(isset($order->order_type) && $order->order_type == 'international') @if(isset($order->igst_tax_percentage) && $order->igst_tax_percentage > 0.00 && isset($order->igst_tax) && $order->igst_tax > 0.00)
IGST Tax {{isset($order->igst_tax_percentage) && $order->igst_tax_percentage ? '( '.round($order->igst_tax_percentage,2).'% )' : ''}}

i

{{isset($order->igst_tax) && $order->igst_tax ? ' + '.Settings::get('currency_symbol').''.round($order->igst_tax, 2) : ''}}
@endif @endif @if(isset($order->gift_wrap) && $order->gift_wrap > 0.00)
Gift Wrap
{{isset($order->gift_wrap) && $order->gift_wrap ? ' + '.Settings::get('currency_symbol').' '.$order->gift_wrap : '00'}}
@endif @if(isset($order->gift_box) && $order->gift_box > 0.00)
Gift Box
{{isset($order->gift_box) && $order->gift_box ? ' + '.Settings::get('currency_symbol').' '.$order->gift_box : '00'}}
@endif @if(isset($order->delivery_charges) && $order->delivery_charges)
Delivery Fee

i

{{isset($order->delivery_charges) && $order->delivery_charges ? ' + '.Settings::get('currency_symbol').''.round($order->delivery_charges, 2) : ''}}
@endif @if(isset($order->discount) && $order->discount > 0.00 || $order->discount == null) @php $codeDiscount = isset($order->coupon_type) && $order->coupon_type == 'percentage' ? (($order->subtotal/100)*$order->coupon) : $order->coupon; @endphp @if(isset($codeDiscount) && $codeDiscount)
Coupon {{isset($order->coupon_type) && $order->coupon_type == 'percentage' ? '( -'.number_format($order->coupon,0).'% )' : ''}}
{{ ' - '.Settings::get('currency_symbol').' '.$codeDiscount }}
@endif
Discount
{{isset($order->discount) && $order->discount ? (isset($codeDiscount) && $codeDiscount ? ' - '.Settings::get('currency_symbol').' '.($order->discount - $codeDiscount) : ' - '.Settings::get('currency_symbol').' '.$order->discount) : '00'}}
@endif @if(isset($order->cod_charges) && $order->cod_charges > 0.00)
COD charges
{{isset($order->cod_charges) && $order->cod_charges ? ' + '.Settings::get('currency_symbol').' '.$order->cod_charges : '00'}}
@endif @if(isset($order->threads_amount) && $order->threads_amount > 0.00)
Thread Amount
{{isset($order->threads_amount) && $order->threads_amount ? ' + '.Settings::get('currency_symbol').' '.$order->threads_amount : '00'}}
@endif
Total Amount
{{isset($order->total) && $order->total ? Settings::get('currency_symbol').''.round($order->total, 2) : ''}}
@endsection