docs-edit.blade.php 4.46 KB
@extends('workers.cabinet_layout', ['title' => 'Место работы - РекаМоре'])


@section('cabinet_content')
<form class="" action="{{ route('worker.edit_document_save', ['doc' => $doc->id]) }}" method="POST">
    @csrf

    <div class="cabinet__body-item">
        <div class="cabinet__anketa">
            <h2 class="title cabinet__title">Место работы</h2>
        </div>
    </div>

    @include('messages_error')

    <div class="cabinet__works-body">
            <div class="cabinet__inputs">
                <input type="hidden" name="worker_id" id="worker_id" value="{{ $worker->id }}"/>
                <div class="cabinet__inputs-item form-group">
                    <label class="form-group__label">Должность:</label>
                    <div class="form-group__item">
                        <input type="text" name="job_title" id="job_title" class="input" value="{{ old('job_title') ?? $doc->job_title ?? '' }}">
                    </div>
                </div>

                <div class="cabinet__inputs-item form-group">
                    <label class="form-group__label">Название т/х:</label>
                    <div class="form-group__item">
                        <input type="text" name="teplohod" id="teplohod" class="input" value="{{ old('teplohod') ?? $doc->teplohod ?? '' }}">
                    </div>
                </div>
                <div class="cabinet__inputs-item form-group">
                    <label class="form-group__label">Тип судна (GWT):</label>
                    <div class="form-group__item">
                        <input type="text" name="GWT" id="GWT" class="input" value="{{ old('GWT') ?? $doc->GWT ?? '' }}">
                    </div>
                </div>

                <div class="cabinet__inputs-item form-group">
                    <label class="form-group__label">Марка ГД:</label>
                    <div class="form-group__item">
                        <input type="text" name="Marka_GD" id="Marka_GD" class="input" value="{{ old('Marka_GD') ?? $doc->Marka_GD ?? '' }}">
                    </div>
                </div>

                <div class="cabinet__inputs-item form-group">
                    <label class="form-group__label">Мощность ГД (кВТ):</label>
                    <div class="form-group__item">
                        <input type="text" name="KBT" id="KBT" class="input" value="{{ old('KBT') ?? $doc->KBT ?? '' }}">
                    </div>
                </div>

                <div class="cabinet__inputs-item form-group">
                    <label class="form-group__label">Водоизмещение (DWT):</label>
                    <div class="form-group__item">
                        <input type="text" name="GRT" id="GRT" class="input" value="{{ old('GRT') ?? $doc->GRT ?? '' }}">
                    </div>
                </div>

                <div class="cabinet__inputs-item form-group">
                    <label class="form-group__label">Название компании:</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">Начало контракта:</label>
                    <div class="form-group__item">
                        <input type="text" name="Begin_work" id="Begin_work" class="input" value="{{ old('begin_work') ?? $doc->begin_work ?? '' }}">
                    </div>
                </div>

                <div class="cabinet__inputs-item form-group">
                    <label class="form-group__label">Окончание контракта:</label>
                    <div class="form-group__item">
                        <input type="text" name="End_work" id="End_work" class="input" value="{{ old('end_work') ?? $doc->end_work ?? '' }}">
                    </div>
                </div>

                <div class="cabinet__inputs-item form-group cabinet__inputs-item-buttons"></div>

                <div class="flex">
                    <button type="submit" class="button mr-10">Сохранить</button>
                    <a href="{{ route('worker.cabinet') }}" class="button button_light active">Отмена</a>
                </div>
            </div>
        </div>
</form>
@endsection