1 @extends('users.account.layout')
4 <section class="card content-wrap auto-height">
5 <form action="{{ url('/my-account/notifications') }}" method="post">
6 {{ method_field('put') }}
9 <h1 class="list-heading">{{ trans('preferences.notifications') }}</h1>
10 <p class="text-small text-muted">{{ trans('preferences.notifications_desc') }}</p>
12 <div class="flex-container-row wrap justify-space-between pb-m">
13 <div class="toggle-switch-list min-width-l">
15 @include('form.toggle-switch', [
16 'name' => 'preferences[own-page-changes]',
17 'value' => $preferences->notifyOnOwnPageChanges(),
18 'label' => trans('preferences.notifications_opt_own_page_changes'),
21 @if (!setting('app-disable-comments'))
23 @include('form.toggle-switch', [
24 'name' => 'preferences[own-page-comments]',
25 'value' => $preferences->notifyOnOwnPageComments(),
26 'label' => trans('preferences.notifications_opt_own_page_comments'),
30 @include('form.toggle-switch', [
31 'name' => 'preferences[comment-replies]',
32 'value' => $preferences->notifyOnCommentReplies(),
33 'label' => trans('preferences.notifications_opt_comment_replies'),
40 <button class="button">{{ trans('preferences.notifications_save') }}</button>
47 <section class="card content-wrap auto-height">
48 <h2 class="list-heading">{{ trans('preferences.notifications_watched') }}</h2>
49 <p class="text-small text-muted">{{ trans('preferences.notifications_watched_desc') }}</p>
51 @if($watches->isEmpty())
52 <p class="text-muted italic">{{ trans('common.no_items') }}</p>
54 <div class="item-list">
55 @foreach($watches as $watch)
56 <div class="flex-container-row justify-space-between item-list-row items-center wrap px-m py-s">
57 <div class="py-xs px-s min-width-m">
58 @include('entities.icon-link', ['entity' => $watch->watchable])
60 <div class="py-xs min-width-m text-m-right px-m">
61 @icon('watch' . ($watch->ignoring() ? '-ignore' : ''))
62 {{ trans('entities.watch_title_' . $watch->getLevelName()) }}
69 <div class="my-m">{{ $watches->links() }}</div>