@extends('layout.app') @section('title','Setting (General)') @push('header_script') @endpush @section('content')
{{-- Back--}}
{!! Form::open(['route' => ['setting-general.store'], 'onsubmit'=>'BtnSubmit.disabled = true', 'class'=>'row g-3 needs-validation', 'method' => 'post', 'id'=>'GeneralForm', 'autocomplete' => 'off']) !!}
enable_passcode == 'yes'))? 'checked': ''}} value="yes">
{{$errors->first('enable_passcode')}}
maintain_balance == 'yes'))? 'checked': ''}} value="yes">
{{$errors->first('maintain_balance')}}
own_truck_accounting == 'yes'))? 'checked': ''}} value="yes">
{{$errors->first('own_truck_accounting')}}
multiple_freight_bill == 'yes'))? 'checked': ''}} value="yes">
{{$errors->first('multiple_freight_bill')}}
auto_generate_freight_bill == 'yes'))? 'checked': ''}} value="yes">
{{$errors->first('auto_generate_freight_bill')}}
allow_working_in_previous_financial_year == 'yes'))? 'checked': ''}} value="yes">
{{$errors->first('allow_working_in_previous_financial_year')}}
{{$errors->first('freight_entry_print_template')}}
{!! Form::close() !!}
@if($commonSetting && $commonSetting->allow_working_in_previous_financial_year == 'yes')
Working Financial Year

Change the financial year you are currently working in.

@php $activeFy = \App\Services\FinancialYearService::getActiveFinancialYear(); @endphp

Current: {{ $activeFy ? date('Y', strtotime($activeFy->start_date)) . '-' . date('y', strtotime($activeFy->end_date)) : 'N/A' }}

@endif
@endsection @push('footer_script') @endpush