@php $cod_tax = 0; $cod_price = 0; $shipping_tax = 0; $shipping_price = 0; $coupon_tax = 0; $coupon_price = 0; if(!empty($orderDetails['cod_charges']) && $orderDetails['payment_method'] == 'cod'){ $gst_price_service = Gst_tax_calculation($orderDetails['cod_charges']); $cod_tax = $gst_price_service['product_gst']; $cod_price = $gst_price_service['without_tax_price']; } if(!empty($orderDetails['shipping_charges'])){ $gst_price_service = Gst_tax_calculation($orderDetails['shipping_charges']); $shipping_tax = $gst_price_service['product_gst']; $shipping_price = $gst_price_service['without_tax_price']; } if(!empty($orderDetails['coupon_discount'])){ $gst_price_service = Gst_tax_calculation($orderDetails['coupon_discount']); $coupon_tax = $gst_price_service['product_gst']; $coupon_price = $gst_price_service['without_tax_price']; } @endphp

Order Invoice

Company Logo
Company Details

c/o {{ Auth::user()->address }},

{{ Auth::user()->pincode }}

Invoice Details

Mobile: {{ Auth::user()->phone ?? '' }}

Email: {{ Auth::user()->email ?? '' }}

GSTIN: {{ Auth::user()->gst ?? '' }}

Invoice No: {{$orderDetails['id']}}

Deliver To

{{$orderDetails['name']}}

{{$orderDetails['address_line_1']}}

@if(!empty($orderDetails['address_line_2']))

{{$orderDetails['address_line_2']}}

@endif

Postcode: {{$orderDetails['postcode']}}

Phone: {{$orderDetails['mobile']}}

Order Information
@if($orderDetails['payment_status'] =="cod")

COD Order

@else

Prepaid Order

@endif

Shipping Partner: {{ucwords($orderDetails['delivery_method'])}}

AWB No.: {{$orderDetails['awb_number']}}

Order ID: {{$orderDetails['order_id']}}

Order Date: {{date('d M Y h:ia',strtotime($orderDetails['created_at']))}}

Total Pieces: {{$orderDetails['total_items']}}

@if($orderDetails['exchange_verify'] !="1")
@if($orderDetails['payment_status'] =="cod" || $orderDetails['payment_status'] =="credit captured" || $orderDetails['payment_status'] =="captured")

Amount To be Collected: Rs. {{formatAmt($orderDetails['grand_total'])}}

@else

Amount To be Collected: Rs. 0

@endif
@endif

Grand Total in Words: {{$numberWords}} Rupees Only

@if(!empty($orderDetails['gift_id']))