@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"; } @endphp

{{ $company->company_name }}

{{ $company->address1 }}

Mob.:    {{ $company->mob1 }}    {{ $company->mob2 }} {{ $company->mob3 }} /    Email : {{ $company->email }}

PAN No : {{ $company->pan_number }} , GSTIN No:- {{ $company->gst_number }}

@php $copy_ch = json_decode(json_encode($challan)); @endphp
Vendor Name:- {{ $copy_ch->lorry_hire_from ? $copy_ch->lorry_hire_from->account_name : '' }} Challan No:- {{ $challan->challan_number }} Date:- {{ formatDate($challan->challan_date) }}
From :- {{ $challan['source']['station_name']}} To :- {{$challan['destination']['station_name'] }} Lorry No:- {{ $challan->vehicle ? $challan->vehicle['vehicle_number']: '' }}
@foreach($challan->challan_desc as $index => $desc_item) @endforeach
Sr. No. Gr No. Consignor Consignee Contents Weight In Kgs. Station Amount
{{ $index + 1 }} {{ $desc_item['gr_number'] }} {{ $desc_item['consignor'] }} {{ $desc_item['consignee'] }} {{ $desc_item['material'] }} {{ $challan->lh_total_wt }} MT {{ $desc_item['destination'] }} {{ $challan->lh_net_freight }}
Owner's Name:- {{ $challan->vehicle ? $challan->vehicle['party']?$challan->vehicle['party']['party_name']:'' : '' }}
Address & Contact Details:- {{ $challan->vehicle ? $challan->vehicle['party']?$challan->vehicle['party']['address1']:'' :'' }}
Telephone:- {{$challan->vehicle ? $challan->vehicle['party']?$challan->vehicle['party']['tele_number']:'' :'' }}
Driver's Name:- {{ $challan->driver?$challan->driver['emp_name']:''}} D.L.No:- {{ $challan->driver?$challan->driver['license_number']:''}}
Address:- {{ $challan->driver?$challan->driver['address']:''}} Telephone No:- {{ $challan->driver?$challan->driver['contact_number']:''}}
Engine No:- {{ $challan->vehicle?$challan->vehicle['engine_number']:''}} Vehicle Type:- {{ $challan->vehicle?$challan->vehicle['vehicle_type']:''}}
 

TERMS & CONDITION

1. Goods located in good conditions.

2. All the papers related to goods handed over to the driver.

3. The trucks should reach the unloading point with in 11 am, otherwise no detention will be paid, if the truck detained.

4. The owner lorry driver, guarantor and broker jointly and several undertake to deliver the goods at the destinations in accordance to the company's challan cum manifest in proper order and condition.

5. In case of any loss and / or damage to the consignment entrusted by the company for the carrige the parties here above mentioned undertake to inform the company within 12 hour of such loss in writing and shall be liable to compensate the company of such loss and/or damage fothwith
The parties here above mentioned shall be entitled to claim freight of goods carried by them only after delivery of the good in full and in proper manner and sound condition.

6. Goods will be delivered not later than .....................Days / Date, failing Rs. 500/- will be deducted per day.

7. Signed challan to be handed over to our branch officer's/ or loading branch with 15 days of delivery, failing which Rs. 200/- per week will be deducted, Transhipment penalty Rs. 5000/- will be recovered.


Freight Break Up
Particulars Amt
Vehicle Hire Cost {{ $challan->lh_freight }}
Loading Charge {{ $challan->loading_labour }}
Loading Detention {{ $challan->loading_detention }}
Point Charges {{ $challan->lh_extra_point }}
Unloading Charge {{ $challan->unloading_labour }}
Unloading Detention {{ $challan->unloading_detention }}
Total Hire Cost {{ $challan->lh_net_freight }}
Advance {{ $challan->lh_advance }}
TDS {{ $challan->lh_tds }}
Balance {{ $challan->lh_balance }}

UNDERTAKING

I............................. Driver / Owner of above particular vehicle to hereby confirm having received in proper condition the goods detailed in above noted Lorry Challan for safe Carriage to your destination officer at my risk and liability at the rate fixed. I agree and undertake that (a) goods will be loaded/unloaded and delivered as per your loading / unloading office's instructions and your rules and regulation (b) No other goods will be loaded into or transshipped from my above vehicle enroute No unloading will be effected on Sunday Holidays (d) if any damage, shortage,theft contract for delivery to destination station (f) I have understood the condition or carriage of goods upto destination and shall arrange loading and unloadind also (g) Entire contents have been read over and explained to me in my own language, Vehicle Owner, Driver Guarantor & broker documents and particulars furnished are true.




Signature of Driver / Lorry Driver / Guranter & brokers

Sinature of Despatch Clerk