@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 = $_GET['copies']; // BREAK $copies INTO ARRAY $copies = explode(',', $copies); @endphp {{ $gr->gr_number }} @php $dynamic_fields = json_decode($gr->payment_dynamic_fields); @endphp @foreach($copies as $copy)
LORRY RECEIPT {{ $copy }} COPY

B.T.C {{ $company->company_name }}

ALL DISPUTES ARE {{ $company->jurisdiction }}

OFFICE ADD : {{ $company->address1 }}

CONTACT : {{ $company->mob1 }} , {{ $company->mob2 }}

EMAIL : {{ $company->email }}

PAN NO : {{ $company->pan_number }}

GSTIN : {{ $company->gst_number }}

STATE : {{ $company->state }}

STATE CODE : {{ substr($company->gst_number, 0,2) }}

CONSIGNEES : {{ $gr->consignee?$gr->consignee['party_name']:$gr->consignee_name }}

GSTIN : {{ $gr->consignee_gst_number }}

STATE : {{ $gr->consignee?$gr->consignee['state']:'' }}

STATE CODE : {{ substr($gr->consignee_gst_number, 0,2) }}

P.O.NO :

LR NO : {{ $gr->gr_number }}

LR DATE : {{ formatDate($gr->gr_date) }}

SHIPMENT NO : {{ $gr->shipment_number }}

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

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

Freight To Be Billed To

{{ $gr->acc_party['account_name'] }}

{{ $gr->acc_party['party']['address1'] }}

GSTIN : {{ $gr->acc_party['party']['gst_number'] }}

STATE : {{ $gr->acc_party['party']['state'] }}

STATE CODE : {{ substr($gr->acc_party['party']['gst_number'],0,2) }}

PAN No : {{ $gr->acc_party['party']['pan_number'] }}

CONSIGNOR NAME & ADDRESS :

{{ $gr->consignor?$gr->consignor['party_name']:$gr->consignor_name }}
{{ printTillSpecificLength($gr->consignor_address,100) }}

CONSIGNEE'S NAME / DELIVERY ADDRESS :
{{ $gr->consignee?$gr->consignee['party_name']:$gr->consignee_name }}
{{ printTillSpecificLength($gr->consignee_address,100) }}

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

TRUCK TYPE : {{ $gr->vehicle?$gr->vehicle['vehicle_type']:'' }}

 

ROUTE :

LORRY TARE WT NET WT GROSS WT

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

NAME OF THIS STATE :

NOTICE

The Consignment Covered by this Lorry Reciept shall be stored at the destination under the control of the Transport Operator and shall be delivered to or to the order of the consignee Bank whose name is mentioned in the Lorry Receipt. It will under no circumstances be delivered to anyone without the written authority from the consignee copy or on a seperate Letter of Authority.

AT CARRIER'S RISK INSURANCE

[ ] The customer has started that He has not insured the Consignment

[ ] He has insured the Consignment

Company________________________

Policy No________________Date______________

Amount________________ Risk_________

CAUTION

The Consignment will not be detained diverted re-routed or re-booked without or Consignee Bank's written permission will be delivered at the destination.

TOWARDS FREIGHT AND TRANSPORTATION CHARGES

DEMURRAGE CHARGES

Demurrage Chargeable after_________

Days from today @ Rs_________

Per day per Qty. on weight charged _________

DEMURRAGE CHARGES

It is intended to use the CONSIGNEE COPY of this set for the purpose of borrowing from the Consignee's Bank.

@foreach($gr->gr_desc as $desc_item) @endforeach
PACKAGES DESCRIPTION OF PRODUCT NET WT (MT) GROSS WT (MT) Invoice Value Batch
{{ $desc_item->pkg }} {{ $desc_item->packing_method }} -of- {{ $desc_item->material['material_name'] }} {{ $desc_item->material_weight }} {{ $desc_item->chg_qty }} {{ $desc_item->invoice_value?$desc_item->invoice_value:'As Per Invoice' }} {{ $desc_item->nos }}
{{ $gr->total_pkg }} {{ $gr->total_material_weight }} {{ $gr->total_chg_qty }}
CUSTOMER ACKNOWLEDGEMENT DETAILS
RECEIVED WT DATE SEAL & SIGN

INVC NO : @foreach($gr->gr_desc as $desc_item) {{ $desc_item->invoice_number }}  , @endforeach

INVC DATE : @foreach($gr->gr_desc as $desc_item) {{ formatDate($desc_item->invoice_date) }}  , @endforeach

Eway NO : @if(isset($gr->eway_details)) @foreach($gr->eway_details as $eway) {{ $eway['eway_number'] }}  , @endforeach @endif

DELIVERY / PACK SLIP NO :

 

GST PAID BY

GR TYPE

STAMP & SIGNATURE OF THE TRANSPORTER




AUTHORISED SIGNATORY / SUPERVISOR

CUSTOMER REMARKS

@endforeach