Blame view
resources/views/employers/add_vacancy.blade.php
14.7 KB
e3c7b0ffb Коммит на понедел... |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 |
@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"> <div class="cabinet__side-toper-pic"> @if (isset($Employer[0]->logo)) <img src="{{ asset(Storage::url($Employer[0]->logo)) }}" width="150" alt="{{ $Employer[0]->name_company }}"> @else <img src="{{ asset('images/logo_emp.png') }}" width="150" alt="{{ $Employer[0]->name_company }}"/> @endif </div> <b>{{ $Employer[0]->name_company }}</b> </div> @include('employers.menu', ['item' => 2]) </div> <form class="cabinet__body" action="{{ route('employer.vac_save') }}" method="POST"> @csrf <input type="hidden" name="employer_id" value="{{ $Employer[0]->id }}"/> <div class="cabinet__body-item"> <div class="cabinet__descr"> <h2 class="title cabinet__title">Разместить вакансию</h2> <p class="cabinet__text"><b>Данные по вакансии</b></p> <p class="cabinet__text">Все поля обязательны для заполнения *</p> </div> </div> <div class="cabinet__body-item"> <div class="cabinet__inputs"> <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group"> <label class="form-group__label">Название вакансии</label> <div class="form-group__item"> <input type="text" class="input" name="name" id="name" placeholder="Работа в море" value="{{ old('name') ?? $Employer[0]->name ?? '' }}" required> @error('name') <span class="text-xs text-red-600 dark:text-red-400"> {{ $message }} </span> @enderror </div> </div> <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group"> <label class="form-group__label">Должность соискателя</label> <div class="form-group__item"> <div class="select"> <select class="js-select2" name="job_title_id" id="job_title_id"> @php $i = 1 @endphp @if ($jobs->count()) @foreach($jobs as $j) @if ($i == 1) <option selected> Выберите должность из списка</option> @else <option value="{{ $j->id }}">{{ $j->name }}</option> @endif @php $i++ @endphp @endforeach @endif </select> @error('category_id') <span class="text-xs text-red-600 dark:text-red-400"> {{ $message }} </span> @enderror </div> </div> </div> <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group"> <label class="form-group__label">Телефон</label> <div class="form-group__item"> <input type="text" class="input" name="telephone" id="telephone" value="{{ old('telephone') ?? $Employer[0]->telephone ?? '' }}" placeholder="Свой телефон"> @error('telephone') <span class="text-xs text-red-600 dark:text-red-400"> {{ $message }} </span> @enderror </div> </div> <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group"> <label class="form-group__label">Емайл</label> <div class="form-group__item"> <input type="text" class="input" name="email" id="email" value="{{ old('email') ?? $Employer[0]->email ?? '' }}" placeholder="Своя почту"> @error('email') <span class="text-xs text-red-600 dark:text-red-400"> {{ $message }} </span> @enderror </div> </div> <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group"> <label class="form-group__label">Зарплата среднестатистическая</label> <div class="form-group__item"> <input type="text" class="input" name="salary" id="salary" value="{{ old('salary') ?? '' }}" placeholder="Среднестатистическая зарплата"> @error('salary') <span class="text-xs text-red-600 dark:text-red-400"> {{ $message }} </span> @enderror </div> </div> <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group"> <label class="form-group__label">Минимальная зарплата</label> <div class="form-group__item"> <input type="text" class="input" name="min_salary" id="min_salary" value="{{ old('min_salary') ?? '' }}" placeholder="Минимальная зарплата"> @error('min_salary') <span class="text-xs text-red-600"> {{ $message }} </span> @enderror </div> </div> <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group"> <label class="form-group__label">Максимальная зарплата</label> <div class="form-group__item"> <input type="text" class="input" name="max_salary" id="max_salary" value="{{ old('max_salary') ?? '' }}" placeholder="Максимальная зарплата"> @error('salary') <span class="text-xs text-red-600 dark:text-red-400"> {{ $message }} </span> @enderror </div> </div> <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group"> <label class="form-group__label">Город-регион</label> <div class="form-group__item"> <input type="text" class="input" name="city" id="city" value="{{ old('city') ?? $Employer[0]->city ?? '' }}" placeholder="Севастополь"> @error('city') <span class="text-xs text-red-600"> {{ $message }} </span> @enderror </div> </div> <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group"> <label class="form-group__label">Мощность</label> <div class="form-group__item"> <input type="text" class="input" name="power" id="power" value="{{ old('power') ?? '' }}" placeholder="POWER-45"> @error('power') <span class="text-xs text-red-600"> {{ $message }} </span> @enderror </div> </div> <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group"> <label class="form-group__label">Суточные выплаты</label> <div class="form-group__item"> <input type="text" class="input" name="sytki" id="sytki" value="{{ old('sytki') ?? '' }}" placeholder="2000"> @error('power') <span class="text-xs text-red-600"> {{ $message }} </span> @enderror </div> </div> <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group"> <label class="form-group__label">Начало отплытия</label> <div class="form-group__item"> <input type="text" class="input" name="start" id="start" value="{{ old('start') ?? '' }}" placeholder="20 сентября 2024"> @error('power') <span class="text-xs text-red-600"> {{ $message }} </span> @enderror </div> </div> <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group"> <label class="form-group__label">Корабль для посадки</label> <div class="form-group__item"> <div class="select"> <select class="js-select2" name="flot" id="flot"> <option value="" selected> Не указан корабль</option> @if ($Employer[0]->flots->count()) @foreach($Employer[0]->flots as $j) <option value="{{ $j->name }}">{{ $j->name }} ({{ $j->id }})</option> @endforeach @endif </select> @error('flot') <span class="text-xs text-red-600"> {{ $message }} </span> @enderror </div> </div> </div> <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group"> <label class="form-group__label">Описание вакансии</label> <div class="form-group__item"> <textarea class="textarea" name="text" id="text">{{ old('text') ?? $Employer[0]->text ?? '' }}</textarea> @error('text') <span class="text-xs text-red-600"> {{ $message }} </span> @enderror </div> </div> <div class="cabinet__inputs-item cabinet__inputs-item_fullwidth form-group"> <label class="form-group__label">Дополнительная информация</label> <div class="form-group__item"> <textarea class="textarea" name="description" id="description">{{ old('description') ?? '' }}</textarea> @error('text') <span class="text-xs text-red-600"> {{ $message }} </span> @enderror </div> </div> </div> <button type="submit" class="button cabinet__submit">Опубликовать</button> </div> </form> </div> </div> </section> </div> @endsection |