pdf-list-people.blade.php 13.1 KB
<!DOCTYPE html>
<html lang="ru">

<head>
    <meta charset="utf-8">
    <title>Резюме соискателя</title>
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <meta name="theme-color" content="#377D87">
    <!--<link rel="stylesheet" href=" asset('css/style.css') }}">-->
    <style>
        body {
            font-family:'DejaVu Sans',sans-serif;
            background:#fff;
            font-size:1.6rem;
            font-weight:400;
            color:#363A3F;
        }

        .main {
            padding: 30px 0;
        }

        .thing {
            color: #3a3b3c;
            /* background-color: #f2f5fc; */
        }

        .thing__profile {

        }

        .thing__profile-photo {
            width: 200px;
            border-radius: 8px;
            float: left;
            margin-right: 20px;
        }

        .thing__profile-body {

        }

        .thing__title {
            width: 100%;
            font-size: 32px;
            font-weight: 700;
            line-height: 1.1;
            margin: 0;
        }

        .thing__text {
            font-size: 14px;
            line-height: 1.4;
            margin: 15px 0 0 0;
        }

        .main__spoiler {
            margin: 0px 0px 32px 0px;
        }

        .main__spoiler-body {

        }

        .main__table {
            border-collapse: collapse;
            table-layout: fixed;
            font-size: 14px;
            width: 100%;
            background: #ffffff;
        }

        .main__table thead {
            color: #ffffff;
            font-size: 16px;
            background-color: #377d87;
        }

        .main__table th {
            padding: 8px 16px;
        }

        .main__table td {
            width: 40%;
            padding: 8px 16px;
            border: 1px solid #cecece;
        }

        .main__table td b {
            font-weight: 700;
        }

        .main__table b {
            display: block;
        }

        .main__table a {
            color: #377d87;
            text-decoration: underline;
        }

        .main__table td + td {
            width: 60%;
        }

        .main__table_three td {
            width: 25% !important;
        }

        .main__table_three td:last-child {
            width: 50% !important;
        }

        .main h2 {
            margin: 0;
            font-weight: 700;
            font-size: 30px;
        }

        .main p {
            margin: 0;
            font-size: 14px;
            line-height: 1.4;
            margin: 15px 0 0 0;
        }

        .main__resume-profile-info {
            margin: 30px 0px 0px 0px;
        }

        .main__resume-profile-info-title {
            margin-bottom: 20px !important;
            color: #3a3b3c;
        }

        .main__resume-profile-info-body-item {
            margin: 0px 0px 20px 0px;
        }

        .main__resume-profile-info-body-subtitle {
            color: #4d88d9;
            margin: 0px 0px 10px 0px;
            font-weight: 700;
            font-size: 22px;
        }

        .main__resume-profile-info-body-inner {
            margin: 0;
            padding: 0;
            font-size: 12px;
        }

        .main__resume-profile-info-body-inner li {
            list-style-type: none;
            margin: 0px 0px 20px 0px;
        }

        .main__resume-profile-info-body-inner b {
            display: block;
            margin: 0px 0px 6px 0px;
            color: #377d87;
            font-size: 14px;
        }

        .main__resume-profile-info-body-inner span {
            display: block;
        }

        .main__resume-profile-info-body-inner a {
            display: block;
            text-decoration: none;
            color: inherit;
        }

    </style>
</head>

<body id="body" class="pdf">
@if (count($Query) > 0)
    @foreach ($Query as $Q)
<section class="thing thing_pdf">
    <div class="container">
        <div class="thing__profile">
            @if (!empty($Q['photo']))
                <img src="{{ asset(Storage::url($Q['photo'])) }}" alt="" class="thing__profile-photo">
            @else
                <img src="{{ asset('images/default_man.jpg') }}" alt="" class="thing__profile-photo">
            @endif
            <div class="thing__profile-body">
                <h1 class="thing__title">@if (isset($Q['users']['surname'])) {{ $Q['users']['surname']." ".$Q['users']['name_man']." ".$Q['users']['surname2'] }} @endif</h1>
                <div style="clear:both;"></div>
                <p class="thing__text">{{ $Q['text'] }}</p>
            </div>
        </div>
        @if (!empty($Q['users']['file']))
            <a href="{{ asset(Storage::url($Q['users']['file'])) }}">Анкета-файл</a>
        @endif
    </div>
</section>

