]> BookStack Code Mirror - bookstack/blob - resources/views/users/account/index.blade.php
11a5bc9c90acfd995081e5e94acc1cbf86279cd4
[bookstack] / resources / views / users / account / index.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 items-center justify-space-between gap-m flex-container-row wrap">
7             <div class="flex min-width-m">
8                 <h2 class="list-heading">{{ trans('preferences.shortcuts_interface') }}</h2>
9                 <p class="text-muted">{{ trans('preferences.shortcuts_overview_desc') }}</p>
10             </div>
11             <div class="text-right">
12                 <a href="{{ url('/my-account/shortcuts') }}" class="button outline">{{ trans('common.manage') }}</a>
13             </div>
14         </section>
15
16         @if(!user()->isGuest() && userCan('receive-notifications'))
17             <section class="card content-wrap auto-height items-center justify-space-between gap-m flex-container-row wrap">
18                 <div class="flex min-width-m">
19                     <h2 class="list-heading">{{ trans('preferences.notifications') }}</h2>
20                     <p class="text-muted">{{ trans('preferences.notifications_desc') }}</p>
21                 </div>
22                 <div class="text-right">
23                     <a href="{{ url('/my-account/notifications') }}" class="button outline">{{ trans('common.manage') }}</a>
24                 </div>
25             </section>
26         @endif
27
28         @if(!user()->isGuest())
29             <section class="card content-wrap auto-height items-center justify-space-between gap-m flex-container-row wrap">
30                 <div class="flex min-width-m">
31                     <h2 class="list-heading">{{ trans('settings.users_edit_profile') }}</h2>
32                     <p class="text-muted">{{ trans('preferences.profile_overview_desc') }}</p>
33                 </div>
34                 <div class="text-right">
35                     <a href="{{ user()->getEditUrl() }}" class="button outline">{{ trans('common.manage') }}</a>
36                 </div>
37             </section>
38         @endif
39
40         @if(!user()->isGuest())
41             <section class="card content-wrap auto-height items-center flex-container-row gap-m gap-x-l wrap justify-space-between">
42                 <div class="flex-min-width-m">
43                     <h2 class="list-heading">{{ trans('settings.users_mfa') }}</h2>
44                     <p class="text-muted">{{ trans('settings.users_mfa_desc') }}</p>
45                     <p class="text-muted">
46                         @if ($mfaMethods->count() > 0)
47                             <span class="text-pos">@icon('check-circle')</span>
48                         @else
49                             <span class="text-neg">@icon('cancel')</span>
50                         @endif
51                         {{ trans_choice('settings.users_mfa_x_methods', $mfaMethods->count()) }}
52                     </p>
53                 </div>
54                 <div class="text-right">
55                     <a href="{{ url('/mfa/setup')  }}"
56                        class="button outline">{{ trans('common.manage') }}</a>
57                 </div>
58             </section>
59         @endif
60
61     </div>
62 @stop