{!! Form::open(['url' => '/admin/category-brand-slugs/'. $category->id . '/edit', 'enctype' => 'multipart/form-data']) !!}
{!! Form::label('Category') !!}
{!! Form::select('category_parent_id', $categories_list, $category->category_parent_id, ['class' => 'form-control item_type_select2', 'placeholder' => 'Select category Parent ID', 'id' => 'category_parent_id', 'required' => 'required', ]) !!}
@if ($errors->has('category_parent_id'))
{!! $errors->first('category_parent_id') !!}@endif
{{--
--}}
{!! Form::label('Category') !!}
{!! Form::select('category_id', $categories_list, $category->category_id, ['class' => 'form-control item_type_select2', 'placeholder' => 'Select category', 'id' => 'category_id' ,'required' => 'required',]) !!}
@if ($errors->has('category_id'))
{!! $errors->first('category_id') !!}@endif
{{--
{!! Form::label('Brand') !!}
{!! Form::select('brand_id', $brands, $category->brand_id, ['class' => 'form-control item_type_select2', 'placeholder' => 'Select Brand', 'id' => 'brand_id_1']) !!}
@if ($errors->has('brand_id'))
{!! $errors->first('brand_id') !!}@endif
--}}
{!! Form::label('Slug') !!}
{!! Form::text('brand_slug', $category->category_brand_slug, ['class' => 'form-control', 'placeholder' => 'Slug', 'required' => 'required', 'id' => 'brand_slug_id']) !!}
@if ($errors->has('brand_slug'))
{!! $errors->first('brand_slug') !!}@endif
{!! Form::label('Status') !!}
{!! Form::select('is_active', [1 => 'Active', 0 => 'Inactive'], isset($category->is_active) ? $category->is_active : null, ['class' => 'form-control']) !!}
{{--
{!! Form::label('position') !!}
{!! Form::text('position', $category->position, ['class' => 'form-control', 'placeholder' => 'Position', 'id' => 'position_1' ] ) !!}
@if ($errors->has('position'))
{!! $errors->first('position') !!}@endif
--}}
{!! Form::close() !!}