@extends('backend.layouts.app') @section('title', __('labels.backend.access.roles.management') . ' | ' . __('labels.backend.access.roles.create')) @section('breadcrumb-links') @include('backend.auth.roles.includes.breadcrumb-links') @endsection @section('content') {{ Form::open(['route' => 'admin.auth.role.store', 'class' => 'form-horizontal', 'role' => 'form', 'method' => 'post', 'id' => 'create-role']) }}

@lang('labels.backend.access.roles.management') @lang('labels.backend.access.roles.create')


{{ Form::label('name', __('validation.attributes.backend.access.roles.name'), [ 'class'=>'col-md-2 form-control-label']) }}
{{ Form::text('name', null, ['class' => 'form-control', 'placeholder' => trans('validation.attributes.backend.access.roles.name'), 'required' => 'required']) }}
{{ Form::label('associated_permissions', __('validation.attributes.backend.access.roles.associated_permissions'), [ 'class'=>'col-md-2 form-control-label']) }}
{{ Form::select('associated_permissions', array('all' => trans('labels.general.all'), 'custom' => trans('labels.general.custom')), 'all', ['class' => 'form-control select2']) }}
@if ($permissions->count()) @foreach ($permissions as $perm)
id, old('permissions')) ? 'checked' : '' }} />
@endforeach @else

There are no available permissions.

@endif
{{ Form::label('sort', trans('validation.attributes.backend.access.roles.sort'), ['class' => 'col-md-2 control-label']) }}
{{ Form::text('sort', ($roleCount+1), ['class' => 'form-control', 'placeholder' => trans('validation.attributes.backend.access.roles.sort')]) }}
{{ Form::label('status', trans('validation.attributes.backend.access.users.active'), ['class' => 'col-md-2 control-label']) }}
{{ Form::checkbox('status', 1, true) }}
@include('backend.components.footer-buttons', [ 'cancelRoute' => 'admin.auth.role.index' ])
{{ Form::close() }} @endsection @section('pagescript') @endsection