send_all.blade.php 3.01 KB
@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">
                    <div class="cabinet__side-toper">
                        @include('employers.emblema')
                    </div>

                    @include('employers.menu', ['item' => 9])
                </div>

                <form class="cabinet__body" action="{{ route('employer.send_all_post') }}" method="POST">
                    @csrf
                    <div class="cabinet__body-item">
                        <div class="cabinet__descr">
                            <h2 class="title cabinet__title">Рассылка сообщений</h2>
                            @include('messages_error')
                        </div>
                    </div>

                    <div class="cabinet__body-item">
                        <div class="cabinet__inputs">
                            <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group">
                                <label class="form-group__label">Выберите должность</label>
                                <div class="form-group__item">
                                    <div class="select">
                                        <select class="js-select2" name="job_title_ids[]" id="job_title_ids[]" multiple="multiple" required>
                                            @if ($job_titles->count())
                                                @foreach($job_titles as $job_title)
                                                    <option value="{{ $job_title->id }}">{{ $job_title->name }}</option>
                                                @endforeach
                                            @endif
                                        </select>
                                    </div>
                                </div>
                            </div>
                            <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group">
                                <label class="form-group__label">Введите текст сообщения</label>
                                <div class="form-group__item">
                                    <textarea class="textarea" name="message_text" required>{{ old('message_text') ?? '' }}</textarea>
                                </div>
                            </div>
                        </div>
                        <button type="submit" class="button cabinet__submit">Отправить</button>
                    </div>
                </form>
            </div>
        </div>
    </section>
    </div>
@endsection