@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
{{ $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'] }} |
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) @endifTotal: {{ 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 }}
Seal:
|
@endif
@if(!empty($invSetting->sign))
Sign: |
@endif