@extends('layouts.admin') @section('title', trans('general.title.edit', ['type' => trans_choice('general.categories', 1)])) @section('content')
{!! Form::model($category, [ 'method' => 'PATCH', 'url' => ['settings/categories', $category->id], 'role' => 'form' ]) !!}
{{ Form::textGroup('name', trans('general.name'), 'id-card-o') }} @if ($type_disabled) {{ Form::selectGroup('type', trans_choice('general.types', 1), 'bars', $types, null, ['required' => 'required', 'disabled' => 'disabled']) }} @else {{ Form::selectGroup('type', trans_choice('general.types', 1), 'bars', $types) }} @endif @stack('color_input_start')
{!! Form::label('color', trans('general.color'), ['class' => 'control-label']) !!}
{!! Form::text('color', null, ['id' => 'color', 'class' => 'form-control', 'required' => 'required']) !!}
{!! $errors->first('color', '

:message

') !!}
@stack('color_input_end') {{ Form::radioGroup('enabled', trans('general.enabled')) }}
@permission('update-settings-categories') @endpermission {!! Form::close() !!}
@endsection @push('js') @endpush @push('css') @endpush @push('scripts') @endpush