{{ html()->form('POST', route('faq.store'))->class('needs-validation')->attributes(['novalidate'])->open() }} @isset($faq) {{ html()->hidden('id', $faq->id) }} @endisset
{{ html()->label('Title')->for('title') }} {{ html()->span('*')->class('text-danger') }} {{ html()->text('title')->value($faq->title ?? old('title'))->class('form-control')->placeholder('Enter Title')->required() }} {{ html()->div('Please enter a title.')->class('invalid-feedback') }}
{{ html()->label('Content')->for('description') }} {{ html()->textarea('description')->value($faq->description ?? old('description'))->class('form-control')->placeholder('Enter Content')->rows(5) }}
{{ html()->label('Category')->class('form-label')->for('category_id') }} {{ html()->select('category_id', $categoryOptions)->value($faq->category_id ?? old('category_id'))->class('form-select choices-select')->placeholder('Select') }}
{{ html()->form()->close() }}