info.blade.php 5.01 KB
@extends('layout.frontend', ['title' => 'Кабинет работодателя - РекаМоре'])

@section('scripts')
    <script src="https://cdn.ckeditor.com/ckeditor5/23.0.0/classic/ckeditor.js"></script>
    <script>
        ClassicEditor
            .create( document.querySelector( '#text' ) )
            .catch( error => {
                console.error( error );
            } );
    </script>
@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' => 0])
                </div>
                <div class="cabinet__body">
                    @include('messages_error')

                <form  action="{{ route('employer.employer_info_save', ['user' => $user_info->id]) }}" method="POST" enctype="multipart/form-data">
                    @csrf
                    <div class="cabinet__body-item">
                        <div class="cabinet__descr">
                            <h2 class="title cabinet__title">Личные данные</h2>
                            <p class="cabinet__text">Все поля обязательны для заполнения *</p>
                        </div>

                        <div class="cabinet__inputs">
                            <div class="cabinet__inputs-item form-group">
                                <label class="form-group__label">Фамилия контактера</label>
                                <div class="form-group__item">
                                    <input type="text" class="input" name="surname" id="surname" placeholder="Иванов" value="{{ old('surname') ?? $user_info->surname ?? '' }}" required>
                                    @error('surname')
                                    <span class="text-xs text-red-600">
                                          {{ $message }}
                                    </span>
                                    @enderror
                                </div>
                            </div>
                            <div class="cabinet__inputs-item form-group">
                                <label class="form-group__label">Имя контактера</label>
                                <div class="form-group__item">
                                    <input type="text" name="name_man" class="input" placeholder="Андрей" value="{{ old('name_man') ?? $user_info->name_man ?? '' }}" required>
                                    @error('name_man')
                                    <span class="text-xs text-red-600">
                                          {{ $message }}
                                    </span>
                                    @enderror
                                </div>
                            </div>

                            <div class="cabinet__inputs-item form-group">
                                <label class="form-group__label">Отчество контактера</label>
                                <div class="form-group__item">
                                    <input type="text" name="surname2" class="input" placeholder="Васильевич" value="{{ old('surname2') ?? $user_info->surname2 ?? '' }}">
                                    @error('surname2')
                                    <span class="text-xs text-red-600">
                                          {{ $message }}
                                    </span>
                                    @enderror
                                </div>
                            </div>

                            <div class="cabinet__inputs-item form-group">
                                <label class="form-group__label">Номер телефона</label>
                                <div class="form-group__item">
                                    <input type="tel" name="telephone" class="input" placeholder="+7 (___) ___-__-__" value="{{ old('telephone') ?? $user_info->telephone ?? '' }}" required>
                                    @error('telephone')
                                    <span class="text-xs text-red-600">
                                          {{ $message }}
                                    </span>
                                    @enderror
                                </div>
                            </div>

                        </div>
                    </div><br>
                    <button type="submit" class="button cabinet__submit">Сохранить изменения</button>
                </form>

                </div>
            </div>
        </div>

    </section>
</div>
    <!-- END TOP WRAPPER -->
@endsection