@extends('components.layout') @section('title', 'Profile | ' . ($settings['site_name'] ?? 'LOCAL PULSE')) @php $user = auth()->user(); $prefs = $user->getOrCreatePreferences(); @endphp @section('content')
@if (session('status'))
{{ session('status') === 'profile-updated' ? 'Profile updated.' : 'Saved.' }}
@endif
Saved
{{ $user->savedArticles()->count() }}
Comments
{{ $user->comments()->count() }}
Articles read
{{ $user->readingHistory()->count() }}
Following
{{ count($prefs->followed_categories ?? []) + count($prefs->followed_locations ?? []) + count($prefs->followed_authors ?? []) + count($prefs->followed_tags ?? []) }}

Profile information

@csrf @method('patch')
@error('name')

{{ $message }}

@enderror
@error('email')

{{ $message }}

@enderror @if ($user instanceof \Illuminate\Contracts\Auth\MustVerifyEmail && ! $user->hasVerifiedEmail())

Your email is unverified.

@endif

Preferences

Manage your feed, notifications and reading experience.

@csrf @method('patch')

Delete account

Once your account is deleted, all data is permanently removed.

@csrf @method('delete')
@endsection