@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:') }} {{ price_format($getInvoice->price , 2, '.', '')}}
{{ __('Tax:') }} {{ price_format($getInvoice->tax_amount, 2, '.', '')}}
{{ $getInvoice->qty }}

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

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

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

{{ price_format($getInvoice->igst) }} {{ __("(IGST)") }}

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

{{ price_format($getInvoice->sgst) }} ({{ __("SGST") }})

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

{{ price_format($getInvoice->cgst) }} ({{ __("CGST") }})

@endif

Total: {{ price_format($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.)
{{ price_format($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.' '.price_format( $getInvoice->qty*($getInvoice->price+$getInvoice->tax_amount)+$getInvoice->handlingcharge+$getInvoice->shipping+$getInvoice->gift_charge,2) : $getInvoice->order->paid_in_currency.' '.price_format( $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) - {{ price_format($getInvoice->discount,2) }} @endif
{{ __('Gift Pkg. Charges') }} + {{ price_format($getInvoice->gift_charge) }}
{{ __('Handling Charges') }} + {{price_format($getInvoice->handlingcharge)}}
{{ __('Total') }} @if( $getInvoice->order->discount == 0) {{ price_format( $getInvoice->qty*($getInvoice->price+$getInvoice->tax_amount)+$getInvoice->handlingcharge+$getInvoice->shipping+$getInvoice->gift_charge,2) }} @else {{ price_format( $getInvoice->qty*($getInvoice->price+$getInvoice->tax_amount)-$getInvoice->discount+$getInvoice->handlingcharge+$getInvoice->shipping+$getInvoice->gift_charge,2) }} @endif