Blame view

resources/views/workers/docs-edit.blade.php 6.18 KB
a9dfa8c95   Андрей Ларионов   Обновление на 7 м...
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
  @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">
                          @include('workers.emblema')
  
                      </div>
  
                      @include('workers.menu', ['item' => 1])
                  </div>
  
                  <form class="cabinet__body" action="{{ route('worker.edit_document_save', ['doc' => $doc->id]) }}" method="POST">
                      @csrf
                      <div class="cabinet__works-item">
                          @include('messages_error')
                          <div class="cabinet__works-spoiler active">
                              <div class="cabinet__works-spoiler-left">
                                  <div class="cabinet__works-spoiler-text">Редактирование работы</div>
                              </div>
                              <button type="button" class="cabinet__works-spoiler-right js-parent-toggle">
                                  <svg>
                                      <use xlink:href="{{ asset('images/sprite.svg#arrow-bold') }}"></use>
                                  </svg>
                              </button>
                          </div>
                          <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">
                                          <select class="js-select2" name="tanker" id="tanker">
                                              <option value="0" @if ($doc->tanker == 0) seleted @endif>Нет</option>
                                              <option value="1" @if ($doc->tanker == 1) seleted @endif>Да</option>
                                          </select>
                                      </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="KBT" id="KBT" class="input" value="{{ old('KBT') ?? $doc->KBT ?? '' }}">
                                      </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">
                                      <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>
                                  <button type="submit" class="button">Сохранить</button>
                              </div>
                          </div>
                      </div>
              </form>
          </div>
          </div>
      </section>
      </div>
  @endsection