<main class="main">
    <div class="container">

            <!--php dd($Query); endphp-->

        <div class="main__resume-profile">
            <div class="main__content">
                <div class="main__spoiler">

                    <!-- <button type="button" class="main__spoiler-toper js-toggle active">Основная
                        информация</button> -->
                    <div class="main__spoiler-body">
                        <table class="main__table">
                            <thead>
                            <tr>
                                <th colspan="2">Основная информация</th>
                            </tr>
                            </thead>
                            <tbody>
                            <tr>
                                <td>Имя:</td>
                                <td><b>@if (isset($Q['users']['name_man'])) {{ $Q['users']['name_man'] }} @endif</b></td>
                            </tr>
                            <tr>
                                <td>Должность:</td>
                                <td>
                                    @foreach ($Q['job_titles'] as $it)
                                    <b>{{ $it['name'] }}</b><br>
                                    @endforeach
                                </td>
                            </tr>
                            <tr>
                                <td>Телефон:</td>
                                <td><b><a>{{ $Q['telephone'] }}</a></b>
                                    <b><a>{{ $Q['telephone2'] }}</a></b>
                                </td>
                            </tr>
                            <tr>
                                <td>E-mail:</td>
                                <td><b><a>{{ $Q['email'] }}</a></b></td>
                            </tr>
                            <tr>
                                <td>Возраст:</td>
                                <td><b>{{ $Q['old_year'] }}</b></td>
                            </tr>
                            <tr>
                                <td>Статус:</td>
                                <td>
                                    @php $code = $Q['status_work']; @endphp
                                    <b>@if ($code == 0) Ищу работу @elseif($code == 1) Не указано @else Не ищу работу @endif</b></td>
                            </tr>
                            <tr>
                                <td>Город проживания:</td>
                                <td><b>{{ $Q['city'] }}</b></td>
                            </tr>
                            <tr>
                                <td>Уровень английского:</td>
                                <td><b>{{ $Q['en_is'] }}</b></td>
                            </tr>
                            <tr>
                                <td>Опыт работы:</td>
                                <td><b>{{ $Q['old_year'] }}</b></td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="main__spoiler">
                    <div class="main__spoiler-body">
                        <table class="main__table">
                            <thead>
                            <tr>
                                <th colspan="2">Сертификаты / документы</th>
                            </tr>
                            </thead>
                            <tbody>
                                @if (count($Q['sertificate']))
                                    @foreach($Q['sertificate'] as $it)
                                        <tr>
                                            <td>{{ $it['name']." ".$it['education']  }}</td>
                                            <td><a>{{ date('d.m.Y H:i:s', strtotime($it['date_begin']))."-".date('d.m.Y H:i:s', strtotime($it['end_begin'])) }}</a></td>
                                        </tr>
                                    @endforeach
                                @else
                                    <tr>
                                        <td> - </td>
                                        <td> - </td>
                                    </tr>
                                @endif
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="main__spoiler">
                    <div class="main__spoiler-body">
                        <table class="main__table main__table_three">
                            <thead>
                            <tr>
                                <th colspan="3">Опыт работы</th>
                            </tr>
                            </thead>
                            <tbody>
                                @if (count($Q['place_worker']) > 0)
                                    @foreach($Q['place_worker'] as $it)
                                        <tr>
                                            <td>{{ $it['begin_work']." - ".$it['end_work'] }}
                                                </td>
                                            <td><b>{{ $it['name_company'] }}</b>
                                                </td>
                                            <td><b>{{ $it['job_title'] }}</b>
                                                Судно: {{ $it['teplohod'] }}
                                            </td>
                                        </tr>
                                    @endforeach
                                @endif
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
            <div class="main__resume-profile-about">
                <h2 class="main__resume-profile-about-title">О себе</h2>
                <p class="main__resume-profile-about-text">{{ $Q['text'] }}</p>

            </div>
            <div class="main__resume-profile-info">
                <h2 class="main__resume-profile-info-title">Данные о прошлых компаниях</h2>
                <div class="main__resume-profile-info-body">
                    @if ((isset($Q['prev_company'])) && (count($Q['prev_company']) > 0))
                        @foreach ($Q['prev_company'] as $it)
                            <div class="main__resume-profile-info-body-item">
                                <h3 class="main__resume-profile-info-body-subtitle">{{ $it['name_company'] }}</h3>
                                <ul class="main__resume-profile-info-body-inner">
                                    <li>
                                        <b>Руководитель</b>
                                        <span>{{ $it['direct'] }}</span>
                                    </li>
                                    <li>
                                        <b>Телефон того, кто может дать рекомендацию</b>
                                        <span>
                                                <a>{{ $it['telephone'] }}</a>
                                                <a>{{ $it['telephone2'] }}</a>
                                        </span>
                                    </li>
                                </ul>
                            </div>
                        @endforeach
                    @else
                        <div class="main__resume-profile-info-body-item">
                            <h3 class="main__resume-profile-info-body-subtitle">Не указано</h3>
                            <ul class="main__resume-profile-info-body-inner">
                                <li>
                                    <b>Руководитель</b>
                                    <span>Нет сведений</span>
                                </li>
                                <li>
                                    <b>Телефон того, кто может дать рекомендацию</b>
                                    <span>
                                         <a>Нет сведений</a>
                                    </span>
                                </li>
                            </ul>
                        </div>

                    @endif
                </div>
            </div>
        </div>

    </div>
</main>
    @endforeach
@endif
</body>
</html>