diff --git a/app/Livewire/NotificationsPage.php b/app/Livewire/Pages/Notifications.php similarity index 92% rename from app/Livewire/NotificationsPage.php rename to app/Livewire/Pages/Notifications.php index 1d86b1c2..0af99ffc 100644 --- a/app/Livewire/NotificationsPage.php +++ b/app/Livewire/Pages/Notifications.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace App\Livewire; +namespace App\Livewire\Pages; use App\Policies\NotificationPolicy; use Carbon\Carbon; @@ -13,7 +13,7 @@ use Illuminate\Support\Facades\Auth; use Livewire\Component; -final class NotificationsPage extends Component +final class Notifications extends Component { use AuthorizesRequests; @@ -48,7 +48,7 @@ public function markAsRead(string $notificationId): void public function render(): View { - return view('livewire.notifications-page', [ + return view('livewire.pages.notifications', [ // @phpstan-ignore-next-line 'notifications' => Auth::user() ->unreadNotifications() diff --git a/resources/views/livewire/notifications-page.blade.php b/resources/views/livewire/notifications-page.blade.php deleted file mode 100644 index 9cff88be..00000000 --- a/resources/views/livewire/notifications-page.blade.php +++ /dev/null @@ -1,208 +0,0 @@ -
- {{ __('pages/notification.empty') }} -
-- {{ __('pages/notification.choose_content') }} -
-- {{ __('pages/notification.share_content') }} -
-- {{ __('pages/notification.start_discussion_description_text') }} -
-- {{ __('pages/notification.ask_help_description') }} -
-+ {{ __('pages/notification.empty') }} +
++ {{ __('pages/notification.choose_content') }} +
++ {{ __('pages/notification.share_content') }} +
++ {{ __('pages/notification.start_discussion_description_text') }} +
++ {{ __('pages/notification.ask_help_description') }} +
+