@extends("admin.layouts.app") @section("styles") @endsection @section("content")
Update Spec Category
@isset($errors) @foreach($errors as $key => $error) @endforeach @endisset
{{Form::open(['route'=>["admin.spec-categories.update",$spec_category->id],'role'=>"form",'method'=>"put"])}}
{{Form::text("title",$spec_category->title,['class'=>'form-control m-input'])}} {{Form::label("title","Title")}}
{{Form::text("nickname",$spec_category->nickname,['class'=>'form-control m-input'])}} {{Form::label("nickname","Nickname")}}
{{Form::text("icon",$spec_category->icon,['class'=>'form-control m-input'])}} {{Form::label("icon","Icon")}}
{{Form::label("is_upgradable","Is Upgradable")}} {{Form::checkbox("is_upgradable",1,$spec_category->is_upgradable,['class'=>'form-control m-input'])}}
{{Form::label("is_comparable","Is Comparable")}} {{Form::checkbox("is_comparable",1,$spec_category->is_comparable,['class'=>'form-control m-input'])}}
{{Form::label("is_on_listing","Is On Listing")}} {{Form::checkbox("is_on_listing",1,$spec_category->is_on_listing,['class'=>'form-control m-input'])}}
{{Form::label("is_on_title","Is On Title")}} {{Form::checkbox("is_on_title",1,$spec_category->is_on_title,['class'=>'form-control m-input'])}}
{{Form::label("is_tab","Is Tab")}} {{Form::checkbox("is_tab",1,$spec_category->is_tab,['class'=>'form-control m-input'])}}
{{Form::label("show_as_filter","Show as filter")}} {{Form::checkbox("show_as_filter",1,$spec_category->show_as_filter,['class'=>'form-control m-input'])}}
{{Form::select("categories[]",$categories,isset($spec_category) ? $spec_category->categories->pluck('id')->toArray() : null,["multiple"=>"true",'class'=>'form-control select2-multiple'])}}
{!! Form::close() !!}
@endsection @section("scripts") @endsection