@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); } } $copies = isset($_GET['copies'])?$_GET['copies']:'consignor'; // BREAK $copies INTO ARRAY $copies = explode(',', $copies); @endphp Document
{{-- --}}
Challan Receipt

{{ $company->company_name }}

{{ $company->address1 }} {{ $company->mob1 }}
GSTIN No.: {{ $company->gst_number }}

No. : {{ $challan_receipt->challan_rec_number }}

Truck No. : {{ $challan_receipt->vehicle ? $challan_receipt->vehicle['vehicle_number'] : '' }}

Challan No : {{ $challan_receipt->challan ? $challan_receipt->challan['challan_number'] : '' }}

Date : {{ formatDate($challan_receipt->arrival_date) }}

Total Packages : {{ $challan_receipt->total_unloaded_pkg }}

Received Packages : {{ $challan_receipt->total_unloaded_pkg }}

From : {{ $challan_receipt->arrival_from_branch }}

Driver Name : {{ $challan_receipt->driver?$challan_receipt->driver['emp_name']:'' }}

# Rs. Paid
T.F. 1000 0
D.C.& L 1000 0
Total 1000 0
Paid to Driver 1000 0
Balance 4000 0

For {{ $company->company_name }}







Authorised Signature