@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
# | {{ __('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") }}) @endifTotal: {{ 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') }}) |
{{ __('Seal:') }}
|
@endif
@if(!empty($invSetting->sign))
{{ __('Sign:') }} |
@endif
@if(isset($design) && $design->show_qr == 1)
@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) !!} | @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 |