@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:') }} {{ 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") }}) @endifTotal: {{ 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') }}) |
{{ __('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.' '.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) !!} | @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 |