diff --git a/lang/ar/booking.php b/lang/ar/booking.php
index d853b3a..be88c89 100644
--- a/lang/ar/booking.php
+++ b/lang/ar/booking.php
@@ -65,6 +65,12 @@ return [
'limit_message' => 'ملاحظة: يمكنك حجز استشارة واحدة كحد أقصى في اليوم.',
'user_booked' => 'حجزك',
+ // Logged-in user on guest page
+ 'logged_in_title' => 'لديك حساب بالفعل',
+ 'logged_in_message' => 'كمستخدم مسجل، يمكنك حجز الاستشارات مباشرة من لوحة التحكم الخاصة بك بطريقة أسهل وتتبع أفضل.',
+ 'go_to_dashboard' => 'احجز من حسابي',
+ 'or_logout' => 'أو قم بتسجيل الخروج للمتابعة كضيف',
+
// Guest booking
'guest_intro' => 'اطلب موعد استشارة. لا حاجة لإنشاء حساب - ما عليك سوى ملء بياناتك أدناه.',
'guest_name' => 'الاسم الكامل',
diff --git a/lang/en/booking.php b/lang/en/booking.php
index 2a68035..8ae42e2 100644
--- a/lang/en/booking.php
+++ b/lang/en/booking.php
@@ -65,6 +65,12 @@ return [
'limit_message' => 'Note: You can book a maximum of 1 consultation per day.',
'user_booked' => 'Your booking',
+ // Logged-in user on guest page
+ 'logged_in_title' => 'You Already Have an Account',
+ 'logged_in_message' => 'As a registered user, you can book consultations directly from your dashboard with a simpler process and better tracking.',
+ 'go_to_dashboard' => 'Book from My Account',
+ 'or_logout' => 'Or log out to continue as a guest',
+
// Guest booking
'guest_intro' => 'Request a consultation appointment. No account required - simply fill in your details below.',
'guest_name' => 'Full Name',
diff --git a/resources/views/livewire/pages/booking.blade.php b/resources/views/livewire/pages/booking.blade.php
index 5b9bb9c..ca34d87 100644
--- a/resources/views/livewire/pages/booking.blade.php
+++ b/resources/views/livewire/pages/booking.blade.php
@@ -35,11 +35,13 @@ new #[Layout('components.layouts.public')] class extends Component
public bool $showConfirmation = false;
+ public bool $isLoggedIn = false;
+
public function mount(): void
{
- // Redirect logged-in users to client booking
+ // Check if user is logged in - show friendly message instead of booking form
if (auth()->check()) {
- $this->redirect(route('client.consultations.book'));
+ $this->isLoggedIn = true;
return;
}
@@ -195,24 +197,55 @@ new #[Layout('components.layouts.public')] class extends Component
{{ __('booking.request_consultation') }}
- @if(session('success'))
-
+ {{ __('booking.logged_in_message') }} +
+{{ __('booking.guest_intro') }}
-- {{ __('booking.select_date_time') }} -
- -+ {{ __('booking.or_logout') }} +
+{{ __('booking.guest_intro') }}
++ {{ __('booking.select_date_time') }} +
+ +