@if(Auth::check())
@php
$user = Auth::user();
// Determine dashboard and logout routes based on user type
if($user->user_type == 1) {
$dashboardRoute = route('client.dashboard');
$logoutRoute = route('client.logout');
} elseif($user->user_type == 2) {
$dashboardRoute = route('freelancer.dashboard');
$logoutRoute = route('freelancer.logout');
} else {
$dashboardRoute = route('homepage'); // Fallback
$logoutRoute = route('homepage'); // Fallback
}
@endphp
{{ __('Dashboard') }}
@if(moduleExists('Community'))
{{ __('Community') }}
@endif
@else
@if(moduleExists('Community'))
{{ __('Community') }}
@endif
{{ __('Sign In') }}
@endif