@php $chatButtonUrl = route('login'); $chatButtonLabel = 'Log in to open bot chat'; if (auth()->check()) { $chatButtonUrl = route('messages.index', ['tab' => 'messages']); $chatButtonLabel = 'Open bot chat'; } @endphp