@extends('backend.layouts.app') @section('content') {{ html()->form('POST' ,route('backend.taxes.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(__('tax.lbl_title') . ' *', 'title')->class('form-label') }} {{ html()->text('title') ->attribute('value', old('title')) ->placeholder(__('tax.lbl_title')) ->class('form-control') ->required() }} @error('title') {{ $message }} @enderror
Title field is required
{{ html()->label(__('tax.lbl_Type') . ' *', 'type')->class('form-label') }} {{ html()->select('type', ['Fixed' => 'Fixed', 'Percentage' => 'Percentage']) ->class('form-control select2') ->required() }} @error('type') {{ $message }} @enderror
Type field is required
{{ html()->label(__('tax.lbl_value') . ' *', 'value')->class('form-label') }} {{ html()->text('value') ->attribute('value', old('value')) ->placeholder(__('tax.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', 1) }} {{ html()->checkbox('status',old('status', true)) ->class('form-check-input') ->id('status') }}
@error('status') {{ $message }} @enderror
{{ html()->submit(trans('messages.save'))->class('btn btn-md btn-primary float-right')->id('submit-button') }}
{{ html()->form()->close() }} @endsection