{{ Form::model($categorydata,['method' => 'POST','route'=>'category.store', 'enctype'=>'multipart/form-data', 'data-toggle'=>"validator" ,'id'=>'category'] ) }}
{{ Form::hidden('id') }}
{{ Form::label('name', __('messages.name').' *', ['class' => 'form-control-label'], false) }}
{{ Form::text('name', old('name'), ['placeholder' => __('messages.name'), 'class' => 'form-control', 'required', 'title' => 'Please enter alphabetic characters and spaces only']) }}
{{ Form::label('status',trans('messages.status').' *',['class'=>'form-control-label'],false) }}
{{ Form::select('status',['1' => __('messages.active') , '0' => __('messages.inactive') ],old('status'),[ 'id' => 'role' ,'class' =>'form-control select2js','required']) }}
@if(getMediaFileExit($categorydata, 'category_image'))
@php
$extention = imageExtention(getSingleMedia($categorydata,'category_image'));
@endphp
@endif
{{ Form::label('description',trans('messages.description'), ['class' => 'form-control-label']) }}
{{ Form::textarea('description', null, ['class'=>"form-control textarea" , 'rows'=>3 , 'placeholder'=> __('messages.description') ]) }}
{{ Form::submit( trans('messages.save'), ['class'=>'btn btn-md btn-primary float-right']) }}
{{ Form::close() }}