@extends('layouts.sneat') @section('content')

Permission / Manage Permission


@if ($errors->any())
@endif @if (session('success'))
{{ session('success') }}
@endif
@csrf
@php $maxTabs = 6; $visibleGroups = array_slice($groupNames, 0, $maxTabs); $moreGroups = array_slice($groupNames, $maxTabs); @endphp
@foreach ($groupNames as $group)
@foreach ($tableNames as $table) @php $permission = $existingPermissions->has($table) ? $existingPermissions[$table] : null; $tableGroup = $urlToGroupName[$table] ?? 'Other'; @endphp @if($tableGroup == $group)
{{ ucfirst(str_replace('_', ' ', $table)) }}
adds) checked @endif>
edits) checked @endif>
views) checked @endif>
deletes) checked @endif>
@endif @endforeach
@endforeach

@endsection