@extends('admin.layouts.master') @section('content')

{{ trans('quickadmin::qa.menus-createCustom-create_new_custom_controller') }}

@if ($errors->any())
    {!! implode('', $errors->all('
  • :message
  • ')) !!}
@endif
{!! Form::open(['class' => 'form-horizontal']) !!}
{!! Form::label('parent_id', trans('quickadmin::qa.menus-createCustom-menu_parent') , ['class'=>'col-sm-2 control-label']) !!}
{!! Form::select('parent_id', $parentsSelect, old('parent_id'), ['class'=>'form-control']) !!}
{!! Form::label('name', trans('quickadmin::qa.menus-createCustom-controller_name'), ['class'=>'col-sm-2 control-label']) !!}
{!! Form::text('name', old('name'), ['class'=>'form-control', 'placeholder'=> trans('quickadmin::qa.menus-createCustom-controller_name_placeholder')]) !!}
{!! Form::label('title', trans('quickadmin::qa.menus-createCustom-menu_title'), ['class'=>'col-sm-2 control-label']) !!}
{!! Form::text('title', old('title'), ['class'=>'form-control', 'placeholder'=> trans('quickadmin::qa.menus-createCustom-menu_title_placeholder')]) !!}
{!! Form::label('roles', trans('quickadmin::qa.menus-createCustom-roles'), ['class'=>'col-sm-2 control-label']) !!}
@foreach($roles as $role)
@endforeach
{!! Form::label('icon', trans('quickadmin::qa.menus-createCustom-icon'), ['class'=>'col-sm-2 control-label']) !!}
{!! Form::text('icon', old('icon','fa-database'), ['class'=>'form-control', 'placeholder'=> trans('quickadmin::qa.menus-createCustom-icon_placeholder')]) !!}
{!! Form::submit(trans('quickadmin::qa.menus-createCustom-create_controller'), ['class' => 'btn btn-primary']) !!}
{!! Form::close() !!} @endsection