{{Session('message')}}
Update Category: {{ $category->category_name }}
{{--Basic Settings--}}
@endif
{{--Category SEO--}}
{!! Form::label('Name') !!}
{!! Form::text('category_name', $category->category_name, ['class' => 'form-control', 'placeholder' => 'Name', 'id' => 'category_name']) !!}
@if ($errors->has('category_name'))
{!! $errors->first('category_name') !!}@endif
{!! Form::label('Category masking') !!}
{!! Form::text('category_mask', $category->category_mask, ['class' => 'form-control', 'placeholder' => 'Category masking', 'id' => 'category_mask']) !!}
@if ($errors->has('category_mask'))
{!! $errors->first('category_mask') !!}@endif
{!! Form::label('Slug') !!}
{!! Form::text('category_slug', $category->category_slug, ['class' => 'form-control', 'placeholder' => 'Slug','id' => 'category_slug']) !!}
@if ($errors->has('category_name'))
{!! $errors->first('category_slug') !!}
@endif
{!! Form::label('Feature Image URL') !!}
{!! Form::text('category_thumb', $category->category_thumb, ['class' => 'form-control', 'placeholder' => 'Enter feature image url']) !!}
@if ($errors->has('category_thumb'))
{!! $errors->first('category_thumb') !!}
@endif
{!! Form::label('Category Position') !!}
{!! Form::select('category_position', $category_position, $category->category_position, ['class' => 'form-control item_type_select2', 'placeholder' => 'Select category position', 'id' => 'category_position']) !!}
@if ($errors->has('category_position'))
{!! $errors->first('category_position') !!}@endif
@if($category->category_thumb)
{!! Form::label('Parent Category') !!}
@include('admin.category.treeview',['flag' => 1])
{{ $errors->first('category_parent_id') }}
{!! Form::label('Linkable') !!}
{!! Form::select('category_is_linkable', [1 => 'Yes', 0 => 'No'], isset($category->category_is_linkable) ? $category->category_is_linkable : null, ['class' => 'form-control']) !!}
{!! Form::label('Is Visible') !!}
{!! Form::select('category_is_visible', [1 => 'Yes', 0 => 'No'], $category->category_is_visible, ['class' => 'form-control']) !!}
{!! Form::label('DropDown Is Visible') !!}
{!! Form::select('dropdown_is_visible', [1 => 'Yes', 0 => 'No'], $category->dropdown_is_visible, ['class' => 'form-control']) !!}
{!! Form::label('Arrow Is Visible') !!}
{!! Form::select('arrow_is_show', ['1' => 'Yes', '0' => 'No'], $category->arrow_is_show, ['class' => 'form-control']) !!}
{!! Form::label('Status') !!}
{!! Form::select('category_is_exist', [1 => 'Active', 0 => 'Inactive'], isset($category->category_is_exist) ? $category->category_is_exist : null, ['class' => 'form-control']) !!}
{!! Form::label('Is Brand') !!}
{!! Form::select('category_is_tag', ['BRAND' => 'BRAND', 'TAG' => 'TAG'], $category->category_is_tag , ['class' => 'form-control']) !!}
{!! Form::label('Meta Title') !!}
{!! Form::text('category_meta_title', $category->category_meta_title, ['class' => 'form-control', 'id'=> 'category_meta_title', 'placeholder' => 'Enter Meta Title']) !!}
@if ($errors->has('category_meta_title'))
{!! $errors->first('category_meta_title') !!}@endif
{!! Form::label('Meta Keyword') !!}
{!! Form::textarea('category_meta_keyword', $category->category_meta_keyword, ['class' => 'form-control', 'placeholder' => 'Enter Meta Keyword']) !!}
@if ($errors->has('category_meta_keyword'))
{!! $errors->first('category_meta_keyword') !!}@endif
{!! Form::label('Meta Description') !!}
{!! Form::textarea('category_meta_description', $category->category_meta_description, ['class' => 'form-control', 'id'=> 'category_meta_description','placeholder' => 'Enter Meta Description']) !!}
@if ($errors->has('category_meta_description'))
{!! $errors->first('category_meta_description') !!}@endif
{!! Form::submit('Update',['class' => 'btn btn-warning']) !!}
{!! Form::close() !!}