{{-- <div class="col-12 form-group">
    <label class="form-control-label" for="input-parent_id">{{ __('Group') }}</label>
    <div class="{{ $errors->has('parent_id') ? 'has-danger' : '' }}">
        <select class="form-control {{ $errors->has('parent_id') ? 'is-invalid' : '' }}" name="parent_id" id="input-parent_id" placeholder="{{ __('Please Select Category') }}" data-toggle="select">
            <option value="">{{ __('Please Select Category') }}</option>
            @foreach ($groups as $id => $name)
                @continue($id == $category?->id)
                <option value="{{ $id }}">{{ $name }}</option>
            @endforeach
        </select>
    </div>
    @include('alerts.feedback', ['field' => 'parent_id'])
</div> --}}

<div class="col-12 form-group">
    <label class="form-control-label" for="input-name">{{ __('Name') }} <sup class="text-danger">*</sup></label>
    <div class="{{ $errors->has('name') ? 'has-danger' : '' }}">
        <input type="text" name="name" id="input-name" class="form-control {{ $errors->has('name') ? 'is-invalid' : '' }}" placeholder="{{ __('Name') }}" value="{{ old('name', $category->name) }}" autofocus required>
    </div>
    @include('alerts.feedback', ['field' => 'name'])
</div>

<div class="col-12 form-group">
    <label class="form-control-label" for="input-description">{{ __('Description') }}</label>
    <div class="{{ $errors->has('description') ? 'has-danger' : '' }}">
        <textarea name="description" id="input-description" class="form-control @error('description') is-invalid @enderror" placeholder="{{ __('Description') }}" rows="4">{{ old('description', $category->description) }}</textarea>
    </div>
    @include('alerts.feedback', ['field' => 'description'])
</div>

{{-- <div class="col-12 form-group">
    <label class="form-control-label" for="input-keywords">{{ __('Additional Keywords') }}</label>
    <div class="{{ $errors->has('keywords') ? 'has-danger' : '' }}">
        <textarea name="keywords" id="input-keywords" class="form-control @error('keywords') is-invalid @enderror" placeholder="{{ __('Additional Keywords') }}" rows="4">{{ old('keywords', $category->keywords) }}</textarea>
    </div>
    @include('alerts.feedback', ['field' => 'keywords'])
</div> --}}

<div class="col-12 form-group d-flex align-items-center">
    <label class="form-control-label mb-0 mr-3">{{ __('Status Active') }} <sup class="text-danger">*</sup></label>
    <label class="custom-toggle">
        <input type="checkbox" name="is_active" value="1" {{ old('is_active', $category->is_active) ? 'checked' : '' }}>
        <span class="custom-toggle-slider rounded-circle" data-label-off="No" data-label-on="Yes"></span>
    </label>
</div>
