@guest
{{-- @php
$bgColor = 'bg-success';
@endphp
--}}
@yield('content')
@endguest
@auth
@if (in_array(request()->route()->getName(), ['sign-in-static', 'sign-up-static', 'login', 'register', 'recover-password', 'rtl', 'virtual-reality']))
@yield('content')
@else
@php
$userRole = Auth::user()->role; // Get the user's role
$bgColor = '';
// Set different background colors based on user roles
switch($userRole) {
case 'owner':
$bgColor = 'bg-info'; // Set the background color for student
break;
case 'vendor':
$bgColor = 'bg-success'; // Set the background color for outside vendor
break;
default:
$bgColor = 'bg-primary'; // Default background color for admins
break;
}
@endphp
@if (!in_array(request()->route()->getName(), ['profile', 'profile-static']))
@elseif (in_array(request()->route()->getName(), ['profile-static', 'profile']))
@endif
@include('layouts.navbars.auth.sidenav')
@yield('content')
@endif
@endauth
@stack('js');