@extends('backend.layouts.app') @section('title') {{ __($module_title) }} @endsection @section('content')
@php $expected_delivery_date = \Carbon\Carbon::parse($orderItem->expected_delivery_date)->format('d-m-Y'); @endphp @if($checkVendor)
Expected Delivery Date:
@if($orderItem->payment_status !== 'paid')
@endif @if($orderItem->delivery_status !== 'delivered' && $orderItem->delivery_status !== 'cancelled')
@endif @endif
{{-- logo --}}
Customer Info

Name: {{ optional(optional($orderItem->order)->user)->full_name }}

Email: {{ optional(optional($orderItem->order)->user)->email }}

Phone: {{ optional(optional($orderItem->order)->user)->mobile }}

{{__('product.invoice')}} {{ setting('inv_prefix') }}{{ optional(optional($orderItem->order)->orderGroup)->order_code }}
{{__('product.order_date')}}: {{ date('d M, Y', strtotime($orderItem->created_at)) }} @if ($orderItem->order->location_id != null)
{{ optional(optional($orderItem->order)->location)->name }}
@endif
{{--
Customer Info

Name: {{ optional(optional($orderItem->order)->user)->full_name }}

Email: {{ optional(optional($orderItem->order)->user)->email }}

Phone: {{ optional(optional($orderItem->order)->user)->mobile }}

--}}
{{__('product.payment_method')}}
{{ ucwords(str_replace('_', ' ', optional(optional($orderItem->order)->orderGroup)->payment_method)) }}
{{__('product.logistic')}}
{{ $orderItem->order->logistic_name }}
@php $shippingAddress = optional(optional($orderItem->order)->orderGroup)->shippingAddress; @endphp @if($shippingAddress)
{{__('product.shipping_address')}}

{{ optional($shippingAddress)->address_line_1 }}, {{ optional($shippingAddress->city_data)->name }}, {{ optional($shippingAddress->state_data)->name }}, {{ optional($shippingAddress->country_data)->name }}

@endif
@if (!$orderItem->order->orderGroup->is_pos_order)
@php $billingAddress = optional(optional($orderItem->order)->orderGroup)->billingAddress; @endphp @if($billingAddress)
{{__('product.billing_address')}}

{{ optional($billingAddress)->address_line_1 }}, {{ optional($billingAddress->city_data)->name }}, {{ optional($billingAddress->state_data)->name }}, {{ optional($billingAddress->country_data)->name }}

@endif
@endif
@php $user = auth()->user(); $product = optional($orderItem->product_variation)->product; $totalprice = $orderItem->total_price; $totalTaxAmount = $orderItem->total_tax; $totalShippingCost = $orderItem->total_shipping_cost; $totalOrderPrice = $totalprice + $totalTaxAmount + $totalShippingCost; @endphp @if (optional(optional($orderItem->order)->orderGroup)->total_coupon_discount_amount > 0) @endif
{{__('product.s_l')}} {{__('product.title')}} {{__('product.unit_price')}} {{__('product.qty')}} {{__('product.total_price')}}
1
{{ optional($product)->name }}
{{ optional($product)->name ? optional($product)->name : '--' }}
@if(!empty($orderItem->product_variation))
@foreach (generateVariationOptions($orderItem->product_variation->combinations) as $variation) {{ $variation['name'] }}: @foreach ($variation['values'] as $value) {{ $value['name'] }} @endforeach @if (!$loop->last) , @endif @endforeach
@endif
{{ \Currency::format($orderItem->unit_price) }} {{ $orderItem->qty }} @if ($orderItem->refundRequest && $orderItem->refundRequest->refund_status == 'refunded') {{ $orderItem->refundRequest->refund_status }} @endif {{ \Currency::format($orderItem->total_price) }}
Tax :
{{ \Currency::format($orderItem->total_tax) }}
{{__('product.shipping_cost')}}
{{ \Currency::format($orderItem->total_shipping_cost) }}
{{__('product.total')}}
{{ \Currency::format($totalOrderPrice) }}
{{__('product.coupon_discount')}}
{{ \Currency::format(optional(optional($orderItem->order)->orderGroup)->total_coupon_discount_amount) }}
@if($otherItems->isNotEmpty())
{{__('product.other_item_lbl')}}
@foreach($otherItems as $key => $item) @php $product = optional($item->product_variation)->product; $totalprice = $item->total_price; $totalTaxAmount = $item->total_tax; $totalShippingCost = $item->total_shipping_cost; $totalOrderPrice = $totalprice + $totalTaxAmount + $totalShippingCost; @endphp @if (optional(optional($orderItem->order)->orderGroup)->total_coupon_discount_amount > 0) @endif
{{__('product.s_l')}} {{__('product.title')}} {{__('product.unit_price')}} {{__('product.qty')}} {{__('product.total_price')}}
{{ $key + 1 }}
{{ optional($product)->name }}
{{ optional($product)->name ? optional($product)->name : '--' }}
@if(!empty($orderItem->product_variation))
@foreach (generateVariationOptions($item->product_variation->combinations) as $variation) {{ $variation['name'] }}: @foreach ($variation['values'] as $value) {{ $value['name'] }} @endforeach @if (!$loop->last) , @endif @endforeach
@endif
{{ \Currency::format($item->unit_price) }} {{ $item->qty }} @if ($item->refundRequest && $item->refundRequest->refund_status == 'refunded') {{ $item->refundRequest->refund_status }} @endif {{ \Currency::format($item->total_price) }}
Tax :
{{ \Currency::format($item->total_tax) }}
{{__('product.shipping_cost')}}
{{ \Currency::format($orderItem->total_shipping_cost) }}
{{__('product.total')}}
{{ \Currency::format($totalOrderPrice) }}
{{__('product.coupon_discount')}}
{{ \Currency::format(optional(optional($orderItem->order)->orderGroup)->total_coupon_discount_amount) }}
@endforeach @endif @if(!auth()->user()->hasRole('pet_store')) @endif
{{__('product.grand_total')}}
{{ \Currency::format(optional(optional($orderItem->order)->orderGroup)->grand_total_amount) }}
@endsection @push('after-scripts') @endpush