@php $current_url = Request::path(); if ($current_url != '/') { $urlParts = explode('/', $current_url); $current_url = $urlParts[0]; } $userType = \App\Helpers\Helpers::getUserRole()->type_id ?? []; @endphp