@extends('admin.layouts.app') @push('libraries_top') @endpush @section('content')

{{!empty($role) ?trans('/admin/main.edit'): trans('admin/main.new') }} {{ trans('admin/main.role') }}

@if ($errors->any())
@endif
@if(empty($role)) @endif
@error('name')
{{ $message }}
@enderror
@error('caption')
{{ $message }}
@enderror
@if(empty($role) or !$role->isDefaultRole())
{{ trans('admin/main.new_role_admin_access_hint') }}
@endif

{{ trans('admin/main.permission') }}

{{ trans('admin/main.permission_description') }}

@foreach($sections as $section)
id]) ? 'checked' : ''}} class="form-check-input mt-0 section-parent">
@if(!empty($section->children))
@foreach($section->children as $key => $child)
id]) ? 'checked' : '' }} class="form-check-input section-child">
@endforeach
@endif
@endforeach
@endsection @push('scripts_bottom') @endpush