@php $activeProfile = $activeBusinessProfile ?? auth()->user()?->currentBusinessProfile; $userProfiles = auth()->user()?->businessProfiles; @endphp

Active profile

@php $vehicleRoute = Route::has('vehicles.index') ? route('vehicles.index') : null; @endphp @if ($vehicleRoute) Log vehicle @else @endif New profile