subcribe.blade.php 2.77 KB
@extends('layout.frontend', ['title' => 'Настройка уведомлений - РекаМоре'])

@section('scripts')

@endsection

@section('content')
    <section class="cabinet">
        <div class="container">
            @include('modals.flash-message', [
                'title' => 'Спасибо!',
                'message' => session('success')
            ])
            <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">
                    <div class="cabinet__side-toper">
                        @include('workers.emblema')
                    </div>
                    @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