@if (session('success')) @endif @if (session('error') || $errors->any()) @endif @php $user = Auth::guard('user')->user(); @endphp @if (Route::currentRouteName() == 'web.dashboard')
user
Have a Great Day!,
{{ $user ? $user->name : 'Guest' }}
{{ $user ? number_format($user->coin_balance ?? 0) : 0 }} {{-- @php $notiCount = $user->unread_notifications ?? 0; @endphp @if ($notiCount > 0) {{ $notiCount }} @endif --}}
@else

@yield('title')

@endif @yield('content')