@extends('Layouts/dashboard') @section('submenu') @include('Plugins/Payment/Views/Elements/CategoryGroup/submenu') @endsection @section('content')

@t('Category Group')

{!! Form::open([ 'data-toggle' => 'validator' ]) !!}
{!! Form::label('data[CategoryGroup][name]', t('Name')) !!} {!! Form::text( 'data[CategoryGroup][name]', (isset($data->CategoryGroup->name) ? $data->CategoryGroup->name : null), [ 'data-error' => t('This field is required'), 'class' => 'form-control', 'required' ] ) !!}
@if (isset($errors->CategoryGroup->name)) {{ $errors->CategoryGroup->name[0] }} @endif
{!! Form::label('data[CategoryGroup][ordering]', t('Order')) !!} {!! Form::number( 'data[CategoryGroup][ordering]', (isset($data->CategoryGroup->ordering) ? $data->CategoryGroup->ordering : null), [ 'data-error' => t('This field is required'), 'class' => 'form-control', 'required', 'step' => 1 ] ) !!}
@if (isset($errors->CategoryGroup->ordering)) {{ $errors->CategoryGroup->ordering[0] }} @endif
{!! Form::label('data[CategoryGroup][color]', t('Colour')) !!} {!! Form::colorSelect( 'data[CategoryGroup][color]', [], (isset($data->CategoryGroup->color) ? $data->CategoryGroup->color : null), [ 'class' => 'form-control color-picker', 'empty' => true ] ) !!}
@if (isset($errors->CategoryGroup->color)) {{ $errors->CategoryGroup->color[0] }} @endif
{!! Form::submit( __('Submit'), ['class' => 'btn btn-pink btn-wider'] ) !!}
{!! Form::close() !!} @endsection