@extends('backend.layouts.app')
@section('content')
{{ html()->form('POST', route('backend.constants.store'))
->attribute('enctype', 'multipart/form-data')
->attribute('data-toggle', 'validator')
->attribute('id', 'form-submit') // Add the id attribute here
->class('requires-validation') // Add the requires-validation class
->attribute('novalidate', 'novalidate') // Disable default browser validation
->open()
}}
@csrf
{{ html()->label(__('constant.lbl_name') . '
*', 'name')->class('form-label') }}
{{ html()->text('name')
->value(old('name'))
->placeholder(__('constant.lbl_name'))
->class('form-control')
->required() }}
@error('name')
{{ $message }}
@enderror
Name field is required
{{ html()->label(__('constant.lbl_type') . '
*', 'type')->class('form-label') }}
@error('type')
{{ $message }}
@enderror
Type field is required
{{ html()->label(__('constant.lbl_value') . '
*', 'value')->class('form-label') }}
{{ html()->text('value')
->value(old('value'))
->placeholder(__('constant.lbl_value'))
->class('form-control')
->required() }}
@error('value')
{{ $message }}
@enderror
Value field is required
{{ html()->label(__('plan.lbl_status'), 'status')->class('form-label') }}
{{ html()->label(__('messages.active'), 'status')->class('form-label mb-0 text-body') }}
{{ html()->hidden('status', 0) }}
{{
html()->checkbox('status', old('status', 1))
->class('form-check-input')
->id('status')
->value(1)
}}
@error('status')
{{ $message }}
@enderror
{{ html()->form()->close() }}
@endsection