@php $adminActiveClass = ''; $authorActiveClass = ''; $userActiveClass = ''; if (auth()->user()->isAdmin() && $dashboardType == 'admin') { $adminActiveClass = 'bg-main/5'; } elseif (auth()->user()->isAuthor() && $dashboardType == 'author') { $authorActiveClass = 'bg-main/5'; } elseif (auth()->user()->isUser() && $dashboardType == 'user') { $userActiveClass = 'bg-main/5'; } @endphp @if (auth()->user()->isAdmin())
  • Admin Dashboard
  • @endif @if (auth()->user()->isAuthor())
  • Author Dashboard
  • @endif @if (auth()->user()->isUser())
  • User Dashboard
  • @endif