@extends('layout.app') @section('title', 'Edit Freight Entry') @push('header_script') @endpush @section('content')
@if ($freightEntryParty) {!! Form::open([ 'route' => ['freight-entry.update', $freightEntryParty->id], 'onsubmit' => 'BtnSubmit.disabled = true', 'class' => 'row g-3 needs-validation', 'method' => 'put', 'autocomplete' => 'off', ]) !!}
{!! Form::select('party_vehicle_id', ['' => '--Select--'] + $vehicle, $freightEntryParty->vehicle_id, [ 'class' => 'form-control select2', 'id' => 'party_vehicle_id', 'required', ]) !!}
{{ $errors->first('party_vehicle_id') }}
{!! Form::select( 'party_branch_id', $branchCount > 1 ? ['' => '--Select--'] + $branch : [] + $branch, $freightEntryParty->branch_id, ['class' => 'form-control select2', 'id' => 'party_branch_id'], ) !!}
{{ $errors->first('party_branch_id') }}
{!! Form::select('party_employee_id', ['' => '--Select--'] + $employee, $freightEntryParty->employee_id, [ 'class' => 'form-control select2', 'id' => 'party_employee_id', ]) !!}
{{ $errors->first('party_employee_id') }}
{{--
{{ $errors->first('party_date') }}
--}}
{{ $errors->first('party_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('party_paid_by', ['Transporter' => 'Transporter'], $freightEntryParty->paid_by, [ 'class' => 'form-control select2', 'id' => 'party_paid_by', 'required', ]) !!}
{{ $errors->first('party_paid_by') }}
@else
{!! Form::select( 'party_paid_by', ['' => '--Select--', 'Consignor' => 'Consignor', 'Consignee' => 'Consignee'], $freightEntryParty->paid_by, ['class' => 'form-control select2', 'id' => 'party_paid_by', 'required'], ) !!}
{{ $errors->first('party_paid_by') }}
@endif
{{ $errors->first('party_gr_no') }}
FREIGHT
{!! Form::select('consignor_id', ['' => '--Select--'] + $party, $freightEntryParty->consignor_id, [ 'class' => 'form-control select2', 'id' => 'party_consignor_id', 'required', ]) !!}
{{ $errors->first('consignor_id') }}
{!! Form::select('consignee_id', ['' => '--Select--'] + $party, $freightEntryParty->consignee_id, [ 'class' => 'form-control select2', 'id' => 'party_consignee_id', 'required', ]) !!}
{{ $errors->first('consignee_id') }}
{{ $errors->first('party_from') }}
{{ $errors->first('party_to') }}
{!! Form::select( 'party_challan', ['' => '--Select--', 'No' => 'No', 'Yes' => 'Yes'], $freightEntryParty->challan, ['class' => 'form-control', 'id' => 'party_challan', 'required'], ) !!}
{{ $errors->first('party_challan') }}
{{ $errors->first('party_invoice_no') }}
{{ $errors->first('party_invoice_date') }}
{{ $errors->first('party_invoice_amount') }}
{{ $errors->first('party_token_no') }}
{{ $errors->first('party_di_no') }}
{{ $errors->first('party_eway_bil_no') }}
{{ $errors->first('party_eway_bil_validity') }}
{{-- ---------------------- Commission Section End ----------------- --}}
Goods Description Size Weight MT Rate Amount
{{ $errors->first('party_desc_of_goods') }}
{{ $errors->first('trans_good_particular1') }}
{{ $errors->first('trans_good_particular2') }}
{{ $errors->first('trans_good_particular3') }}
{{ $errors->first('party_size') }}


{{ $errors->first('party_weight_mt') }}

{{ $errors->first('party_no_of_bag') }}

{{ $errors->first('party_loose') }}
{{ $errors->first('party_rate_per_mt') }}
{{-- ------------------------------- Freight Start for Party----------------------------------- --}}
Party Freight
Freight :  
{{ $errors->first('party_freight') }}
Vasuli :  
{{ $errors->first('party_vasuli') }}
Unloading :  
{{ $errors->first('party_unloading') }}
Holding :  
{{ $errors->first('party_holding') }}
Challan :  
{{ $errors->first('party_challan_or_permission') }}
Overload :  
{{ $errors->first('party_overload') }}
Kata Charge :  
{{ $errors->first('party_kata_charge') }}
Total :  
{{ $errors->first('party_total') }}

{{-- ------------------------------- Freight End for Party----------------------------------- --}} {{-- ------------------- Market Freight Start For Party ------------------ --}} {{-- -------------------- Market Freight End For Party --------------- --}} {{-- ---------------------- Commission Section Strat ----------------- --}}
Gross Total :  
{{ $errors->first('party_gross_total') }}
Commi. % :  
{{ $errors->first('party_commission_percent') }}
Commi. Amt :  
{{ $errors->first('party_commission_amount') }}
Other : 
{{ $errors->first('party_other_charge') }}
Net Total :  
{{ $errors->first('party_net_total') }}
{{ $errors->first('party_remark') }}
{!! Form::close() !!} @endif {{-- @if ($freightEntryTrans) {!! Form::open(['route' => ['freight-entry.update',$freightEntryTrans->id], 'onsubmit'=>'BtnSubmit.disabled = true','class'=>'row g-3 needs-validation', 'method' => 'put', 'autocomplete'=>'off']) !!}
{!! Form::select('trans_party_id', [''=>'--Select--']+$party, $freightEntryTrans->party_id, ['class'=>'form-control select2','id'=>'party_id','required']) !!}
{{$errors->first('party_id')}}
{!! Form::select('trans_vehicle_id', [''=>'--Select--',]+$vehicle, $freightEntryTrans->vehicle_id, ['class'=>'form-control select2','id'=>'trans_vehicle_id','required']) !!}
{{$errors->first('trans_vehicle_id')}}
{!! Form::select('trans_branch_id', ($branchCount > 1) ? [''=>'--Select--',]+$branch : []+$branch, $freightEntryTrans->branch_id, ['class'=>'form-control select2','id'=>'trans_branch_id','required']) !!}
{{$errors->first('trans_branch_id')}}
{!! Form::select('trans_employee_id', [''=>'--Select--',]+$employee, $freightEntryTrans->employee_id, ['class'=>'form-control select2','id'=>'trans_employee_id','required']) !!}
{{$errors->first('trans_employee_id')}}
{{$errors->first('trans_date')}}
{{$errors->first('trans_gr_no')}}
FREIGHT
{{$errors->first('trans_from')}}
{{$errors->first('trans_to')}}
{!! Form::select('trans_challan', [''=>'--Select--','No'=>'No','Yes'=>'Yes'], $freightEntryTrans->challan, ['class'=>'form-control','id'=>'trans_challan','required']) !!}
{{$errors->first('trans_challan')}}
{{$errors->first('trans_invoice_no')}}
{{$errors->first('trans_invoice_date')}}
{{$errors->first('trans_invoice_amount')}}
{{$errors->first('trans_token_no')}}
{{$errors->first('trans_di_no')}}
{{$errors->first('trans_eway_bil_no')}}
{{$errors->first('trans_eway_bil_validity')}}
--}}{{-- ---------------------- Commission Section End ----------------- --}}{{--
Goods Description Size Weight MT Rate Amount
{{$errors->first('trans_desc_of_goods')}}
{{$errors->first('trans_good_particular1')}}
{{$errors->first('trans_good_particular2')}}
{{$errors->first('trans_good_particular3')}}
{{$errors->first('trans_size')}}


{{$errors->first('trans_weight_mt')}}

{{$errors->first('trans_no_of_bag')}}

{{$errors->first('trans_loose')}}
{{$errors->first('trans_rate_per_mt')}}
--}}{{-- ------------------------------- Freight Start for Party----------------------------------- --}}{{--
Party Freight
Freight :  
{{$errors->first('trans_freight')}}
Vasuli :  
{{$errors->first('trans_vasuli')}}
Unloading :  
{{$errors->first('trans_unloading')}}
Holding :  
{{$errors->first('trans_holding')}}
Challan :  
{{$errors->first('trans_challan_or_permission')}}
Overload :  
{{$errors->first('trans_overload')}}
Kata Charge :  
{{$errors->first('trans_kata_charge')}}
Total :  
{{$errors->first('trans_party_total')}}

--}}{{-- ------------------------------- Freight End for Party----------------------------------- --}}{{-- --}}{{-- ------------------- Market Freight Start For Party ------------------ --}}{{-- --}}{{-- -------------------- Market Freight End For Party --------------- --}}{{-- --}}{{-- ---------------------- Commission Section Strat ----------------- --}}{{--
Gross Total :  
{{$errors->first('trans_gross_total')}}
Commi. % :  
{{$errors->first('trans_commission_percent')}}
Commi. Amt :  
{{$errors->first('trans_commission_amount')}}
Other : 
{{$errors->first('trans_other_charge')}}
Net Total :  
{{$errors->first('trans_net_total')}}
{{$errors->first('trans_advance')}}
{{$errors->first('trans_remark')}}
{!! Form::close() !!} @endif --}}
{!! Form::open([ 'route' => ['upload-receiving.store'], 'onsubmit' => 'BtnSubmit.disabled = true', 'method' => 'post', 'files' => true, ]) !!}
{{ $errors->first('upload_reciving_date') }}
{{ $errors->first('file') }}
{{ $errors->first('remark') }}
{!! Form::close() !!} @if ($uploadReceiving)
Upload Receiving List
@foreach ($uploadReceiving as $row1) @endforeach
S.no Date Files Remark Action
{{ $loop->iteration }} {{ date('d-M-Y', strtotime($row1->upload_reciving_date)) }} @foreach (explode(',', $row1->file) as $uploadFile) File {{ $loop->iteration }} , @endforeach {{ $row1->remark }}
@endif
{!! Form::open([ 'route' => ['send-receiving.store'], 'onsubmit' => 'submitBtn.disabled = true', 'method' => 'post', 'files' => true, ]) !!}
@if ($sendReceiving)
{{ $errors->first('courier_agency') }}
{{ $errors->first('docket_no') }}
{{ $errors->first('send_date') }}
{{ $errors->first('send_remark') }}
@else
{{ $errors->first('courier_agency') }}
{{ $errors->first('docket_no') }}
{{ $errors->first('send_date') }}
{{ $errors->first('send_remark') }}
@endif
{!! Form::close() !!}
@endsection @push('footer_script') @endpush