@extends('layout.app') @section('title', 'Edit Freight Entry') @push('header_script') @endpush @section('content')
Back to List
{!! Form::model($freightEntry, [ 'route' => ['freight-entry.update', $freightEntry->id], 'class' => 'needs-validation', 'method' => 'PUT', 'autocomplete' => 'off', 'id' => 'freightForm', ]) !!}
Basic Information
{{ $errors->first('lr_no') }}
{{ $errors->first('date') }}
@php $taxSettings = \App\Http\Helpers\CommonHelper::checkTaxSetting('enable_gst'); @endphp
paid_by) == 'Consignor' ? 'checked' : '' }} required> paid_by) == 'Consignee' ? 'checked' : '' }}> @if (optional($taxSettings)->enable_gst == 'yes' && optional($taxSettings)->enable_gst_type == 'fcm') paid_by) == 'Transporter' ? 'checked' : '' }}> @endif
{{ $errors->first('paid_by') }}
payment_status) == 'To Pay' ? 'checked' : '' }}> payment_status) == 'Paid' ? 'checked' : '' }}> payment_status) == 'TBB' ? 'checked' : '' }}>
{{-- CONSIGNOR --}}
CONSIGNOR / SENDER
{!! Form::select( 'consignor_id', ['' => '--Select--'] + $party, old('consignor_id', $freightEntry->consignor_id), [ 'class' => 'form-control select2', 'id' => 'consignor_id', 'required', ], ) !!}
{{ $errors->first('consignor_id') }}
{{-- CONSIGNEE --}}
CONSIGNEE / RECEIVER
{!! Form::select( 'consignee_id', ['' => '--Select--'] + $party, old('consignee_id', $freightEntry->consignee_id), [ 'class' => 'form-control select2', 'id' => 'consignee_id', 'required', ], ) !!}
{{ $errors->first('consignee_id') }}

{{-- TRUCK DETAILS --}}
Truck Details
{{ $errors->first('vehicle_id') }}
@php $isCompanyDriver = !empty($freightEntry->employee_id); $showDriverBox = $isCompanyDriver || !empty($freightEntry->driver_name); @endphp
{{ $errors->first('employee_id') }}
{{--
Leave dropdown empty for external driver.
--}}
{{-- DRIVER NAME --}}
{{ $errors->first('driver_name') }}
{{-- MOBILE --}}
{{ $errors->first('driver_mobile_no') }}
{{-- LICENSE --}}
{{ $errors->first('driver_license_no') }}
{{-- VALID DATE --}} {{--
{{ $errors->first('driver_license_valid_upto') }}
--}}
{{-- GOODS DETAILS --}}
Material / Goods Details
@if ($freightEntry->items && $freightEntry->items->count() > 0) @foreach ($freightEntry->items as $index => $item) @endforeach @else @endif
Material Name / Desc HSN Code Packing Type No. of Units / Actual Weight Unit Charge Weight Rate Freight Amount Act
Total: 0.00 0.00 0.00
{{-- LEFT COLUMN: Invoice, Risk, Demurrage, Remarks --}}
E-Way Bill & Invoice Details
{{-- Invoice No --}}
{{ $errors->first('invoice_no') }}
{{-- Invoice Date --}}
{{ $errors->first('invoice_date') }}
{{-- Invoice Amount --}}
{{ $errors->first('invoice_amount') }}
{{-- E-Way Bill No --}}
{{ $errors->first('eway_bil_no') }}
{{-- E-Way Bill Validity --}}
{{ $errors->first('eway_bil_validity') }}
{{-- E-Way Bill Generated On --}}
{{ $errors->first('eway_bil_generated_on') }}
Demurrage Charge
{{-- Demurrage Charge --}}
{{ $errors->first('demurrage_charge') }}
{{-- Demurrage Per --}}
{!! Form::select( 'demurrage_per', ['' => '--Select--', 'Hour' => 'Per Hour', 'Day' => 'Per Day'], old('demurrage_per', $freightEntry->demurrage_per), ['class' => 'form-control select2', 'id' => 'demurrage_per'], ) !!}
{{ $errors->first('demurrage_per') }}
{{-- Applicable After --}}
{!! Form::select( 'demurrage_after', [ '' => '--Select--', '1 Hour' => '1 Hour', '2 Hour' => '2 Hour', '4 Hour' => '4 Hour', '8 Hour' => '8 Hour', '1 Day' => '1 Day', '2 Days' => '2 Days', ], old('demurrage_after', $freightEntry->demurrage_after), ['class' => 'form-control select2', 'id' => 'demurrage_after'], ) !!}
{{ $errors->first('demurrage_after') }}
{{-- Loading Date --}}
{{ $errors->first('loading_date') }}
{{-- Reporting Date --}}
{{ $errors->first('reporting_date') }}
Logistics, Risk & Insurance
{{-- MODE OF TRANSPORT --}}
{!! Form::select( 'transport_mode', [ '' => '--Select--', 'Road' => 'By Road', 'Rail' => 'By Rail', 'Air' => 'By Air', 'Express' => 'Express', ], old('transport_mode', $freightEntry->transport_mode), ['class' => 'form-control select2', 'id' => 'transport_mode'], ) !!}
{{ $errors->first('transport_mode') }}
{{-- RISK TYPE --}} @php $isLocked = !empty($freightEntry->risk_type); @endphp
{{-- Hidden input so disabled radios still submit --}} @if ($isLocked) @endif
risk_type) == 'Owner' ? 'checked' : '' }}>
risk_type) == 'Carrier' ? 'checked' : '' }}>
{{ $errors->first('risk_type') }}

{{-- INSURANCE FIELDS --}}
{{ $errors->first('insurance_company') }}
{{ $errors->first('policy_number') }}
{{ $errors->first('insured_amount') }}
{{ $errors->first('policy_date') }}
{{-- RIGHT COLUMN: Freight Calculation & Submit --}}
Freight Calculation
Basic Freight
Loading Charge
Unloading Charge
Holding Charge
Vasuli
Kata Charge
Challan / Permission
Overload
Other Charges

Sub Total
gst_pay_by) == 'Consignor' ? 'checked' : '' }}> gst_pay_by) == 'Consignee' ? 'checked' : '' }}> gst_pay_by) == 'Transporter' ? 'checked' : '' }}> gst_pay_by) == 'Exempt' ? 'checked' : '' }}>
@if (($taxSettings['show_gst_in_freight'] ?? '') == 'yes') @if (($taxSettings['enable_gst_type'] ?? '') == 'rcm') @else
GST Amount
{{--
GST Amount
--}} @endif @endif
Total
Round Off (+/-)
Grand Total

₹ 0.00

{{--
Commission %
Commission Amount
--}}
Other Deduction
Net Payable (Truck Owner)
hide_freight) ? 'checked' : '' }}>
{!! Form::close() !!}
@endsection @push('footer_script') @include('common.modal.party') @include('common.modal.vehicle') {{-- @include('common.modal.driver') --}} @include('common.modal.driver-mobile') {{-- Party Details Auto Fill --}} {{-- -----------------DRIVER SELECT READ ONLY-------------------- --}} @endpush