@extends('layout.app') @section('title', 'Create Freight Entry') @push('header_script') @endpush @section('content')
Back to List
{!! Form::open([ 'route' => ['freight-entry.store'], 'class' => 'needs-validation', 'method' => 'post', 'autocomplete' => 'off', 'id' => 'freightForm', ]) !!}
Basic Information
@if (!empty($lastLr)) Last LR No: {{ $lastLr }} @endif
{{ $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') {!! Form::select('paid_by', ['Transporter' => 'Transporter'], old('paid_by'), [ 'class' => 'form-control select2', 'id' => 'paid_by', 'required', ]) !!} @else {!! Form::select( 'paid_by', [ '' => '--Select--', 'Consignor' => 'Consignor', 'Consignee' => 'Consignee', ], old('paid_by'), ['class' => 'form-control select2', 'id' => 'paid_by', 'required'], ) !!} @endif
{{ $errors->first('paid_by') }}
--}}
{{ $errors->first('paid_by') }}
{{-- CONSIGNOR --}}
CONSIGNOR / SENDER
{!! Form::select('consignor_id', ['' => '--Select--'] + $party, old('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'), [ 'class' => 'form-control select2', 'id' => 'consignee_id', 'required', ]) !!}
{{ $errors->first('consignee_id') }}

{{-- TRUCK DETAILS --}}
Truck Details
{{ $errors->first('from_location') }}
{{ $errors->first('to_location') }}
{{ $errors->first('vehicle_id') }}
{{ $errors->first('employee_id') }}
{{ $errors->first('driver_name') }}
{{ $errors->first('driver_mobile') }}
{{ $errors->first('driver_license_no') }}
{{--
{{ $errors->first('driver_license_valid_upto') }}
--}}
{{-- GOODS DETAILS --}}
Material / Goods Details
{{-- Handled by JS logic below to preserve old values --}}
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'), ['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'), ['class' => 'form-control select2', 'id' => 'demurrage_after'], ) !!}
{{ $errors->first('demurrage_after') }}
{{-- Loading Date --}}
{{ $errors->first('loading_date') }}
{{-- Reporting Date --}}
{{ $errors->first('reporting_date') }}
Logistics Mode, Risk
{{-- MODE OF TRANSPORT --}}
{!! Form::select( 'transport_mode', [ 'Road' => 'By Road', 'Rail' => 'By Rail', 'Air' => 'By Air', 'Express' => 'Express', ], old('transport_mode', 'Road'), [ 'class' => 'form-control select2', 'id' => 'transport_mode', 'required', ], ) !!}
{{ $errors->first('transport_mode') }}
{{-- RISK TYPE --}}
{{ $errors->first('risk_type') }}

{{-- INSURANCE FIELDS --}}
Insurance
{{ $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
@if (($taxSettings['show_gst_in_freight'] ?? '') == 'yes') @if (($taxSettings['enable_gst_type'] ?? '') == 'rcm') @else
GST Amount
@endif @endif

Total
Round Off (+/-)
Grand Total

₹ {{ old('grand_total', '0.00') }}

{{--
Commission %
Commission Amount
--}}
Other Deduction
Net Payable (Truck Owner)
{!! Form::close() !!}
@endsection @push('footer_script') @include('common.modal.party') @include('common.modal.vehicle') @include('common.modal.driver') @include('common.modal.driver-mobile') @endpush