@extends('layout.app') @section('title', 'Freight Entry Details - ' . ($freightEntry->lr_no ?? '')) @push('header_script') @endpush @section('content')

LR #{{ $freightEntry->lr_no ?? 'N/A' }}

{{ $freightEntry->freight_type ?? 'Freight Entry' }} {{ $freightEntry->paid_by ?? 'To Pay' }}
Date: {{ $freightEntry->date ? date('d-m-Y', strtotime($freightEntry->date)) : '-' }}  |  {{ $freightEntry->from_location ?? 'Origin' }} → {{ $freightEntry->to_location ?? 'Destination' }}
Vehicle & Driver
Truck No.
{{ $freightEntry->vehicle->vehicle_no ?? 'N/A' }}
Type: {{ $freightEntry->vehicle_type ?? '-' }}

Driver
{{ $freightEntry->driver_name ?: ($freightEntry->employee->employee_name ?? 'N/A') }}
{{ $freightEntry->driver_mobile_no ?? ($freightEntry->employee->mobile_no ?? '-') }}
Consignor (Sender)
Consignor Name
{{ $freightEntry->consignor->party_name ?? 'N/A' }}
@if(!empty($freightEntry->consignor->gst_no))
GST: {{ $freightEntry->consignor->gst_no }}
@endif
{{ $freightEntry->consignor->address ?? $freightEntry->from_location }}
Consignee (Receiver)
Consignee Name
{{ $freightEntry->consignee->party_name ?? 'N/A' }}
@if(!empty($freightEntry->consignee->gst_no))
GST: {{ $freightEntry->consignee->gst_no }}
@endif
{{ $freightEntry->consignee->address ?? $freightEntry->to_location }}
Financials
Freight: ₹ {{ number_format($freightEntry->freight ?? 0, 2) }}
Charges: ₹ {{ number_format(($freightEntry->loading_charge ?? 0) + ($freightEntry->unloading_charge ?? 0) + ($freightEntry->other_charge ?? 0), 2) }}
GST ({{ $freightEntry->gst_percent ?? 0 }}%): ₹ {{ number_format($freightEntry->gst_amount ?? 0, 2) }}

Grand Total: ₹ {{ number_format($freightEntry->grand_total ?? 0, 2) }}
Upload New Receiving File
@csrf
Images (PNG, JPG) or PDF files.
Uploaded Documents {{ count($uploadReceiving ?? []) }} Records
@forelse($uploadReceiving ?? [] as $index => $item) @empty @endforelse
# Receiving Date Files / Documents Remarks Action
{{ $index + 1 }} {{ $item->upload_reciving_date ? date('d-m-Y', strtotime($item->upload_reciving_date)) : '-' }} @php $files = explode(',', $item->file); @endphp
@foreach($files as $fIndex => $filePath) @if(!empty(trim($filePath))) View File {{ $fIndex + 1 }} @endif @endforeach
{{ $item->remark ?: '-' }}
No receiving documents uploaded yet.
Courier / Dispatch Receiving Details
@csrf
Current Dispatch Status
@if(isset($sendReceiving) && $sendReceiving)
Courier Agency
{{ $sendReceiving->courier_agency }}
Docket No.
{{ $sendReceiving->docket_no }}
Dispatch Date
{{ date('d-m-Y', strtotime($sendReceiving->date)) }}
Remarks
{{ $sendReceiving->remark ?: 'No remarks entered.' }}
@else @endif
Material / Goods Description {{ count($freightEntry->items ?? []) }} Items
@forelse($freightEntry->items ?? [] as $iKey => $item) @empty @endforelse
# Material Name HSN Code Packing Type Charge Weight Rate Amount
{{ $iKey + 1 }} {{ $item->material_name ?: 'Goods' }} {{ $item->hsn_code ?: '-' }} {{ $item->packing_type ?: '-' }} {{ number_format($item->charge_weight ?? 0, 2) }} {{ $item->weight_unit ?: 'MT' }} ₹ {{ number_format($item->rate ?? 0, 2) }} ₹ {{ number_format($item->amount ?? 0, 2) }}
No goods items listed.
@endsection @push('footer_script') @endpush