TAX INVOICE
@php $shippingAddress = $order->toAddress; $buyer = json_decode($order->buyers_json_data)->buyers_details; $buyer_city = App\Models\City::find(@$buyer->user_address->city_id); $buyer_state = App\Models\State::find(@$buyer->user_address->state_id); $buyer_country = App\Models\Country::find(@$buyer->user_address->country_id); @endphp

SHIPPING ADDRESS:

SOLD BY:

INVOICE DETAILS:
{{ @$shippingAddress->contact_name }} {{ @$buyer->users_details->first_name }} INVOICE NO. : {{ @$products->first()->invoice_no }}
{{ @$shippingAddress->district->name }} {{ @$shippingAddress->pincode }} {{ @$buyer->user_address->address }} INVOICE DATE. :{{ date('d/m/Y') }}
{{ @$shippingAddress->state->name }} {{ @$buyer_city->name }} {{ @$buyer->user_address->pincode }} ORDER NO.. : {{ $order->order_id }}
{{ @$shippingAddress->country->name }} {{ @$buyer_state->name }} ORDER DATE : {{ date('Y-m-d',strtotime($order->start_date)) }}
State Code : {{ @$shippingAddress->state_id }} {{ @$buyer_country->name }} CHANNEL : SW
State Code : {{ @$buyer->user_address->state_id }} SHIPPED BY
Ph: {{ @$buyer->users_details->mobile_number }} AWB NO. {{ $products->first()->docket_no }}
Email: {{ @$buyer->users_details->email }} PAYMENT
METHOD
@php $totalAmount = 0; @endphp @foreach($products as $key => $product) @php $unitDiscount = 10; @endphp @php $totalAmount += $taxableAmount = $product->quantity * ($product->unit_price - $unitDiscount); @endphp @endforeach
S.No. Product Name HSN QTY UNIT PRICE UNIT DISCOUNT TAXABLE VALUE COST
(VALUE %)
SGST
(VALUE %)
TOTAL
(INCLUDING GST)
{{ $key+1 }} {{ $product->name }}
SKU : {{ $product->sku }}
{{ $product->hsn }} {{ $product->quantity }} Rs. {{ $product->unit_price }}{{ number_format((float)$unitDiscount, 2, '.', '') }}{{ number_format((float)$taxableAmount, 2, '.', '') }} 0.00 0.00 {{ number_format((float)$taxableAmount, 2, '.', '') }}
NET TOTAL (In Value) Rs. {{ number_format((float)$totalAmount, 2, '.', '') }}
{{-- --}} Whether tax is payable under reverse charge- No
Authorized Signature for S