@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 G.G.CARRIER @php $dynamic_fields = json_decode($gr->payment_dynamic_fields); @endphp @foreach($copies as $copy)

Subject to Jaipur Jurisdiction Only.     PAN:{{ $company->pan_number }}

{{ $company->company_name }}

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

1.I/We have carefully read the conditions of the company overleaf and declare that the particulars furnished above are correct.
2.The court in Jaipur city alone shall have jurisdiction in respect of any claim arising under this consignment of goods entrusted for transport.
3.Company is not responsible for the Rebooking after three months.

Remark : {{ $gr->remarks ?? '' }}

No. of
Pkgs.
Description(Said to Contain)

Weight

Actual  Charged

Rate Freight Remark
@foreach($gr->gr_desc as $desc_item) @endforeach
{{ $desc_item->pkg }} {{ $desc_item->material?$desc_item->material['material_name']:'' }} {{ $desc_item->material_weight ?? '' }}  {{ $desc_item->chg_qty ?? '' }}

{{ $gr['gr_desc'][0]->rate ?? '' }}

S. Charge 

L. Charge 

Risk Charge 

Crain Charge 

Cartage 

Bilty 

Kanta Charge 

D.D. Charge 

Total 

GST 

G.TOTAL 

{{$gr['freight'] ?? '' }} 

{{ $dynamic_fields->s_charges ?? 0 }} 

{{ $dynamic_fields->l_charges ?? 0 }} 

{{ $dynamic_fields->risk_charge ?? 0 }} 

{{ $dynamic_fields->crain ?? 0 }} 

{{ $dynamic_fields->cartage ?? 0 }} 

{{ $gr['gr_chg'] ?? '' }} 

{{ $dynamic_fields->kanta ?? 0 }} 

{{ $dynamic_fields->dd_chg ?? 0 }} 

{{ $gr['total_without_gst'] ?? '' }} 

{{ ($gr['igst_amount'] ?? 0) + ($gr['cgst_amount'] ?? 0) + ($gr['sgst_amount'] ?? 0) }} 

{{$gr['grand_total'] ?? ''}} 

@php $pay_mode = strtoupper(trim($gr->pay_mode)); @endphp

 

@if ($pay_mode == "TO PAY")

T

 

o

 

 

P

 

A

 

Y

@elseif ($pay_mode == "TBB")

T

 

B

 

B

@elseif ($pay_mode == "PAID")

P

 

A

 

I

 

D

@endif

 Delivery At: {{$gr->delivery_pt ?? ''}}

 I/We the sender of goods declare that statement above is quite correct value of the same is

  the original invoice is enclosed customer is responsible for illegal goods and way octroi etc.

For {{ $company->company_name ?? '' }}

 

 

Booking Incharge

   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
@endforeach