1 @extends('layouts.simple')
4 <div class="container small my-xl">
6 <section class="card content-wrap auto-height">
7 <form action="{{ url('/preferences/notifications') }}" method="post">
8 {{ method_field('put') }}
11 <h1 class="list-heading">{{ trans('preferences.notifications') }}</h1>
12 <p class="text-small text-muted">{{ trans('preferences.notifications_desc') }}</p>
14 <div class="toggle-switch-list">
16 @include('form.toggle-switch', [
17 'name' => 'preferences[own-page-changes]',
18 'value' => $preferences->notifyOnOwnPageChanges(),
19 'label' => trans('preferences.notifications_opt_own_page_changes'),
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'),
38 <div class="form-group text-right">
39 <button class="button">{{ trans('preferences.notifications_save') }}</button>
44 <section class="card content-wrap auto-height">
45 <h2 class="list-heading">{{ trans('preferences.notifications_watched') }}</h2>
46 <p class="text-small text-muted">{{ trans('preferences.notifications_watched_desc') }}</p>
48 @if($watches->isEmpty())
49 <p class="text-muted italic">{{ trans('common.no_items') }}</p>
51 <div class="item-list">
52 @foreach($watches as $watch)
53 <div class="flex-container-row justify-space-between item-list-row items-center wrap px-m py-s">
54 <div class="py-xs px-s min-width-m">
55 @include('entities.icon-link', ['entity' => $watch->watchable])
57 <div class="py-xs min-width-m text-m-right px-m">
58 @icon('watch' . ($watch->ignoring() ? '-ignore' : ''))
59 {{ trans('entities.watch_title_' . $watch->getLevelName()) }}
66 <div class="my-m">{{ $watches->links() }}</div>