diff --git a/app/Livewire/Messages.php b/app/Livewire/Messages.php index cf27921..f190b43 100644 --- a/app/Livewire/Messages.php +++ b/app/Livewire/Messages.php @@ -21,7 +21,6 @@ public function mount(): void $this->currentUserRole = $this->loggedInUser->role; } - //openChat public function openChat($id): void { $this->selectedUser = User::find($id); diff --git a/resources/views/layouts/sidebar.blade.php b/resources/views/layouts/sidebar.blade.php index fc2ad7d..6ce65d8 100644 --- a/resources/views/layouts/sidebar.blade.php +++ b/resources/views/layouts/sidebar.blade.php @@ -3,9 +3,9 @@
-
+
-
@if($currentUserRole == 'writer')
@@ -22,16 +64,16 @@ class="absolute text-black/80 right-5 top-[50%] transform translate-x-1/2 -trans
-
+
@foreach($clients as $user) -
+
{{ $user->name }}
-
+

{{ $user->name }}

@@ -45,9 +87,6 @@ class="w-12 h-12 rounded-full">
@endif -
- -