favorite.blade.php 9.91 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('workers.emblema')

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

                <div class="cabinet__body">
                    <div class="cabinet__body-item">
                        <h2 class="title cabinet__title">Избранные вакансии</h2>
                    </div>
                    <div class="cabinet__body-item">
                        <div class="cabinet__filters">
                            <div class="cabinet__filters-item">
                                <form class="search" action="{{ route('worker.colorado') }}" method="GET">
                                    <input type="search" name="search" id="search" class="input" placeholder="Поиск&hellip;">
                                    <button type="submit" class="button">Найти</button>
                                    <span>
                                        <svg>
                                            <use xlink:href="{{ asset('images/sprite.svg#search') }}"></use>
                                        </svg>
                                    </span>
                                </form>
                            </div>
                            <div class="cabinet__filters-item">
                                <div class="select">
                                    <select class="js-select2" id="sort_ajax" name="sort_ajax">
                                        <option value="default">Сортировка (по умолчанию)</option>
                                        <option value="name (asc)">По имени (возрастание)</option>
                                        <option value="name (desc)">По имени (убывание)</option>
                                        <option value="created_at (asc)">По дате (возрастание)</option>
                                        <option value="created_at (desc)">По дате (убывание)</option>
                                    </select>
                                </div>
                            </div>
                        </div>
                        @if ($Query->count())
                            <div class="cabinet__vacs">
                                <div id="main_ockar" name="main_ockar" class="cabinet__vacs-body" style="width:100%;">
                                    @foreach ($Query as $Q)
                                        <div class="main__vacancies-item main__employer-page-two-item">
                                            <a href="" class="back main__employer-page-two-item-back">
                                                <svg>
                                                    <use xlink:href="{{ asset('images/sprite.svg#back') }}"></use>
                                                </svg>
                                                <span>
                                                        Вернуться к списку вакансий
                                                </span>
                                            </a>
                                            <div class="main__employer-page-two-item-toper">
                                                @if (isset($Q->employer))
                                                    <img src="{{ asset(Storage::url($Q->employer->logo)) }}" alt="{{ $Q->employer->name }}">
                                                @endif
                                                <span>@if (!empty($Q->name)) {{ $Q->name }} @endif</span>
                                            </div>
                                            <div class="main__employer-page-two-item-text">
                                                <div class="main__employer-page-two-item-text-name">Судоходная компания ведет набор
                                                    специалистов на следующие должности:</div>
                                                <div class="main__employer-page-two-item-text-links">
                                                    @if (isset($Q->jobs))
                                                        @foreach ($Q->jobs as $key => $j)
                                                            <a>“{{ $j->name }}” – з/п от @if (isset($Q->jobs_code[$key]->min_salary)) {{ $Q->jobs_code[$key]->min_salary }} @endif - @if (isset($Q->jobs_code[$key]->max_salary)) {{ $Q->jobs_code[$key]->max_salary }} @endif рублей (на руки)</a>
                                                        @endforeach
                                                    @endif
                                                </div>
                                            </div>
                                            <div class="main__employer-page-two-item-text">
                                                <div class="main__employer-page-two-item-text-name">Мы предлагаем:</div>
                                                <div class="main__employer-page-two-item-text-body">
                                                    {!! $Q->text !!}
                                                </div>
                                            </div>
                                            <div class="main__employer-page-two-item-text">
                                                <div class="main__employer-page-two-item-text-name">Наши ожидания:</div>
                                                <div class="main__employer-page-two-item-text-body">
                                                    {!! $Q->description !!}
                                                </div>
                                            </div>
                                            <div class="main__employer-page-two-item-text">
                                                <div class="main__employer-page-two-item-text-name">Резюме направляйте на почту:</div>
                                                <div class="main__employer-page-two-item-text-body">
                                                    {!! $Q->contacts_emails !!}
                                                </div>
                                            </div>
                                            <div class="main__employer-page-two-item-text">
                                                <div class="main__employer-page-two-item-text-name">Или звоните:</div>
                                                <div class="main__employer-page-two-item-text-body">
                                                    {!! $Q->contacts_telephones !!}
                                                </div>
                                            </div>
                                            <div class="main__employer-page-two-item-tags">
                                                @if (isset($Q->jobs))
                                                    @foreach ($Q->jobs as $key => $j)
                                                        <span class="main__employer-page-two-item-tag">#{{ $j->name }}</span>
                                                    @endforeach
                                                @endif
                                            </div>
                                            <div class="main__employer-page-two-item-buttons">
                                                <button type="button"
                                                        class="button main__employer-page-two-item-button">Откликнуться</button>
                                                <a href="{{ route('vacancie', ['vacancy' => $Q->id]) }}" class="button button_light main__employer-page-two-item-button">Подробнее</a>
                                            </div>
                                            <div class="main__employer-page-two-item-bottom">
                                                <div class="main__employer-page-two-item-bottom-date">{{ $Q->created_at }}</div>
                                                <button type="button" class="like main__employer-page-two-item-bottom-like js-toggle">
                                                    <svg>
                                                        <use xlink:href="{{ asset('images/sprite.svg#heart') }}"></use>
                                                    </svg>
                                                </button>
                                            </div>
                                        </div>
                                    @endforeach
                                    <div style="margin-top: 20px">
                                        {{ $Query->appends($_GET)->links('paginate') }}
                                    </div>
                                </div>
                        @else
                        <div class="notify">
                            <svg>
                                <use xlink:href="{{ asset('images/sprite.svg#i') }}"></use>
                            </svg>
                            <span>Нет избранных работодателей</span>
                        </div>
                        @endif
                    </div>
                </div>
            </div>
        </div>
    </section>
    </div>

@endsection