@extends('Admin.layout') @section('content')
| SNO | ROLE | ACCESS STATUS | ACTION |
|---|---|---|---|
| {{ $loop->iteration }} | {{ $row->role }} | @php $hasAccess = \App\Models\RoleAccess::where('role_id', $row->id) ->whereNotNull('permissions') ->whereRaw('JSON_LENGTH(permissions) > 0') ->exists(); @endphp @if($hasAccess) Access Configured @else Not Configured @endif |