@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 {{ $gr->gr_number }} @php $dynamic_fields = json_decode($gr->payment_dynamic_fields); @endphp @foreach($copies as $copy)
_img
CONSIGNMENT NOTE
All disputes subject to Gurugram jurisdiction

{{ $company->company_name }}

Office Add.: {{$company->address1}}

Registered Add.: {{$company->address2}} Contact:{{ $company->mob1 }}, Email:{{ $company->email }}

Udhyam : {{ $company->cin }}

The Company is not responsible for Leakage Breakage & Damage of any Liquid items
Vehicle No. {{ $gr->vehicle_number }}
CAUTION
This Consigment will not be detained, diverted, rerouted or re-bookes without Consignee Bank written permission.
In case consignment is seized and any penalty is imposed due to wrong declaration of goods, the party will be responsible themselves.
INSURANCE AT OWNER'S RISK
The Customer has stated that:-
he has not insured the consignment
OR
he has insured the consignment
Way Bill No
@foreach($gr->eway_details as $eway) {{ isset($eway->eway_number) ? $eway->eway_number : '' }} , @endforeach Payment Term : {{ $gr->acc_party->party->payment_term }}
No {{ $gr->gr_number }}
Date {{ formatDate($gr->gr_date) }}
FROM {{isset($gr['source']) ? $gr['source']->station_name :''}}
TO {{isset($gr['destination']) ? $gr['destination']->station_name:'' }}
Consignor
{{isset($gr['consignor']) ? $gr['consignor']->party_name:'' }}
{{isset($gr['consignor']) ? $gr['consignor']->address1 :''}} , {{isset($gr['consignor']) ? $gr['consignor']->city :''}} , {{isset($gr['consignor']) ? $gr['consignor']->state :''}} , {{isset($gr['consignor']) ? $gr['consignor']->pincode :''}}
GSTIN
{{isset($gr['consignor']) ? $gr['consignor']->gst_number:'' }}
Consignee
{{isset($gr['consignee']) ? $gr['consignee']->party_name:'' }}
{{ isset($gr['consignee']) ? $gr['consignee']->address1:'' }}, {{isset($gr['consignee']) ? $gr['consignee']->city :''}} , {{isset($gr['consignee']) ? $gr['consignee']->state :''}}
GSTIN
{{isset($gr['consignee']) ? $gr['consignee']->gst_number:'' }}
@php $serial1 = 0; @endphp @foreach($gr->gr_desc as $desc_item) @php $serial1++; @endphp @endforeach
No. of Article DESCRIPTION (Said to contain) Actual Weight Charged Weight REMARKS
{{$gr->total_pkg}} {{isset($desc_item['material']) ? $desc_item['material']->material_name : '' }} {{$gr->total_material_weight}} {{$gr->total_chg_qty}} {{$gr->remarks}}
{{$gr->p_marka}} Freight @if($gr->pay_mode != 'TBB') {{ $gr->freight }} @endif
Hamali
CN Charge
Other Charge {{$gr->pay_mode == 'TBB' && isset(json_decode($gr->payment_dynamic_fields)->other) ? json_decode($gr->payment_dynamic_fields)->other : ''}}
Value
{{ isset($gr['gr_desc'][0]) ? $gr['gr_desc'][0]->invoice_value : '' }}
GST
Invoice No. & Date
{{ isset($gr['gr_desc'][0]) ? $gr['gr_desc'][0]->invoice_number : '' }} , {{ isset($gr['gr_desc'][0]) ? formatDate($gr['gr_desc'][0]->invoice_date) : '' }}
GRAND TOTAL @if($gr->pay_mode != 'TBB') {{ $gr->grand_total }} @endif
GSTIN: {{$company->gst_number}} For {{$company->company_name}}

Delivery timeline - as per the e-way bill

Any break down in the vehicle will be notified

List of Services we rendered
#Full truck/container/trailer/tanker load service from Delhi Ncr to pan India And pan India to Delhi Ncr.
Signature of Booking Officer
@if ($company->company_name == 'BHAGYALAKSHMI TRANSPORT')
_img
@else
_img
@endif
@endforeach