@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 {
Subject to Delhi Jurisdiction only

{{ $company->company_name }}

{{ $company->company_caption }}

Head Office: {{$company->address1}} Ph.: {{$company->mob1}} {{$company->mob2}} {{$company->mob3}}
TO PAY PAID/TO BE BILLED


GST.No
{{$company->gst_number}}
PAN.No {{ $company->pan_number }}
AT OWNER RISK
INSURANCE
The customer has stated that
he has not insured the consignment
OR
he had insured the consignment
Company
Policy No
Dated
Amount
Risk

Date: {{ formatDate($gr->gr_date) }}
C.N.No.: {{ $gr->gr_number }}
LORRY No: {{$gr->vehicle_number}}
Consignor.s Name and Address {{ $gr->consignor?$gr->consignor['party_name']:$gr->party_name }} {{$gr-> consignor_address}}
GST No. Consignor's ................................ {{ $gr->consignor_gst_number }}
Consignee Name and Address {{$gr->consignee?$gr->consignee['party_name']:$gr->consignee_name}} {{ $gr->consignee_address }}
GST No. Consignor's ................................ {{ $gr->consignee_gst_number }}
From
{{ $gr->source?$gr->source['station_name']:$gr->source_name }}
To
{{ $gr->destination?$gr->destination['station_name']:$gr->destination_name }}
@foreach($gr->gr_desc as $desc_item) @endforeach
Packages Said to Contain Weight Rate Amount to Pay/Paid Rs P.
Actual Charged
{{ $desc_item->pkg }} {{ $desc_item->material?$desc_item->material['material_name']:'' }} {{ $desc_item->material_weight }} {{ $desc_item->chg_qty }}Freight @php if ($gr->pay_mode != 'TBB') { $freight_parts = explode('.', $gr->freight); echo isset($freight_parts[0]) ? $freight_parts[0] : ''; } @endphp @php if ($gr->pay_mode != 'TBB') { $freight_parts = explode('.', $gr->freight); echo isset($freight_parts[1]) ? $freight_parts[1] : ''; } @endphp
Hamali
Risk Ch.
St.Ch.
Door Delivery Charges
INV.No
Date
Bulky Extra Bulky ...........
@if(isset($gr->gr_desc)) @foreach($gr->gr_desc as $desc_item) {{ $desc_item->invoice_number??'' }}     @endforeach @endif
@if(isset($gr->gr_desc)) @foreach($gr->gr_desc as $desc_item) {{ formatDate($desc_item->invoice_date) }} @endforeach @endif
Grand Total @php if ($gr->pay_mode != 'TBB') { $total_parts = explode('.', $gr->grand_total); echo isset($total_parts[0]) ? $total_parts[0] : ''; } @endphp @php if ($gr->pay_mode != 'TBB') { $total_parts = explode('.', $gr->grand_total); echo isset($total_parts[1]) ? $total_parts[1] : ''; } @endphp
customer satisfaction is our motto H.O. Copy For LG LOGISTICS