diff --git a/app/Http/Controllers/NotificationController.php b/app/Http/Controllers/NotificationController.php
index abb264f..62d2b0a 100644
--- a/app/Http/Controllers/NotificationController.php
+++ b/app/Http/Controllers/NotificationController.php
@@ -20,10 +20,17 @@ class NotificationController extends Controller
}
/**
- * Delete Notifcation
+ * Delete a notification or clear all.
*/
public function delete(Request $request): RedirectResponse
{
+ // Clear all notifications if no specific ID is provided
+ if (! $request->has('id')) {
+ $request->user()->notifications()->delete();
+
+ return redirect()->back()->with('status', 'notifications-cleared');
+ }
+
$request->validate([
'id' => 'required|exists:notifications,id',
]);
diff --git a/resources/views/components/profile-layout.blade.php b/resources/views/components/profile-layout.blade.php
new file mode 100644
index 0000000..88c057d
--- /dev/null
+++ b/resources/views/components/profile-layout.blade.php
@@ -0,0 +1,17 @@
+
+ {{ $episode->title ?? 'Episode' }} +
+ + {{-- Comment --}} +No results
-(╥﹏╥)
-You haven't commented on anything yet.
+No results (╥﹏╥)
-Start exploring and like what you enjoy!
++
Start watching and your history will appear here.
++ Here's an overview of your activity on hstream.moe. Dive back into your favorites or discover something new. +
+{{ number_format($user->likes()) }}
+Episodes you've liked
+ + + +{{ number_format($user->watched->count()) }}
+Episodes watched
+ + + +{{ number_format($user->playlists->count()) }}
+Custom collections
+ +No activity yet. Start watching something!
+Recently Watched
++ {{ $watched->episode->title }} +
+Recent Comments
++ {{ $comment->presenter()->relativeCreatedAt() }} +
+ + @endforeach ++
{{ $notification->data['message'] ?? '' }}
No notifications
-(╥﹏╥)
-You're all caught up! Nothing new here.
++ Joined {{ auth()->user()->created_at->format('F Y') }} +
+
- @endif
-
- - {{ $count }} Episodes - {{ $playlist->is_private == 1 ? 'Private' : 'Public' }} - @if($count > 0) - {{ __('playlist.play') }} - @endif -
-
- - Create another Playlist -
- - Create - + @else + {{-- Empty State --}} +Create your first playlist to organize your favorite episodes.
+
- - No Playlist found! -
- - Create - -Update your name, email and avatar
+Manage WebAuthn passkeys for passwordless login
+Keep your account secure
+Hide content with specific tags from search results
+Customize your browsing experience
+Irreversible actions - proceed with caution
+