@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 shiv shakti road lines @php $dynamic_fields = json_decode($gr->payment_dynamic_fields); @endphp @foreach($copies as $copy)
GSTIN: {{$company->gst_number}} All Subject to Allahabad Jurisdiction. SAP Vendor Code: 2901952
_img {{ $company->company_name }}
Mob.: {{ $company->mob1}}
{{ $company->mob2}}, {{ $company->mob3}}
{{ $company->address1 }}
Head Office: {{$company->address2}}
Consignor: @php $consignee_string = $gr->consignor?$gr->consignor['party_name']:$gr->consignee_name; @endphp {{ printTillSpecificLength($consignee_string, 50) }}
Unit Sidhi Cement Works, Village Majhgawan
P.O. Bharatpur, District - Sidhi (M.P.) 486776
Consignee
{{printTillSpecificLength($consignee_name, 50)}}
Ph. No.
{{$gr->consignor_phone_number}}
Name of Truck owner
Name of Driver
{{$gr->driver_name}}
L. C. No
{{$gr->driver['license_number']?? ''}}
Receiver's Signature with Seal
{{$gr->gr_desc['invoice_value']?? ''}}
Order No. {{$gr->do_number}}
Invoice No. @if(isset($gr->gr_desc)) @foreach($gr->gr_desc as $desc_item) {{$desc_item->invoice_number??''}} @endforeach @endif
Date : {{ $gr->gr_desc[0]['invoice_date'] ?? '' }}
D. I. No. {{$gr->po_no}}
D. I. Date
Grade
E-way {{ $gr->eway_details['eway_number'] ?? '' }}
Bill No.
Value of
Goods : {{$gr->total_invoice_value}}
L. R. No. {{$gr->gr_number}}
Pan No: {{$company->pan_number}}
Date : {{ formatDate($gr->gr_date) }}
Truck No. {{$gr->vehicle?$gr->vehicle['vehicle_number']:''}}
BAGHWAR (SIDHI)
To : {{$gr->destination?$gr->destination['station_name']:''}}
Weight: {{$gr->total_material_weight}} Bags: {{$gr->gr_desc && count($gr->gr_desc) > 0 ?$gr->gr_desc[0]['pkg']:''}}
Rate: {{$gr->gr_desc && count($gr->gr_desc) > 0 ? $gr->gr_desc[0]['rate'] : ''}} Freight: {{$gr->freight}}
Cash/Advance
RTGS Advance
Diesel
Pump Name
We have Registered under Forwarding Charges our GSTIN: 09 AMYPK2001RIZE
Truck Owner/Driver Shiv Shakti Road Lines
@endforeach