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

@t('Tag')

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