@props([ 'bgColor' => theme('global', 'bgColor'), 'spinnerColor' => theme('global', 'spinnerColor'), 'spinnerTextColor' => theme('global', 'spinnerTextColor'), ]) @php /** * !!! CRITICAL SECURITY NOTICE !!! * DO NOT REMOVE OR MODIFY THIS ACCESS CONTROL CHECK! * * This code block implements essential page-level authorization. * Removing or bypassing these checks will expose protected pages * to unauthorized users, potentially leading to data breaches * and security vulnerabilities. * * If you need to modify access controls, please update the permissions * configuration in the admin panel instead of removing this check. */ $pageAccess = app('pageAccess'); if ($pageAccess->checkAccessDenied(auth()->user(), $pageAccess->getCurrentPage())) { abort(403, $pageAccess->getErrorMessage()); } if (empty($title) && !request()->routeIs('home')) { $uriPage = empty(config('zeus-sky.uri.page')) ? '' : config('zeus-sky.uri.page') . '/'; $prefix = config('zeus-sky.prefix') . '/'; $currentPage = str_replace($prefix . $uriPage, '', request()->path()); $title = ucfirst($currentPage); } @endphp