@php
function formatDate($date) {
// Check if the date is valid
if (!strtotime($date)) {
return '';
}
return date('d-m-Y', strtotime($date));
}
function printTillSpecificLength($string, $maxLength) {
// Check if the length of the string is less than or equal to the maxLength
if (strlen($string) <= $maxLength) {
echo $string;
} else {
// If the length exceeds maxLength, print only up to maxLength characters
echo substr($string, 0, $maxLength);
}
}
function numberToWords($number) {
$no = floor($number);
$point = round($number - $no, 2) * 100;
$hundred = null;
$digits_1 = strlen($no);
$i = 0;
$str = array();
$words = array(
'0' => '', '1' => 'One', '2' => 'Two', '3' => 'Three', '4' => 'Four', '5' => 'Five', '6' => 'Six', '7' => 'Seven', '8' => 'Eight', '9' => 'Nine',
'10' => 'Ten', '11' => 'Eleven', '12' => 'Twelve', '13' => 'Thirteen', '14' => 'Fourteen', '15' => 'Fifteen', '16' => 'Sixteen', '17' => 'Seventeen',
'18' => 'Eighteen', '19' => 'Nineteen', '20' => 'Twenty', '30' => 'Thirty', '40' => 'Forty', '50' => 'Fifty', '60' => 'Sixty', '70' => 'Seventy',
'80' => 'Eighty', '90' => 'Ninety'
);
$digits = array('', 'Hundred', 'Thousand', 'Lakh', 'Crore');
while ($i < $digits_1) {
$divider = ($i == 2) ? 10 : 100;
$number = floor($no % $divider);
$no = floor($no / $divider);
$i += ($divider == 10) ? 1 : 2;
if ($number) {
$plural = (($counter = count($str)) && $number > 9) ? 's' : null;
$hundred = ($counter == 1 && $str[0]) ? ' and ' : null;
$str [] = ($number < 21) ? $words[$number] .
" " . $digits[$counter] . $plural . " " . $hundred
:
$words[floor($number / 10) * 10]
. " " . $words[$number % 10] . " "
. $digits[$counter] . $plural . " " . $hundred;
} else $str[] = null;
}
$str = array_reverse($str);
$result = implode('', $str);
$points = ($point) ?
"." . $words[$point / 10] . " " .
$words[$point = $point % 10] : '';
echo $result . "Rupees ";
// echo $result . "Rupees " . $points . " Paise";
}
// $copies = $_GET['copies'];
// // BREAK $copies INTO ARRAY
// $copies = explode(',', $copies);
$copies = 'Original,Duplicate';
$copies = explode(',', $copies);
@endphp
{{ $bill->bill_number }}
{{-- {{$bill}} --}}
@foreach($copies as $copy)
{{ $company->company_name }}
Products Your's Delivery Responsibility Our's
{{ $copy }} Copy
GSTIN: {{ $company->gst_number }} |
INV NO: |
{{$bill->bill_number}} |
STATE CODE: |
{{ substr($company->gst_number,0,2) }} |
DATE: |
{{formatDate($bill->bill_date)}} |
|
To, |
{{$bill->acc_party['account_name']}} |
{{ $bill->acc_party['party']['address1'] }} |
{{ $bill->acc_party['party']['state'] }} |
PAN NO: {{ $bill->acc_party['party']['pan_number'] }} |
GSTIN {{ $bill->acc_party['party']['gst_number'] }} |
Description of Services |
Freight |
GR Charges |
Labour Cost Plant |
Labour Cost Customer Point |
Detentions |
Point Charges |
Total Amount |
Dated |
GR No. |
Invoice Ref No |
Invoice no |
From |
To |
Vehicle Type |
@foreach($bill->bill_desc as $bill_desc)
{{ formatDate($bill_desc['gr_date']) }} |
{{ $bill_desc['gr_number'] }} |
{{ $bill_desc['ref_number'] }} |
{{ $bill_desc['gr_desc']?$bill_desc['gr_desc'][0]->invoice_number:'' }} |
{{ $bill_desc['source']['station_name']}} |
{{$bill_desc['destination']['station_name'] }} |
{{ $bill_desc['vehicle_type'] }} |
{{ $bill_desc['freight'] }} |
{{ $bill_desc['gr_chg'] }} |
@php
if(isset($bill_desc['pod_payment_dynamic_fields'])){
if(isset($bill_desc['pod_payment_dynamic_fields']->loading_chg) && $bill_desc['pod_payment_dynamic_fields']->loading_chg>0) {
echo $bill_desc['pod_payment_dynamic_fields']->loading_chg;
}
}
@endphp
|
@php
if(isset($bill_desc['pod_payment_dynamic_fields'])){
if(isset($bill_desc['pod_payment_dynamic_fields']->unloading_chg) && $bill_desc['pod_payment_dynamic_fields']->unloading_chg>0) {
echo $bill_desc['pod_payment_dynamic_fields']->unloading_chg;
}
}
@endphp
|
{{ ($bill_desc['load_detention'] + $bill_desc['unload_detention'] > 0) ? $bill_desc['load_detention'] + $bill_desc['unload_detention'] : ''}}
|
@php
if(isset($bill_desc['pod_payment_dynamic_fields'])){
if(isset($bill_desc['pod_payment_dynamic_fields']->point_chg) && $bill_desc['pod_payment_dynamic_fields']->point_chg>0) {
echo $bill_desc['pod_payment_dynamic_fields']->point_chg;
}
}
@endphp
|
{{ $bill_desc['total_without_gst'] }} |
@endforeach
@for($i = count($bill->bill_desc); $i < 5; $i++)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@endfor
Bank Details |
Taxable Value |
{{ $bill->total_without_gst + $bill->other_plus - $bill->other_minus }} |
{{ $company->bank_name }} |
CGST 0% |
{{ $bill->total_cgst_amount }} |
A/C No.: {{ $company->account_number }} |
SGST 0 % |
{{ $bill->total_sgst_amount }} |
IFSC:{{ $company->ifsc }} |
IGST 0% |
{{ $bill->total_igst_amount }} |
|
Total GST |
{{ $bill->total_cgst_amount + $bill->total_sgst_amount + $bill->total_igst_amount }} |
|
Total Invoice Value |
{{ $bill->grand_total_amount }} |
Amounts in Words:- {{numberToWords($bill->grand_total_amount)}} Only |
Notes. |
|
- GST on Road Transport Services to be paid By Asian Paints Ltd. On Our Behalf
- Gst on goods to be paid by consignoe(sending locations)
- Services accounting code:996791
- Tax is payable on reverse charge basis
- GTA has not availed input tax credit of CGST/SGST/IGST/UTGST
- Cheques & Drafts should be drawn on ADL SUPPLY CHAIN SOLUTIONS PVT. LTD.
- Disputes relating to this bill must be submitted in writing within one week from receipt
of the same.
- All disputes are subject to Ghaziabad juriasdiction.
|
For {{ $company->company_name }}
Authorised Signatory
|
Head Off.: 208, IInd Floor, Durga Chamber, RDC, Rajnagar, Ghaziabad - 201002 (U.P.)
|
Mob.: {{ $company->mob1 }}, {{ $company->mob2}}
|
E-mail: {{ $company->email }} Website: {{ $company->website }}
|