@extends('layouts.panel') @section('title', $title) @push('css') @endpush @section('breadcrumb') @endsection @section('content') @slot('title')
{{$title}}
@endslot
@foreach ($roles as $role) @endforeach
@lang('Role') @lang('Permissions') @lang('Action')
{{ $role->role_name }} @php if ($role->name == ROLE_SUPERADMIN){ $permissions = \App\Models\Permission::all(); } else { $permissions = $role->permissions; } $permissions = $permissions->chunk(6); @endphp @forelse ($permissions as $chunk)
@foreach ($chunk as $permission) {{ unslug_str($permission->name) }} @endforeach
@empty @lang('No Permission Assigned') @endforelse
{{-- --}}
{{--
--}}
{{-- --}}
@endsection @push('js') @endpush