@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 {{ $ls->ls_number }}

{{ $company->company_name }}

{{ $company->address1 }}

MOBILE : {{ $company->mob1 }}; {{ $company->mob2 }}; {{ $company->mob3 }}; 90096-70518

Email: {{ $company->email }}; GSTIN: {{ $company->gst_number }}

LOADING SLIP
To, {{ $ls->acc_party['account_name'] }}, {{ printTillSpecificLength($party_string, 83) }}

Dear Sir,

Please transfer advance payment to the bank account.

Ls Number: {{ $ls->ls_number }}
Date: {{ formatDate($ls->ls_date) }}
Truck Number: {{ $ls->vehicle?$ls->vehicle['vehicle_number']:'' }}
From: {{ $ls->source?$ls->source['station_name']:'' }}
To: {{ $ls->destination?$ls->destination['station_name']:'' }}
Material: {{ $ls->material_name }}
Weight: {{ (int) $ls->material_weight }} MT
Freight: Rs {{ $ls->freight }}
Advance: {{ $ls->advance_amt }}
Balance: Rs {{ $ls->balance_receivable }}
DETENTION: NO DETENTION.

Bank details are mentioned below

{{ $company->company_name }}

A/c no. {{$company->account_number}}

IFSC: {{$company->ifsc}}

Branch: {{$company->bank_branch}}

Thank you

{{ $company->company_name }}

NOTE:

1.

We are not responsible for any unforeseen circumstances such as fire, breakage, leakage, theft, shortage of goods during transportation, this is the liability of the Goods Owner/Insurance company.

2.

We only act as a broker/commission agent in supply of trucks to the consignor. We pay advance freight payment to Fleetowner/Driver after loading of truck on behalf consignor with the promise that the advance payment will be credited in our bank account by consignor in one working day & balance payment against Acknowledge/Delivery receipt to be transferred into our bank account within seven working days.