subcribe.blade.php
2.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
@extends('layout.frontend', ['title' => 'Настройка уведомлений - РекаМоре'])
@section('scripts')
@endsection
@section('content')
<section class="cabinet">
<div class="container">
<ul class="breadcrumbs cabinet__breadcrumbs">
<li><a href="{{ route('index') }}">Главная</a></li>
<li><b>Личный кабинет</b></li>
</ul>
<div class="cabinet__wrapper">
<div class="cabinet__side">
@include('workers.menu', ['item' => 11])
</div>
<div class="cabinet__body">
<div class="cabinet__body-item">
<h2 class="title cabinet__title">Настройки уведомлений</h2>
</div>
@include('messages_error')
<div class="cabinet__body-item">
<form class="cabinet__nots" action="{{ route('worker.save_subscribe') }}" method="post">
@csrf
<p class="cabinet__text">Укажите адрес электронной почты для получения уведомлений</p>
<input type="email" name="email" class="input" placeholder="info@rekamore.su" required
value="{{$user->subscribe_email??$user->subscribe_email}}"
>
<label class="checkbox">
<input type="checkbox" name="email_msg" class="checkbox__input"
{{ $user->subscribe == 1 ? 'checked' : '' }}>
<span class="checkbox__icon">
<svg>
<use xlink:href="{{ asset('images/sprite.svg#v') }}"></use>
</svg>
</span>
<span class="checkbox__text">
<span>Получать уведомления о новых сообщениях на почту</span>
</span>
</label>
<button type="submit" class="button">Сохранить</button>
</form>
</div>
</div>
</div>
</div>
</section>
</div>
@endsection