@php use App\Models\Admin\Settings; $companyName = Settings::get('company_name'); $companyAddress = Settings::get('company_address'); $companyGST = Settings::get('company_gst_number'); $companyStateCode = Settings::get('company_state_code'); $companyState = Settings::get('company_state'); $invoiceBankDetails = Settings::get('invoice_bank_details'); $order = $order->toArray(); @endphp Sparkle & Glow
@if(isset($order['order_type']) && $order['order_type'] == 'domestic') @elseif(isset($order['order_type']) && $order['order_type'] == 'international') @endif
...
{{-- --}}
GSTIN: {{isset($companyGST) && $companyGST ? $companyGST : ''}}
Address: {{isset($companyAddress) && $companyAddress ? $companyAddress : ''}}
PAN/IEC: AGQPA7715G
@if(isset($order['order_type']) && $order['order_type'] == 'international') @endif @if(isset($order['order_type']) && $order['order_type'] == 'international') @endif
Invoice No: {{isset($order['id']) && $order['id'] ? General::formatOrderNumber($order['id']) : ''}}
Invoice Date: {{isset($order['trans_created']) && $order['trans_created'] ? date('M d, Y h:i A', strtotime($order['trans_created'])) : ''}}
Reason For Export: Commercial
State: {{ $companyState }}
State Code: {{ $companyStateCode }}
FOB Value: {{isset($order['total']) && $order['total'] ? (isset($order['trans_currency']) && $order['trans_currency'] == '$' ? $order['trans_currency_code'] : '').' '.$order['trans_currency'].''.priceFormatBake($order['total']) : ''}}
IGST Payment Status: Export Against Payment of IGST
{{-- Billing Address --}} {{-- Shipping Address --}} @if((isset($shippingAddress['address']) && $shippingAddress['address'])) @else @endif
Tax Invoice
{{-- --}} @if((isset($getStateName) && $getStateName) || (isset($getCountryName) && $getCountryName)) @else @endif
Customer Name:
{{(isset($user->first_name) && $user->first_name ? $user->first_name . ' '.(isset($user->last_name) && $user->last_name ? $user->last_name : '') : '') }}
Customer GSTIN:
-
Place supply:
{{ isset($getStateName) && $getStateName ? $getStateName .', '. ( isset($getCountryName) && $getCountryName ? $getCountryName : '' ) : ''}} {{isset($order['order_address']['state_name']) && $order['order_address']['state_name'] ? $order['order_address']['state_name'] .', ' : ''}} {{ isset($order['order_address']['country_name']) && $order['order_address']['country_name'] ? $order['order_address']['country_name'] : '' }}
Order Type:
{{isset($order['order_type']) && $order['order_type'] ? ucFirst($order['order_type']) : '-'}}
Billing Address:
{{(isset($user->first_name) && $user->first_name ? $user->first_name . ' '.(isset($user->last_name) && $user->last_name ? $user->last_name : '') : '') }}
{{isset($order['order_address']['locality']) && $order['order_address']['locality'] ? $order['order_address']['locality'] : ''}}
{{isset($order['order_address']['landmark']) && $order['order_address']['landmark'] ? $order['order_address']['landmark'] : ''}}
{{isset($order['order_address']['city_name']) && $order['order_address']['city_name'] ? $order['order_address']['city_name'] : ''}}
{{isset($order['order_address']['state_name']) && $order['order_address']['state_name'] ? $order['order_address']['state_name'] .',' : ''}} {{ isset($order['order_address']['pincode']) && $order['order_address']['pincode'] ? $order['order_address']['pincode'] : '' }}
{{isset($order['order_address']['country_name']) && $order['order_address']['country_name'] ? $order['order_address']['country_name'] : ''}}
Shipping Address:
{{ isset($shippingAddress['first_name']) && $shippingAddress['first_name'] ? ($shippingAddress['first_name'] .' '.(isset($shippingAddress['last_name']) && $shippingAddress['last_name'] ? ($shippingAddress['last_name']) : '')) : '' }}
{{isset($shippingAddress['address']) && $shippingAddress['address'] ? $shippingAddress['address'] : ''}}
{{isset($shippingAddress['landmark']) && $shippingAddress['landmark'] ? $shippingAddress['landmark'] : ''}}
{{isset($getCityName) && $getCityName ? $getCityName : ''}}
{{isset($getStateName) && $getStateName ? $getStateName .',': ''}} {{isset($shippingAddress['pincode']) && $shippingAddress['pincode'] ? $shippingAddress['pincode'] : '' }}
{{isset($getCountryName) && $getCountryName ? $getCountryName : ''}}
Shipping Address:
{{(isset($user->first_name) && $user->first_name ? $user->first_name . ' '.(isset($user->last_name) && $user->last_name ? $user->last_name : '') : '') }}
{{isset($order['order_address']['locality']) && $order['order_address']['locality'] ? $order['order_address']['locality'] : ''}} dsfsd
{{isset($order['order_address']['landmark']) && $order['order_address']['landmark'] ? $order['order_address']['landmark'] : ''}}
{{isset($order['order_address']['city_name']) && $order['order_address']['city_name'] ? $order['order_address']['city_name'] : ''}}
{{isset($order['order_address']['state_name']) && $order['order_address']['state_name'] ? $order['order_address']['state_name'] .',' : ''}} {{ isset($order['order_address']['pincode']) && $order['order_address']['pincode'] ? $order['order_address']['pincode'] : '' }}
{{isset($order['order_address']['country_name']) && $order['order_address']['country_name'] ? $order['order_address']['country_name'] : ''}}
{{-- --}} @foreach($items as $k => $v) {{-- --}} @endforeach
# HSN TitleDescriptionUnit Cost Quantity Line Total
{{ ++$k }} {{isset($v['product_id']) && $v['product_id'] ? $v['product_id'] : ''}} {{isset($v['title']) && $v['title'] ? $v['title'] : ''}}{{isset($v['description']) && $v['description'] ? $v['description'] : ''}}{{isset($v['price']) && $v['price'] ? $v['price'] : ''}} {{isset($v['quantity']) && $v['quantity'] ? $v['quantity'] : ''}} {{isset($v['amount']) && $v['amount'] ? $v['amount'] : ''}}
@foreach($items as $k => $v) @php $prices = []; $prices = isset($v['addons']) && $v['addons'] ? json_decode($v['addons'],true) : []; $prices = isset($prices['price']) && $prices['price'] ? $prices['price'] : []; /*if($v['quantity'] > 1) { if(isset($prices['price_without_discount']) && $prices['price_without_discount']) { $prices['price_without_discount'] = $prices['price_without_discount']/$v['quantity']; } if(isset($prices['discount']) && $prices['discount']) { $prices['discount'] = $prices['discount']/$v['quantity']; } }*/ @endphp @endforeach
# Description Commodity type HSN Quantity Unit Value Line Value Weight Discount Taxable Value IGST % IGST Amount CESS Amount COO
{{ ++$k }} {{isset($v['title']) && $v['title'] ? $v['title'] : ''}} Others {{isset($v['product_id']) && $v['product_id'] ? $v['product_id'] : ''}} {{isset($v['quantity']) && $v['quantity'] ? $v['quantity'] : ''}} {{isset($v['price']) && $v['price'] ? $v['price'] : ''}} {{isset($v['price']) && $v['price'] ? $v['price'] : ''}} 0.5 {{ isset($prices['discount']) && $prices['discount'] ? $prices['discount'] : 0 }} {{isset($v['amount']) && $v['amount'] ? $v['amount'] : ''}} {{ isset($order['igst_tax_percentage']) && $order['igst_tax_percentage'] ? $order['igst_tax_percentage'].'%' : '' }} {{ isset($order['igst_tax_percentage']) && $order['igst_tax_percentage'] > 0 ? (($v['amount']*$order['igst_tax_percentage'])/100) : '' }} 0.00 india
@if(isset($order['order_type']) && $order['order_type'] == 'domestic') @elseif(isset($order['order_type']) && $order['order_type'] == 'international') @endif {{-- --}} @if(isset($order['delivery_charges']) && $order['delivery_charges'] > 0.00) @endif @if(isset($order['cod_charges']) && $order['cod_charges'] > 0.00) @endif
Total {{isset($order['subtotal']) && $order['subtotal'] ? (isset($order['trans_currency']) && $order['trans_currency'] == '$' ? $order['trans_currency_code'] : '').' '.$order['trans_currency'].''.priceFormatBake($order['subtotal']) : ''}}
Discount {{isset($order['discount']) && $order['discount'] ? (isset($order['trans_currency']) && $order['trans_currency'] == '$' ? $order['trans_currency_code'] : '').' '.$order['trans_currency'].''.priceFormatBake($order['discount']) : ''}}
CGST {{isset($order['tax_percentage']) && $order['tax_percentage'] ? "({$order['tax_percentage']} %)" : ''}} {{isset($order['tax']) && $order['tax'] ? (isset($order['trans_currency']) && $order['trans_currency'] == '$' ? $order['trans_currency_code'] : '').' '.$order['trans_currency'].''.priceFormatBake($order['tax']) : ''}}
SGST {{isset($order['sgst_tax_percentage']) && $order['sgst_tax_percentage'] ? "({$order['sgst_tax_percentage']} %)" : ''}} {{isset($order['sgst_tax']) && $order['sgst_tax'] ? (isset($order['trans_currency']) && $order['trans_currency'] == '$' ? $order['trans_currency_code'] : '').' '.$order['trans_currency'].''.priceFormatBake($order['sgst_tax']) : ''}}
IGST {{isset($order['igst_tax_percentage']) && $order['igst_tax_percentage'] ? "({$order['igst_tax_percentage']} %)" : ''}} {{isset($order['igst_tax']) && $order['igst_tax'] ? (isset($order['trans_currency']) && $order['trans_currency'] == '$' ? $order['trans_currency_code'] : '').' '.$order['trans_currency'].''.priceFormatBake($order['igst_tax']) : ''}}
CGST(@1.5%) ₹ 117.12
Delivery Charges {{isset($order['delivery_charges']) && $order['delivery_charges'] ? (isset($order['trans_currency']) && $order['trans_currency'] == '$' ? $order['trans_currency_code'] : '').' '.$order['trans_currency'].''.priceFormatBake($order['delivery_charges']) : ''}}
COD Charges {{isset($order['cod_charges']) && $order['cod_charges'] ? (isset($order['trans_currency']) && $order['trans_currency'] == '$' ? $order['trans_currency_code'] : '').' '.$order['trans_currency'].''.priceFormatBake($order['cod_charges']) : ''}}
Invoice Total {{isset($order['total']) && $order['total'] ? (isset($order['trans_currency']) && $order['trans_currency'] == '$' ? $order['trans_currency_code'] : '').' '.$order['trans_currency'].''.priceFormatBake($order['total']) : ''}}
@if(isset($order['order_type']) && $order['order_type'] == 'international')

Bank Details:

{!! isset($invoiceBankDetails) && $invoiceBankDetails ? nl2br($invoiceBankDetails) : '' !!}

@endif
For Sparkle and Glow:
...
Authorized Signatory
Whether tax is payable under reverse charge - No