@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
@if (optional($taxSettings)->enable_gst == 'yes' && optional($taxSettings)->enable_gst_type == 'fcm') {{-- FCM case: Only Transporter --}} {!! Form::select('paid_by', ['Transporter' => 'Transporter'], old('paid_by', $freightEntry->paid_by), [ 'class' => 'form-control select2', 'id' => 'paid_by', 'required', ]) !!} @else {{-- Normal case --}} {!! Form::select( 'paid_by', [ '' => '--Select--', 'Consignor' => 'Consignor', 'Consignee' => 'Consignee', 'Transporter' => 'Transporter', ], old('paid_by', $freightEntry->paid_by), ['class' => 'form-control select2', 'id' => 'paid_by', 'required'], ) !!} @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') }}
{{ $errors->first('employee_id') }}
employee_id ? 'checked' : '' }}>
{{ $errors->first('driver_name') }}
{{ $errors->first('driver_mobile_no') }}
{{ $errors->first('driver_license_no') }}
{{ $errors->first('driver_license_valid_upto') }}
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 --}}
risk_type) == 'Owner' ? 'checked' : '' }}>
risk_type) == 'Carrier' ? 'checked' : '' }}>
{{ $errors->first('risk_type') }}

{{-- HAS INSURANCE --}}
has_insurance) ? 'checked' : '' }}>
{{-- INSURANCE FIELDS --}}
{{ $errors->first('insurance_company') }}
{{ $errors->first('policy_number') }}
{{ $errors->first('insured_amount') }}
{{-- 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') }}
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') }}
{{-- 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' : '' }}>
GST Amount
{{--
GST Amount
--}}
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 --}} @endpush