@extends('backend.layouts.app') @section('content')
{{ html()->form('POST' ,route('backend.state.store'))->attribute('enctype', 'multipart/form-data')->attribute('data-toggle', 'validator')->open() }} @csrf
{{ html()->label('Country *', 'country_id')->class('form-label') }} {{ html()->select('country_id', $countries ->pluck('name', 'id'), old('country_id')) ->placeholder('Select Country') ->class('form-control') ->required() }} @error('country_id') {{ $message }} @enderror
{{ html()->label('Name *', 'name')->class('form-label') }} {{ html()->text('name') ->value(old('name')) ->placeholder('Enter name') ->class('form-control') ->required() }} @error('name') {{ $message }} @enderror
{{ html()->label(__('plan.lbl_status'), 'status')->class('form-label') }}
{{ html()->hidden('status', 0) }} {{ html()->checkbox('status',old('status', false)) ->class('form-check-input') ->id('status') }}
@error('status') {{ $message }} @enderror
Close {{ html()->submit(trans('messages.save'))->class('btn btn-md btn-primary float-right') }} {{ html()->form()->close() }}
@endsection