resume_1.blade.php 3.7 KB
<div class="main__resume-base-body-item">
    <div class="main__resume-base-body-item-buttons">
        <button type="button" data-id="{{ $res->id }}" id="elem{{ $res->id }}" class="like js-toggle js_box_favorit {{ \App\Classes\LikesClass::get_status_worker($res) }}" data-val="{{ $res->id }}">
            <svg>
                <use xlink:href="{{ asset('images/sprite.svg#heart') }}"></use>
            </svg>
        </button>
        @guest
            <button type="button" data-fancybox data-src="#question" data-options='{"touch":false,"autoFocus":false}'
                    class="chat js-toggle js_it_button">
                <svg>
                    <use xlink:href="{{ asset('images/sprite.svg#chat') }}"></use>
                </svg>
            </button>
        @else
            @if (App\Classes\StatusUser::Status()==0)
                @if ((!Auth()->user()->is_worker) && (Auth()->user()->is_message))
                    <button type="button" class="chat js-toggle js_it_button" data-fancybox data-src="#send2" data-vacancy="0" data-uid="{{ $idiot}}" data-tuid="{{ $res->users->id }}"  data-options='{"touch":false,"autoFocus":false}'>
                        <svg>
                            <use xlink:href="{{ asset('images/sprite.svg#chat') }}"></use>
                        </svg>
                    </button>
                @endif
            @else
                <button type="button" data-fancybox data-src="#question2" data-options='{"touch":false,"autoFocus":false}'
                        class="chat js-toggle js_it_button">
                    <svg>
                        <use xlink:href="{{ asset('images/sprite.svg#chat') }}"></use>
                    </svg>
                </button>                                    @endif
        @endif
    </div>
    <div class="main__resume-base-body-item-wrapper">
        <img src="@isset ($res->photo) {{ asset(Storage::url($res->photo)) }} @else {{ asset('images/default_man.jpg')}} @endif" alt="" class="main__resume-base-body-item-photo">
        <div class="main__resume-base-body-item-inner">
            <div>
                <b>Статус</b>
                <span>{{ $status_work[$res->status_work] }}</span>
            </div>
            <div>
                <b>Имя работника</b>
                <span>@if (isset($res->users)){{ $res->users->surname." ".$res->users->name_man." ".$res->users->surname2 }} @endif</span>
            </div>
            <div>
                <b>Номер телефона</b>
                <span><a href="tel:{{ $res->telephone }}">{{ $res->telephone }}</a></span>
            </div>
            <div>
                <b>Электронный адрес</b>
                <span><a href="mailto:{{ $res->email }}">{{ $res->email }}</a></span>
            </div>
            <div>
                <b>Город проживания</b>
                <span>{{ $res->city }}</span>
            </div>
            <div>
                <b>Опыт работы</b>
                <span>{{ $res->experience }}</span>
            </div>
        </div>
    </div>
    <div class="main__employer-page-two-item-tags">
        @if ($res->job_titles->count())
            @if (isset($res->job_titles))
                @foreach ($res->job_titles as $key => $j)
                    <span class="main__employer-page-two-item-tag">#{{ $j->name }}</span>
                @endforeach
            @endif
        @endif
    </div>
    <a href="{{ route('resume_profile', ['worker' => $res->id]) }}" class="button button_light main__resume-base-body-item-link">Перейти в резюме</a>
</div>
@endforeach

{{ $resumes->appends($_GET)->links('paginate') }}
@else
    <p>По данному запросу ничего не найдено</p>
@endif