]> BookStack Code Mirror - bookstack/blob - resources/views/users/preferences/notifications.blade.php
3a301aeb6a4b879b778ed0132b50a36fa743f8be
[bookstack] / resources / views / users / preferences / notifications.blade.php
1 @extends('layouts.simple')
2
3 @section('body')
4     <div class="container small my-xl">
5
6         <section class="card content-wrap auto-height">
7             <form action="{{ url('/preferences/notifications') }}" method="post">
8                 {{ method_field('put') }}
9                 {{ csrf_field() }}
10
11                 <h1 class="list-heading">{{ trans('preferences.notifications') }}</h1>
12                 <p class="text-small text-muted">{{ trans('preferences.notifications_desc') }}</p>
13
14                 <div class="toggle-switch-list">
15                     <div>
16                         @include('form.toggle-switch', [
17                             'name' => 'preferences[own-page-changes]',
18                             'value' => $preferences->notifyOnOwnPageChanges(),
19                             'label' => trans('preferences.notifications_opt_own_page_changes'),
20                         ])
21                     </div>
22                     <div>
23                         @include('form.toggle-switch', [
24                             'name' => 'preferences[own-page-comments]',
25                             'value' => $preferences->notifyOnOwnPageComments(),
26                             'label' => trans('preferences.notifications_opt_own_page_comments'),
27                         ])
28                     </div>
29                     <div>
30                         @include('form.toggle-switch', [
31                             'name' => 'preferences[comment-replies]',
32                             'value' => $preferences->notifyOnCommentReplies(),
33                             'label' => trans('preferences.notifications_opt_comment_replies'),
34                         ])
35                     </div>
36                 </div>
37
38                 <div class="form-group text-right">
39                     <button class="button">{{ trans('preferences.notifications_save') }}</button>
40                 </div>
41             </form>
42         </section>
43
44     </div>
45 @stop