frontend.blade.php 16.9 KB
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">

<head>
    <meta charset="utf-8">
    <title>{{ $title }}</title>
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <meta name="theme-color" content="#377D87">
    <script src="{{ asset('js/jquery.js') }}"></script>
    <script src="{{ asset('js/jquery-ui.js') }}"></script>
    <script src="{{ asset('js/func.js') }}"></script>
    <link rel="stylesheet" href="{{ asset('css/picker.min.css') }}">
    <link rel="stylesheet" href="{{ asset('js/chosen/chosen.min.css') }}">
    <script src="{{ asset('js/chosen/chosen.jquery.min.js') }}"></script>
    <link rel="stylesheet" href="{{ asset('css/telegram.css') }}">
    <link rel="stylesheet" href="{{ asset('css/star-rating.min.css') }}">
    <link rel="stylesheet" href="{{ asset('css/style_may2024.css') }}">
    <link rel="stylesheet" href="{{ asset('css/helpers.css') }}">
    <style>
        .err_red {
            border: red 2px solid;
        }

        .input[disabled] {
            /* color: #9c9d9d; */
            background: #FFFFFF;
        }
    </style>
</head>

<body id="body" onload="createCaptcha()">
<a href="#body" class="to-top js-scroll-to">
    <svg>
        <use xlink:href="{{ asset('images/sprite.svg#arrow-top') }}"></use>
    </svg>
</a>

<div> <!-- BEGIN TOP WRAPPER -->
    <header class="header">
        <div class="container">
            <div class="header__body">
                <div class="header__left">
                    <a href="{{ route('index') }}" class="header__logo">
                        <svg>
                            <use xlink:href="{{ asset('images/sprite.svg#logo') }}"></use>
                        </svg>
                    </a>
                    <nav class="header__menu">
                        <a href="{{ route('vacancies') }}" class="header__menu-item">Вакансии</a>
                        <a href="{{ route('shipping_companies') }}" class="header__menu-item">Судоходные компании</a>
                        <a href="{{ route('education') }}" class="header__menu-item">Образование</a>
                    </nav>
                </div>
                <div class="header__right">
                    <div class="header__right-line"></div>
                    <button class="header__burger">
                        <svg>
                            <use xlink:href="{{ asset('images/sprite.svg#burger') }}"></use>
                        </svg>
                    </button>
                    @guest
                        <a class="button header__sign" data-fancybox data-src="#sign"
                           data-options='{"touch":false,"autoFocus":false}'>Войти</a>
                    @else
                        <a
                            class="button header__sign"
                            href="@if ($UserId->is_worker) {{ route('worker.cabinet') }} @else {{ route('employer.cabinet') }} @endif">
                            Личный кабинет
                        </a>
                    @endguest
                </div>
            </div>
        </div>
    </header>

    @yield('content')
</div> <!-- END TOP WRAPPER -->

