@extends ('core.layouts.app') @section ('title', trans('labels.backend.hrms.management')) @section('page-header')

{{ trans('labels.backend.access.roles.management') }} {{ trans('labels.backend.access.roles.edit') }}

@endsection @section('content')

{{ trans('labels.backend.access.roles.management') }}

@include('focus.hrms.partials.role-header-buttons')
{{ Form::model($role, ['route' => ['biller.role.update', $role], 'class' => 'form-horizontal', 'role' => 'form', 'method' => 'PATCH', 'id' => 'edit-role']) }}
{{ Form::label('name', trans('validation.attributes.backend.access.roles.name'), ['class' => 'col-lg-2 control-label required']) }}
{{ Form::text('name', null, ['class' => 'form-control box-size', 'placeholder' => trans('validation.attributes.backend.access.roles.name'), 'required' => 'required']) }}
{{ Form::label('associated_permissions', trans('validation.attributes.backend.access.roles.associated_permissions'), ['class' => 'col-lg-2 control-label']) }}
{{ Form::select('associated_permissions', ['none' => trans('meta.select'), 'custom' => trans('hrms.permissions')], $role->all ? 'none' : 'custom', ['class' => 'form-control select2 box-size']) }}
@if ($permissions->count()) @foreach ($permissions as $perm)
@endforeach @else

There are no available permissions.

@endif
{{ link_to_route('biller.role.index', trans('buttons.general.cancel'), [], ['class' => 'btn btn-danger btn-md']) }} {{ Form::submit(trans('buttons.general.crud.update'), ['class' => 'btn btn-primary btn-md']) }}
{{ Form::close() }}
@endsection @section('after-scripts') @endsection