{{-- ICTHospital - role permission grid. The catalogue and the role columns both come from config/hospital_permissions.php by way of PermissionController, so nothing here has to be kept in step by hand. The version this replaces carried its own copy of the permission array and read the saved rows by fixed numeric offsets, which broke whenever the two lists drifted apart, and it posted the accountant column under the name "accutant" so those grants were silently discarded. Copyright (c) DEVtrust Part of ICTHospital Licensed under the GNU General Public License v3.0. --}} @extends('layouts.master') @section('content') @if (Session::get('success'))
Process Success. {{ Session::get('success') }}

@endif

Permissions Setting

{{-- container-fluid: the fixed-width .container was wider than the space beside the sidebar, so with seven roles the last ones and the Get List button fell off the edge. --}}

Roles to show:

@foreach($groups as $key => $label) @endforeach

@if(count($shown) === 0)

Tick one or more roles above and press Get List to edit their permissions.

@else
@foreach($shown as $key => $label) @endforeach @foreach($permission_fields as $permission_field) @if(isset($sections[$permission_field])) @endif @foreach($shown as $key => $label) @endforeach @endforeach
Permissions{{ $label }}

{{ $sections[$permission_field] }}

{{ $permission_field }}

@endif
@stop @section('script') @stop