@php use Carbon\Carbon; $userData = session()->get('user'); $fields = ['users.profile_status','users.created_at','users.image1']; $userDetails = getUserDetails($userData['users_id'], $fields); $created = Carbon::parse($userDetails->created_at); $endDate = $created->addDays(3); $daysLeft = Carbon::now()->diffInDays($endDate, false); $initials = ''; $profileImage = null; $profileImage = $userDetails->image1 ?? null; // Generate initials $fullName = trim($userData['name'] ?? ''); $parts = preg_split('/\s+/', $fullName); $first = strtoupper($parts[0][0] ?? ''); $last = strtoupper($parts[1][0] ?? ''); $initials = ($first . $last) ?: strtoupper(substr($fullName, 0, 1)); @endphp BYOB Dashboard
@if(request()->routeIs('dashboard.home'))

Hi, {{$userData['name']}}

Welcome back to BYOB

@elseif(request()->routeIs('courses.page'))

Learning Dashboard

Explore your Courses and online Training program

@elseif(request()->routeIs('order.history'))

Order History

Explore your Order History and see your Previous Ordered Product.

@else

Hi, {{$userData['name']}}

Welcome back to BYOB

@endif
Complete your Verification
You need to complete your Full verification process in next 3 days !
@if($userDetails->profile_status == 0) @if($daysLeft > 0)

Notification : Your profile is pending. Please complete it—{{ $daysLeft }} days remaining. Click Here to complete

@else

Notification : Your profile completion deadline has passed.

@endif @endif