<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', $example->name) }}" autofocus required>
    </div>
    @include('alerts.feedback', ['field' => 'name'])
</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', $example->is_active) ? 'checked' : '' }}>
        <span class="custom-toggle-slider rounded-circle" data-label-off="No" data-label-on="Yes"></span>
    </label>
</div>

@push('js')
@endpush
