@php
$u = auth()->user();
$role = ($u && method_exists($u,'getRoleNames') && $u->getRoleNames()->count()) ? $u->getRoleNames()->first() : ($u->role ?? 'member');
@endphp
{{ ucfirst($role) }}
@php
$freelancerProfile = \App\Models\Freelancer::where('user_id', auth()->id())->first();
@endphp
@if($freelancerProfile)
Freelancer Portal
@endif