@extends('backend.template.layouts.template-base') @section('title', 'User Permissions') @section('content')

Permission

@csrf
@if ($user->hasFullAdminAccess())
This user is an Admin and has full access to all modules. Permission checkboxes below are optional and do not restrict admins.
@else
Staff users only see menu items and pages for the permissions you select below.
@endif
@php $modules = $permissions->unique('page')->pluck('page'); @endphp @foreach ($modules as $module) @endforeach
S.No Module Permission
{{ $loop->iteration }} @foreach ($permissions->where('page', $module) as $permission) @endforeach
@endsection @section('scripts') @endsection