<div> <!-- BEGIN BOTTOM WRAPPER -->
    <footer class="footer">
        <div class="container">
            <div class="footer__mobile">

                <button class="footer__mobile-toper js-toggle active">
                    <a href="{{ route('index') }}">
                        <svg>
                            <use xlink:href="{{ asset('images/sprite.svg#logo') }}"></use>
                        </svg>
                    </a>
                    <span>
                            <svg>
                                <use xlink:href="{{ asset('images/sprite.svg#arrow-top') }}"></use>
                            </svg>
                        </span>
                </button>
                <div class="footer__mobile-menu">
                    <div class="footer__mobile-menu-item">
                        <button class="js-toggle">
                            <b>Соискателям</b>
                            <span><svg>
                                        <use xlink:href="{{ asset('images/sprite.svg#arrow-top') }}"></use>
                                    </svg></span>
                        </button>
                        <div>
                            @if (\Illuminate\Support\Facades\Auth::user() === null)
                                <a data-fancybox data-src="#reg" data-options='{"touch":false,"autoFocus":false}'>Регистрация</a>
                            @endif
                            <a href="{{ route('vacancies') }}">Вакансии</a>
                            <a href="{{ route('education') }}">Образование</a>
                            <a href="{{ route('news') }}">Новости</a>
                            <a href="{{ $companies[0]->telegram }}">Телеграм</a>
                            <a href="{{ $companies[0]->vkontact }}">ВКонтакте</a>
                            <a href="{{ route('page', ['pages' => "Publichnaya-oferta-soiskatelyam"]) }}">Публичная
                                оферта</a>
                        </div>
                    </div>
                    <div class="footer__mobile-menu-item">
                        <button class="js-toggle">
                            <b>Работодателям</b>
                            <span><svg>
                                        <use xlink:href="{{asset('images/sprite.svg#arrow-top') }}"></use>
                                    </svg></span>
                        </button>
                        <div>
                            @if (\Illuminate\Support\Facades\Auth::user() === null)
                                <a data-fancybox data-src="#reg" data-options='{"touch":false,"autoFocus":false}'>Регистрация</a>
                            @endif
                            <a href="{{ route('bd_resume') }}">База резюме</a>
                            <a href="{{ route('page', ['pages' => "Usloviya-razmescheniya"]) }}">Условия размещения</a>
                            <a href="{{ $companies[0]->telegram }}">Телеграм</a>
                            <a href="{{ $companies[0]->vkontact }}">ВКонтакте</a>
                            <a href="{{ route('page', ['pages' => "Publichnaya-oferta-rabotodatelyam"]) }}">Публичная
                                оферта</a>
                        </div>
                    </div>
                </div>
                <div class="footer__mobile-contacts">
                    <b>Контакты</b>
                    <a href="tel:{{ $companies[0]->telephone }}">{{ $companies[0]->telephone }}</a>
                    <a href="mailto:{{ $companies[0]->email }}">{{ $companies[0]->email }}</a>
                </div>
                <div class="footer__mobile-bottom">
                    <div class="socials">
                        <a href="{{ $companies[0]->vkontact }}" target="_blank">
                            <svg>
                                <use xlink:href="{{ asset('images/sprite.svg#vk') }}"></use>
                            </svg>
                        </a>
                        <a href="{{ $companies[0]->telegram }}" target="_blank">
                            <svg>
                                <use xlink:href="{{ asset('images/sprite.svg#tg') }}"></use>
                            </svg>
                        </a>
                    </div>
                    <nav class="footer__mobile-links">
                        <a href="{{ route('page', ['pages' => "Politika-konfidencialnosti"]) }}">Политика
                            конфиденциальности</a>
                        <span></span>
                        <a href="{{ route('page', ['pages' => "Polzovatelskoe-soglashenie"]) }}">Пользовательское
                            соглашение</a>
                    </nav>
                    &copy; 2023 &mdash; RekaMore.su
                    <a href="{{ route('index') }}" class="nls" target="_blank">
                        <svg>
                            <use xlink:href="{{ asset('images/sprite.svg#nls') }}"></use>
                        </svg>
                        <span>
                                Дизайн и разработка:
                                <b>NoLogoStudio.ru</b>
                            </span>
                    </a>
                </div>
            </div>
            <div class="footer__main">
                <div class="footer__main-body">

                    <a href="" class="footer__main-logo">
                        <svg>
                            <use xlink:href="{{ asset('images/sprite.svg#logo') }}"></use>
                        </svg>
                    </a>
                    <div class="footer__main-col">
                        <div class="footer__main-title">Соискателям</div>
                        <nav>
                            @if (\Illuminate\Support\Facades\Auth::user() === null)
                                <a data-fancybox data-src="#reg" data-options='{"touch":false,"autoFocus":false}'>Регистрация</a>
                            @endif
                            <a href="{{ route('vacancies') }}">Вакансии</a>
                            <a href="{{ route('education') }}">Образование</a>
                            <a href="{{ route('news') }}">Новости</a>
                            <a href="{{ $companies[0]->telegram }}">Телеграм</a>
                            <a href="{{ $companies[0]->vkontact }}">ВКонтакте</a>
                            <a href="{{ route('page', ['pages' => "Publichnaya-oferta-soiskatelyam"]) }}">Публичная
                                оферта</a>
                        </nav>
                    </div>
                    <div class="footer__main-col">
                        <div class="footer__main-title">Работодателям</div>
                        <nav>
                            @if (\Illuminate\Support\Facades\Auth::user() === null)
                                <a data-fancybox data-src="#reg" data-options='{"touch":false,"autoFocus":false}'>Регистрация</a>
                            @endif
                            <a href="{{ route('bd_resume') }}">База резюме</a>
                            <a href="{{ route('page', ['pages' => "Usloviya-razmescheniya"]) }}">Условия размещения</a>
                            <a href="{{ $companies[0]->telegram }}">Телеграм</a>
                            <a href="{{ $companies[0]->vkontact }}">ВКонтакте</a>
                            <a href="{{ route('page', ['pages' => "Publichnaya-oferta-rabotodatelyam"]) }}">Публичная
                                оферта</a>
                        </nav>
                    </div>

                    <div class="footer__main-col">
                        <div class="footer__main-title">Контакты</div>
                        <div class="footer__main-contacts">
                            <a href="tel:{{ $companies[0]->telephone }}">{{ $companies[0]->telephone }}</a>
                            <a href="mailto:{{ $companies[0]->email }}">{{ $companies[0]->email }}</a>
                        </div>
                        <div class="socials">
                            <a href="{{ $companies[0]->vkontact }}" target="_blank">
                                <svg>
                                    <use xlink:href="{{ asset('images/sprite.svg#vk') }}"></use>
                                </svg>
                            </a>
                            <a href="{{ $companies[0]->telegram }}" target="_blank">
                                <svg>
                                    <use xlink:href="{{ asset('images/sprite.svg#tg') }}"></use>
                                </svg>
                            </a>
                        </div>
                    </div>
                </div>

                <div class="footer__main-copy">
                    <div>&copy; 2023 &mdash; RekaMore.su</div>
                    <nav>
                        <a href="{{ route('page', ['pages' => "Politika-konfidencialnosti"]) }}">Политика
                            конфиденциальности</a>
                        <span></span>
                        <a href="{{ route('page', ['pages' => "Polzovatelskoe-soglashenie"]) }}">Пользовательское
                            соглашение</a>
                    </nav>
                    <div> @if (isset($_COOKIE['favorite_vacancy']))
                            Куки вакансий: {{ print_r($_COOKIE['favorite_vacancy']) }}
                        @endif</div>
                    <a href="{{ route('index') }}" class="nls" target="_blank">
                        <svg>
                            <use xlink:href="{{ asset('images/sprite.svg#nls') }}"></use>
                        </svg>
                        <span>
                                Дизайн и разработка:
                                <b>NoLogoStudio.ru</b>
                        </span>
                    </a>
                </div>
            </div>
        </div>
    </footer>
