{!! Form::open(['url' => '/admin/category-brand-slugs/'. $category->id . '/edit', 'enctype' => 'multipart/form-data']) !!}
{!! Form::label('Category') !!}
{!! Form::select('category_parent_id', $categories, $category->category_parent_id, ['class' => 'form-control item_type_select2', 'placeholder' => 'Select category Parent ID', 'id' => 'category_parent_id']) !!}
@if ($errors->has('category_parent_id'))
{!! $errors->first('category_parent_id') !!}@endif
{!! Form::label('Category') !!}
{!! Form::select('category_id', $categories, $category->category_id, ['class' => 'form-control item_type_select2', 'placeholder' => 'Select category', 'id' => 'category_id']) !!}
@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', 'id' => 'brand_slug_id']) !!}
@if ($errors->has('brand_slug'))
{!! $errors->first('brand_slug') !!}@endif
{!! Form::label('Positopm') !!}
{!! Form::text('position', $category->position, ['class' => 'form-control', 'placeholder' => 'Position', 'id' => 'position_1' ] ) !!}
@if ($errors->has('position'))
{!! $errors->first('position') !!}@endif
{!! Form::close() !!}