@extends('layout.app') @section('title', 'Tax Invoice Print') @push('header_script') @endpush @section('content')
Back
TAX INVOICE
!! {{ $companyDetails->faith_line ?? '' }} !!

{{ strtoupper($companyDetails->company_name) }}

Transporter & Govt. Contractor
{{ $companyDetails->address }}
{{ $companyDetails->state->state_name ?? '' }} - {{ $companyDetails->pin_code }}
{{ $companyDetails->mobile_no }}
{{ $companyDetails->email }}
GST : {{ $companyDetails->gst_no }}   |   PAN : {{ $companyDetails->pan_no }}
Details of Receiver / Billed to Invoice Details
Name: {{ $freightBilling->party->party_name }}
Address: {{ $freightBilling->party->address }}
GST No: {{ $freightBilling->party->gst_no }}
Invoice No: {{ $freightBilling->invoice_no }}
Date: {{ date('d-M-Y', strtotime($freightBilling->invoice_date)) }}
State: {{ $freightBilling->party->state->state_name ?? '' }}
Service Description- Being amount charged for transportation of goods
@php $totalFreight = 0; $totalHalt = 0; $totalExtra = 0; $totalDeduct = 0; @endphp @foreach ($freightBilling->freightBillDetail as $bill) @php $entry = $bill->freightEntry; $freightAmount = $bill->freight_amount; $totalFreight += $freightAmount; $totalHalt += $bill->halting_charge; $totalExtra += $bill->extra_charge; $totalDeduct += $bill->any_deduction; // Group items by unit $groupedUnits = $entry->items->groupBy('weight_unit'); $groupedRates = $entry->items->groupBy('weight_unit'); @endphp @endforeach
S.No LR No. Date Truck No. From - To Qty Rate Freight Halt Extra Deduct Net Amt
{{ $loop->iteration }} {{ $entry->lr_no }} {{ date('d-M-Y', strtotime($entry->date)) }} {{ optional($entry->vehicle)->vehicle_no }} {{ strtoupper($entry->from_location) }} - {{ strtoupper($entry->to_location) }} @foreach ($groupedUnits as $unit => $rows)
{{ number_format($rows->sum('charge_weight'), 2) }} {{ $unit }}
@endforeach
@foreach ($groupedRates as $unit => $rows) @php $unitRate = $rows->first()->rate ?? 0; @endphp
₹ {{ number_format($unitRate, 2) }}/{{ $unit }}
@endforeach
{{ number_format($freightAmount, 2) }} {{ number_format($bill->halting_charge ?? 0, 2) }} {{ number_format($bill->extra_charge ?? 0, 2) }} {{ number_format($bill->any_deduction ?? 0, 2) }} {{ number_format($bill->net_amount, 2) }}
Total {{ number_format($totalFreight, 2) }} {{ number_format($totalHalt, 2) }} {{ number_format($totalExtra, 2) }} {{ number_format($totalDeduct, 2) }} {{ number_format($freightBilling->freightBillDetail->sum('net_amount'), 2) }}
{{--
Amount in Words:
{{ ucfirst(\App\Http\Helpers\CommonHelper::convert($freightBilling->grand_total)) }} RUPEES ONLY
Taxable Value {{ number_format($freightBilling->freightBillDetail->sum('net_amount'), 2) }}
GST Total {{ number_format($freightBilling->total_tax_value, 2) }}
Net Invoice Amount {{ number_format($freightBilling->grand_total, 2) }}
--}}
Declaration:

Certified that the particulars given above are correct and the amount indicated represents the price actually charged.

Bank Details:
Bank: {{ $freightBilling->bankDetail->bank_name ?? 'N/A' }}
A/c: {{ $freightBilling->bankDetail->account_no ?? 'N/A' }}
IFSC: {{ $freightBilling->bankDetail->ifsc_code ?? '' }}
For {{ strtoupper($companyDetails->company_name) }}


Authorized Signatory
This is a computer generated document.
@endsection