</div> <!-- END BOTTOM WRAPPER -->

<div hidden> <!-- BEGIN MODALS WRAPPER -->
    <!-- Соискатель отправляет сообщение работодателю -->
    @include('modals.send_worker_new')

    <!-- Работодатель отправляет сообщение соискателю -->
    @include('modals.send_employer')

    <!-- Сообщение-предупреждение о том, что сообщения только можно отправить авторизованным пользователям -->
    @include('modals.send_message_noaut')

    @include('modals.send_message_noaut2')

    <!-- Форма авторизации -->
    @include('modals.send_login')

    <!-- Сбросить пароль -->
    @include('modals.reset_password')

    <!-- Регистрация -->
    @include('modals.register')

    <!-- Благодарность по отправке сообщения работодателю -->
    @include('modals.thank_you_send_employer')

    <!-- Благодарность по отправке сообщения менеджеру -->
    @include('modals.thank_you_send_manager')

    <!-- Благодарность после регистрации -->
    @include('modals.thank_you_send_for_employer')

    <!-- Благодарность после регистрации для работника -->
    @include('modals.thank_you_send_for_worker')

    <!-- Подтверждение удаления профиля -->
    @include('modals.delete_profile')

    <!-- Подверждение об удалении профиля -->
    @include('modals.success_delete_profile')

    @include('modals.vacancy.add_comment')
    @include('modals.vacancy.ask_for_resume_comment')
    @include('modals.vacancy.ask_user_to_complete_profile')
    @include('modals.vacancy.favorite_noaut')
    @include('modals.vacancy.send_response_no_comment')
    @include('modals.vacancy.send_response_to_employer')
    @include('modals.vacancy.tell_user_to_complete_profile')
    @include('modals.send_worker')

</div> <!-- END MODALS WRAPPER -->


<script src="{{ asset('js/jquery.maskedinput.js') }}"></script>
<script src="{{ asset('js/jquery.fancybox.js') }}"></script>
<script src="{{ asset('js/jquery.select2.js') }}"></script>
<script src="{{ asset('js/swiper.js') }}"></script>
<script src="{{ asset('js/script-vc.js') }}"></script>
<script src="{{ asset('js/star-rating.min.js') }}"></script>
<script src="{{ asset('js/picker.min.js') }}"></script>
<script>
    var getUrlParameter = function getUrlParameter(sParam) {
        var sPageURL = decodeURIComponent(window.location.search.substring(1)),
            sURLVariables = sPageURL.split('&'),
            sParameterName,
            i;
        for (i = 0; i < sURLVariables.length; i++) {
            sParameterName = sURLVariables[i].split('=');
            if (sParameterName[0] === sParam) {
                return sParameterName[1] === undefined ? true : sParameterName[1];
            }
        }
    };

    $(function () {
        var style_link = "{{ asset('css/cke_wysiwyg_frame_style.css') }}";
        var iterator = 0;
        var wysiwyg_style_interval = window.setInterval(function () {
            var frame = $('.cke_wysiwyg_frame');
            frame.contents().find('head').append(
                $('<link rel="stylesheet" type="text/css" href="' + style_link + '">')
            );
            if (frame.length || (++iterator == 6)) {
                clearInterval(wysiwyg_style_interval);
            }
        }, 500);
    });
</script>
@include('js.modals')
@include('js.captha')
@yield('scripts')
</body>
</html>