@php if(isset($getInvoice->variant)){ $orivar = App\AddSubVariant::withTrashed()->find($getInvoice->variant_id); $store = App\Store::where('id',$orivar->products->store_id)->first(); } if(isset($getInvoice->simple_product)){ $store = $getInvoice->simple_product->store; } @endphp {{--
--}}

{{__("Tax Invoice")}} #{{ $inv_cus->prefix.$getInvoice->inv_no.$inv_cus->postfix }}


{{__("Date:")}} {{ date($design->date_format,strtotime($getInvoice->created_at)) }}
{{__("Transcation ID:")}} {{ $getInvoice->order->transaction_id }}


{{__("Order ID:")}} #{{ $inv_cus->order_prefix.$getInvoice->order->order_id }}
{{__("Payment method:")}} {{$getInvoice->order->payment_method}}
{{ __("Sold By:") }}

{{ $store->name }}

{{ $store->address }}
@php $c = App\Allcountry::where('id',$store->country_id)->first()->nicename; $s = App\Allstate::where('id',$store->state_id)->first()->name; $ci = App\Allcity::where('id',$store->city_id)->first() ? App\Allcity::where('id',$store->city_id)->first()->name : ''; @endphp
{{ $ci }},{{ $s }},{{ $c }}, {{ $store->pin_code }}
{{ __('Email') }}: {{ $store->email }}
{{__('Phone')}}: {{ $store->mobile }}
@if(isset($design) && $design->show_vat == 1)
{{ __('GSTIN') }}: {{ $store->vat_no }}
@endif
{{ __("Shipping Address:") }}

{{$address->name}}

{{ strip_tags($address->address) }}
{{ $address->getcity ? $address->getcity->name.',' : '' }} {{ $address->getstate ? $address->getstate->name.',' : '' }} {{ $address->getCountry ? $address->getCountry->nicename.',' : '' }} {{ $address->pin_code ? $address->pin_code : "" }}
{{ __('Email') }}: {{$address->email}}
{{ __('Phone') }}: {{ $address->phone }}
{{ __("Billing Address:") }}

{{ $getInvoice->order->billing_address['firstname'] }}

{{ strip_tags($getInvoice->order->billing_address['address']) }}
@php $bcountry = App\Allcountry::where('id',$getInvoice->order->billing_address['country_id'])->first()->nicename; $bstate = App\Allstate::where('id',$getInvoice->order->billing_address['state'])->first() ? App\Allstate::where('id',$getInvoice->order->billing_address['state'])->first()->name : ''; $bcity = App\Allcity::where('id',$getInvoice->order->billing_address['city'])->first() ? App\Allcity::where('id',$getInvoice->order->billing_address['city'])->first()->name : ''; @endphp
{{ $bcity }}, {{ $bstate }}, {{ $bcountry }}, {{ $getInvoice->order->billing_address['pincode'] ?? '' }}
{{__('Email')}}: {{ $getInvoice->order->billing_address['email'] }}
{{ __('Phone') }}: {{ $getInvoice->order->billing_address['mobile'] }}
# {{ __('Item') }} {{ __('Qty') }} {{ __('Pricing & Shipping') }} {{ __('TAX') }} {{ __('Total') }}
1. @if($getInvoice->variant) {{$orivar->products->name}} ({{variantname($orivar)}})
{{ __("HSN/SAC : ") }} {{ $getInvoice->variant->products->hsn }}
{{ __('Sold By:') }} {{$orivar->products->store->name}} @endif @if($getInvoice->simple_product) {{$getInvoice->simple_product->product_name}}
{{ __("HSN/SAC : ") }} {{ $getInvoice->simple_product->hsin }}
{{ __('Sold By:') }} {{$getInvoice->simple_product->store->name}} @endif
{{ __('Price:') }} {{ number_format((float)$getInvoice->price , 2, '.', '')}}
{{ __('Tax:') }} {{ number_format((float)$getInvoice->tax_amount, 2, '.', '')}}
{{ $getInvoice->qty }}

{{ __('Price:') }} {{ round($getInvoice->qty*$getInvoice->price,2) }}

{{ __('Shipping:') }} {{ round( $getInvoice->shipping,2) }}

({{ __('Price Multiplied with Qty.') }})
@if($getInvoice->igst != NULL)

{{ sprintf("%.2f",$getInvoice->igst) }} {{ __("(IGST)") }}

@endif @if($getInvoice->sgst != NULL)

{{ sprintf("%.2f",$getInvoice->sgst) }} ({{ __("SGST") }})

@endif @if($getInvoice->cgst != NULL)

{{ sprintf("%.2f",$getInvoice->cgst) }} ({{ __("CGST") }})

@endif

Total: {{ sprintf("%.2f",$getInvoice->tax_amount * $getInvoice->qty,2) }}

@if(isset($getInvoice->variant) && $getInvoice->variant->products->tax_r !='' && $getInvoice->igst != NULL && $getInvoice->cgst != NULL && $getInvoice->sgst != NULL)

({{ $orivar->products->tax_name }})

@endif @if(isset($getInvoice->simple_product) && $getInvoice->simple_product->tax !='' && $getInvoice->igst != NULL && $getInvoice->cgst != NULL && $getInvoice->sgst != NULL)

({{ $getInvoice->simple_product->tax_name }})

@endif (Tax Multiplied with Qty.)
{{ round($getInvoice->qty*($getInvoice->price+$getInvoice->tax_amount)+$getInvoice->shipping,2) }}
({{ __('Incl. of Tax & Shipping') }})
{{ __('Terms:') }} {!! $inv_cus->terms !!} @if(!empty($invSetting->seal)) @endif @if(!empty($invSetting->sign)) @endif @if(isset($design) && $design->show_qr == 1) @endif
{{ __('Seal:') }}
{{ __('Sign:') }}
@php $data = array( 'Sold By' => $store->name, 'Invoice No.' => $inv_cus->order_prefix.$getInvoice->order->order_id, 'Invoice Date' => date('d M,Y',strtotime($getInvoice->created_at)), 'Amount' => $getInvoice->order->discount == 0 ? $getInvoice->order->paid_in_currency.' '.round( $getInvoice->qty*($getInvoice->price+$getInvoice->tax_amount)+$getInvoice->handlingcharge+$getInvoice->shipping+$getInvoice->gift_charge,2) : $getInvoice->order->paid_in_currency.' '.round( $getInvoice->qty*($getInvoice->price+$getInvoice->tax_amount)-$getInvoice->discount+$getInvoice->handlingcharge+$getInvoice->shipping+$getInvoice->gift_charge,2), 'Invoice link' => url()->current(), ); $data = json_encode($data,true); @endphp {!! QrCode::color(21, 126, 210)->errorCorrection('H')->generate($data) !!}
@if( $getInvoice->order->discount !=0) @endif
{{ __('Coupon Discount') }} @if($getInvoice->order->discount !=0) - {{ round($getInvoice->discount,2) }} @endif
{{ __('Gift Pkg. Charges') }} + {{ $getInvoice->gift_charge }}
{{ __('Handling Charges') }} + @infloat($getInvoice->handlingcharge)
{{ __('Total') }} @if( $getInvoice->order->discount == 0) {{ round( $getInvoice->qty*($getInvoice->price+$getInvoice->tax_amount)+$getInvoice->handlingcharge+$getInvoice->shipping+$getInvoice->gift_charge,2) }} @else {{ round( $getInvoice->qty*($getInvoice->price+$getInvoice->tax_amount)-$getInvoice->discount+$getInvoice->handlingcharge+$getInvoice->shipping+$getInvoice->gift_charge,2) }} @endif