prev_company_edit_form.blade.php 2.45 KB
@extends('workers.cabinet_layout', ['title' => 'Рекомендация - РекаМоре'])

@section('cabinet_content')
<form id="submit_form" name="submit_form" action="{{ route('worker.update_prev_company', ['doc' => $doc]) }}" class="cabinet__inputs" method="POST">
    @csrf
    <input type="hidden" name="worker_id" id="worker_id" class="input" value="{{ $worker->id }}">

    <div class="cabinet__body-item">
        <div class="cabinet__anketa">
            <h2 class="title cabinet__title mb-0">Рекомендация</h2>
        </div>
    </div>

    <div class="cabinet__body-item">
        <div class="cabinet__inputs">
            <div class="cabinet__inputs-item form-group">
                <label class="form-group__label">Название компании:<span class="red">*</span></label>
                <div class="form-group__item">
                    <input type="text" name="name_company" id="name_company" class="input" value="{{ old('name_company') ?? $doc->name_company ?? '' }}">
                </div>
            </div>
            <div class="cabinet__inputs-item form-group">
                <label class="form-group__label">ФИО сотрудника:<span class="red">*</span></label>
                <div class="form-group__item">
                    <input type="text" name="direct" id="direct" class="input" value="{{ old('direct') ?? $doc->direct ?? '' }}">
                </div>
            </div>
            <div class="cabinet__inputs-item form-group">
                <label class="form-group__label">Должность сотрудника:</label>
                <div class="form-group__item">
                    <input type="text" name="telephone" id="telephone" class="input" value="{{ old('telephone') ?? $doc->telephone ?? '' }}">
                </div>
            </div>
            <div class="cabinet__inputs-item form-group">
                <label class="form-group__label">Телефон сотрудника:</label>
                <div class="form-group__item">
                    <input type="text" name="telephone2" id="telephone2" class="input" value="{{ old('telephone2') ?? $doc->telephone2 ?? '' }}">
                </div>
            </div>

            <div class="flex">
                <button type="submit" class="button mr-10">Сохранить</button>
                <a href="{{ route('worker.cabinet') }}" class="button button_light">Назад</a>
            </div>
        </div>
    </div>


</form>
@endsection