@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 Jaipur Jurisdiction Only. PAN:{{ $company->pan_number }}
Head Office: {{ $company->address1 }} Admin Office:Opp. Agarwal College, Agra Road, Jaipur Tel.0141-2561397, 0141-2566155 E-mail:{{ $company->email }}, sales@ggcarrier.com Website:{{ $company->website }} GSTIN:{{ $gr['branch']->gst_number ?? '' }}, GSTIN[for e-way Bill]: {{ $gr['branch']->gst_number ?? '' }} |
G.R.No.:{{ $gr->gr_number ?? '' }} Date: {{ formatDate($gr->gr_date) ?? '' }} From: {{$gr['source']->station_name ?? '' }} Contact : {{$gr['branch']->mob_number ?? ''}} To: {{$gr['destination']->station_name ?? '' }} |
---|
CONSIGNOR : {{ $gr['consignor']->party_name ?? '' }} Address: {{ $gr['consignor']->address1 ?? '' }} GSTIN: {{ $gr['consignor']->gst_number ?? '' }} Phone No.: {{ $gr['consignor']->mob_number ?? '' }} |
CONSIGNEE : {{ $gr['consignee']->party_name ?? '' }} Address: {{ $gr['consignee']->address1 ?? '' }} GSTIN: {{ $gr['consignee']->gst_number ?? '' }} Phone No.: {{ $gr['consignee']->mob_number ?? '' }} |
Delivery Address @php $deliveryAddress = ""; $deliveryContact = ""; // Check if destination exists and has a related branch via branch_station if(isset($gr['destination']) && $gr['destination']) { // Find the branch where branch_station matches destination_id $destinationBranch = \App\Models\Master\Branch::where('branch_station', $gr['destination']->id)->first(); if($destinationBranch) { // Format address from branch information $deliveryAddress = $destinationBranch->address1; if($destinationBranch->address2) { $deliveryAddress .= ", " . $destinationBranch->address2; } if($destinationBranch->city) { $deliveryAddress .= ", " . $destinationBranch->city; } // Get state and pincode $stateInfo = $destinationBranch->state ?? ''; $pincodeInfo = $destinationBranch->pincode ?? ''; // Contact information $deliveryContact = $destinationBranch->mob_number ?? $destinationBranch->tele_number ?? ''; } else { // Fallback to the destination station info $deliveryAddress = $gr['destination']->station_name; $stateInfo = $gr['destination']->state ?? ''; $pincodeInfo = $gr['destination']->pincode ?? ''; } } @endphp{{ $deliveryAddress }} {{ $stateInfo }} {{ $pincodeInfo ? '- '.$pincodeInfo : '' }} Contact : {{ $deliveryContact ?: ($destinationBranch->contact_person ?? '') }} NOTICE
Remark : {{ $gr->remarks ?? '' }} |
|
P.M.: {{$gr->p_marka ?? ''}} Bill No.: @foreach($gr->gr_desc as $desc_item) {{ $desc_item->invoice_number }} , @endforeach Value: {{ $gr['gr_desc'][0]->invoice_value ?? ''}} E-way Bill No.: @if(isset($gr->eway_details) && count($gr->eway_details) > 0) @foreach($gr->eway_details as $eway) {{ $eway['eway_number'] }} @endforeach @endif HSN Code in Invoice: GST DEPOSIT BY SERVICE RECIPIENT
Billed To : Freight Mode : {{ $gr->pay_mode ?? '' }}
|
{{ $copy }} COPY |
---|