@php $orivar = App\AddSubVariant::withTrashed()->findorfail($getInvoice->variant_id); $i=0; $varcount = count($orivar->main_attr_value); $store = App\Store::where('id',$orivar->products->store_id)->first(); @endphp

{{ __('Invoice:') }} {{ $inv_cus->prefix.$getInvoice->inv_no.$inv_cus->postfix }}


@php $city = App\Allcountry::where('id',$address->country_id)->first()->nicename; $state = App\Allstate::where('id',$address->state_id)->first()->name; $country = App\Allcity::where('id',$address->city_id)->first()->name; @endphp
{{ $inv_cus->prefix.$getInvoice->inv_no.$inv_cus->postfix }}
{{ __('TXN ID:') }}{{ $getInvoice->order->transaction_id }} @if($store->vat_no != '')
{{ 'VAT/GSTIN No:' }} {{ $store->vat_no }} @endif
{{ __('Ordered From') }} {{ $title }}
{{ __('Payment Method:') }} {{ $getInvoice->order->payment_method }}
{{ $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()->name; @endphp {{$ci}},{{$s}},{{$c}}
{{$store->pin_code}}
{{ __('Order ID:') }} {{ $inv_cus->order_prefix.$getInvoice->order->order_id }}
{{ __('Invoice No:') }} {{ $inv_cus->prefix.$getInvoice->inv_no.$inv_cus->postfix }}
{{ __('Date:') }} {{ date('d-m-Y',strtotime($getInvoice->created_at)) }}
{{ __('Shipping Address') }} {{ __('Billing Address') }}

{{ $address->name }}, {{ $address->phone }}

{{ strip_tags($address->address) }}

{{ $city }}, {{ $state }}, {{ $country }}

{{ $address->pin_code }}

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

{{ strip_tags($getInvoice->order->billing_address['address']) }},

@php $bcity = App\Allcountry::where('id',$getInvoice->order->billing_address['country_id'])->first()->nicename; $bstate = App\Allstate::where('id',$getInvoice->order->billing_address['state'])->first()->name; $bcountry = App\Allcity::where('id',$getInvoice->order->billing_address['city'])->first()->name; @endphp

{{ $bcity }}, {{ $bstate }}, {{ $bcountry }}

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

@if( $getInvoice->order->discount !=0) @endif
{{ __('Item') }} {{ __('Qty') }} {{ __('Pricing & Shipping') }} {{ __('TAX') }} {{ __('Total') }}
{{$orivar->products->name}} (@foreach($orivar->main_attr_value as $key=> $orivars) @php $getattrname = App\ProductAttributes::where('id',$key)->first()->attr_name; $getvarvalue = App\ProductValues::where('id',$orivars)->first(); @endphp @if($i < $varcount) @if(strcasecmp($getvarvalue->unit_value, $getvarvalue->values) != 0 && $getvarvalue->unit_value != null) @if($getvarvalue->proattr->attr_name == "Color" || $getvarvalue->proattr->attr_name == "Colour" || $getvarvalue->proattr->attr_name == "color" || $getvarvalue->proattr->attr_name == "colour") {{ $getvarvalue->values }}, @else {{ $getvarvalue->values }}{{ $getvarvalue->unit_value }}, @endif @else {{ $getvarvalue->values }}, @endif @else @if(strcasecmp($getvarvalue->unit_value, $getvarvalue->values) != 0 && $getvarvalue->unit_value != null) @if($getvarvalue->proattr->attr_name == "Color" || $getvarvalue->proattr->attr_name == "Colour" || $getvarvalue->proattr->attr_name == "color" || $getvarvalue->proattr->attr_name == "colour") {{ $getvarvalue->values }} @else {{ $getvarvalue->values }}{{ $getvarvalue->unit_value }} @endif @else {{ $getvarvalue->values }} @endif @endif @endforeach )
{{ __('Sold By:') }} {{$orivar->products->store->name}}
{{ __('Price:') }} {{ number_format((float)$getInvoice->price , 2, '.', '')}}
{{ __('Tax:') }} {{ number_format((float)$getInvoice->tax_amount/$getInvoice->qty , 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) }}

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

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

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

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

@endif

Total: {{ round($getInvoice->tax_amount,2) }}

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

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

@endif (Tax Multiplied with Qty.)
{{ round($getInvoice->qty*$getInvoice->price+$getInvoice->tax_amount+$getInvoice->shipping,2) }}
({{ __('Incl. of Tax & Shipping') }})
{{ __('Coupon Discount:') }} @if($getInvoice->order->discount !=0) - {{ round($getInvoice->discount,2) }} @endif
{{ __('Handling Charges:') }} + {{ $getInvoice->handlingcharge }}
{{ __('Grand Total:') }} @if( $getInvoice->order->discount == 0) {{ round( $getInvoice->qty*$getInvoice->price+$getInvoice->tax_amount+$getInvoice->handlingcharge+$getInvoice->shipping,2) }} @else {{ round( $getInvoice->qty*$getInvoice->price+$getInvoice->tax_amount-$getInvoice->discount+$getInvoice->handlingcharge+$getInvoice->shipping,2) }} @endif

{{ __('Terms:') }} {{ $inv_cus->terms }}

@if(!empty($invSetting->seal)) @endif @if(!empty($invSetting->sign)) @endif
{{ __('Seal:') }}
{{ __('Sign:') }}