@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 shital roadlines @php $dynamic_fields = json_decode($gr->payment_dynamic_fields); @endphp @foreach($copies as $copy)

SERVICES :

CHAKAN,PUNE

PITHAMPUR

PANTNAGAR

BANGLORE

|| Shree ||

{{ $company->company_name }}

{{ $company->company_address1 }}

Email- {{ $company->email }}

Waluj M: {{ $company->mob1 }}

Chakan M: {{ $company->mob2 }}

Pantnager M: {{ $company->mob3 }}

LR No. {{ $gr->gr_number }}

From

{{ $gr->source?$gr->source['station_name']:$gr->source_name }}

To

{{ $gr->destination?$gr->destination['station_name']:$gr->destination_name }}

Veh. No.

{{ $gr->vehicle?$gr->vehicle['vehicle_number']:'' }}

Load

Date

{{ formatDate($gr->gr_date) }}

Consigneer Name :
& Address
{{ printTillSpecificLength($consignor_string, 150) }} Consignee Name &
& Address
{{ printTillSpecificLength($consignee_string, 150) }}
Qty. Freight & Other Charges Collection :
Packing {{ isset($gr->gr_desc[0]) ? $gr->gr_desc[0]->packing_method : ''}} inv.No. Item Code Qty. Freight {{$gr->freight}} Delivery : {{$gr->delivery_pt}}
Actual Wt. {{ isset($gr->gr_desc[0]) ? $gr->gr_desc[0]->material_weight : ''}} {{ isset($gr->gr_desc[0])?$gr->gr_desc[0]->invoice_number:'' }} {{ isset($gr->gr_desc[0]) ? $gr->gr_desc[0]->pkg : ''}} Hamali ORDER BY :
Charged Wt. {{ isset($gr->gr_desc[0]) ? $gr->gr_desc[0]->chg_qty : ''}} ST Charges Use For Acknowledgement-
CC Charges
DD Charges
Value {{ isset($gr->gr_desc[0]) ? $gr->gr_desc[0]->invoice_value : ''}} Logistic Charges
Pay Type {{$gr->pay_mode}}
TOTAL RS. {{$gr->grand_total}}
GSTIN : {{ $company->gst_number }} * WE ARE NOT RESPONSIBLE FOR ANY LEAKGES & BREAKGE * GOODS CARRIED AT OWNERS RISK ONLY * For {{ $company->company_name }}
PAN NO. {{ $company->pan_number }} (P.T.O.)
@endforeach