@extends('users.account.layout') @section('main')
{{ method_field('put') }} {{ csrf_field() }}

{{ trans('preferences.notifications') }}

{{ trans('preferences.notifications_desc') }}

@include('form.toggle-switch', [ 'name' => 'preferences[own-page-changes]', 'value' => $preferences->notifyOnOwnPageChanges(), 'label' => trans('preferences.notifications_opt_own_page_changes'), ])
@if (!setting('app-disable-comments'))
@include('form.toggle-switch', [ 'name' => 'preferences[own-page-comments]', 'value' => $preferences->notifyOnOwnPageComments(), 'label' => trans('preferences.notifications_opt_own_page_comments'), ])
@include('form.toggle-switch', [ 'name' => 'preferences[comment-replies]', 'value' => $preferences->notifyOnCommentReplies(), 'label' => trans('preferences.notifications_opt_comment_replies'), ])
@endif

{{ trans('preferences.notifications_watched') }}

{{ trans('preferences.notifications_watched_desc') }}

@if($watches->isEmpty())

{{ trans('common.no_items') }}

@else
@foreach($watches as $watch)
@include('entities.icon-link', ['entity' => $watch->watchable])
@icon('watch' . ($watch->ignoring() ? '-ignore' : '')) {{ trans('entities.watch_title_' . $watch->getLevelName()) }}
@endforeach
@endif
{{ $watches->links() }}
@stop