{{ html()->label(__('Name'))->for('name') }} {{ html()->text('name', old('name', $auditSchedule?->name)) ->class('form-control' . ($errors->has('name') ? ' is-invalid' : '')) ->placeholder(__('Name')) }} {!! $errors->first('name', '') !!}
{{ html()->label(__('Description'))->for('description') }} {{ html()->text('description', old('description', $auditSchedule?->description)) ->class('form-control' . ($errors->has('description') ? ' is-invalid' : '')) ->placeholder(__('Description')) }} {!! $errors->first('description', '') !!}
{{ html()->label(__('From Date'))->for('from_date') }} {{ html()->date('from_date', old('from_date', $auditSchedule?->from_date)) ->class('form-control' . ($errors->has('from_date') ? ' is-invalid' : '')) }} {!! $errors->first('from_date', '') !!}
{{ html()->label(__('To Date'))->for('to_date') }} {{ html()->date('to_date', old('to_date', $auditSchedule?->to_date)) ->class('form-control' . ($errors->has('to_date') ? ' is-invalid' : '')) }} {!! $errors->first('to_date', '') !!}
{{ html()->label(__('Is Active')) }} {{ html()->checkbox('is_active', old('is_active', $auditSchedule?->is_active), true) ->class('form-check-input custom-switch' . ($errors->has('is_active') ? ' is-invalid' : '')) ->id('is_active') }} {!! $errors->first('is_active', '') !!}
{{ html()->submit(__('Submit'))->class('btn btn-primary ms-3') }}