Commit 7305bd2375ff86ce721cde01536e767ae28b842c

Authored by Андрей Ларионов
1 parent 4c5452fe93

Умо поле

Showing 1 changed file with 4 additions and 4 deletions Inline Diff

resources/views/employers/fly-flot.blade.php
1 @extends('layout.frontend', ['title' => 'Мой флот - РекаМоре']) 1 @extends('layout.frontend', ['title' => 'Мой флот - РекаМоре'])
2 2
3 @section('scripts') 3 @section('scripts')
4 <script src="https://cdn.ckeditor.com/ckeditor5/23.0.0/classic/ckeditor.js"></script> 4 <script src="https://cdn.ckeditor.com/ckeditor5/23.0.0/classic/ckeditor.js"></script>
5 <script> 5 <script>
6 ClassicEditor 6 ClassicEditor
7 .create( document.querySelector( '#txtarea' ) ) 7 .create( document.querySelector( '#txtarea' ) )
8 .catch( error => { 8 .catch( error => {
9 console.error( error ); 9 console.error( error );
10 } ); 10 } );
11 </script> 11 </script>
12 @endsection 12 @endsection
13 @section('content') 13 @section('content')
14 <section class="cabinet"> 14 <section class="cabinet">
15 <div class="container"> 15 <div class="container">
16 <ul class="breadcrumbs cabinet__breadcrumbs"> 16 <ul class="breadcrumbs cabinet__breadcrumbs">
17 <li><a href="{{ route('index') }}">Главная</a></li> 17 <li><a href="{{ route('index') }}">Главная</a></li>
18 <li><b>Личный кабинет</b></li> 18 <li><b>Личный кабинет</b></li>
19 </ul> 19 </ul>
20 <div class="cabinet__wrapper"> 20 <div class="cabinet__wrapper">
21 <div class="cabinet__side"> 21 <div class="cabinet__side">
22 <div class="cabinet__side-toper"> 22 <div class="cabinet__side-toper">
23 @include('employers.emblema') 23 @include('employers.emblema')
24 </div> 24 </div>
25 25
26 @include('employers.menu', ['item' => 12]) 26 @include('employers.menu', ['item' => 12])
27 27
28 </div> 28 </div>
29 <div class="cabinet__body"> 29 <div class="cabinet__body">
30 @include('messages_error') 30 @include('messages_error')
31 31
32 <div class="cabinet__body-item"> 32 <div class="cabinet__body-item">
33 <div class="cabinet__descr"> 33 <div class="cabinet__descr">
34 <h2 class="title cabinet__title">Мой флот</h2> 34 <h2 class="title cabinet__title">Мой флот</h2>
35 </div> 35 </div>
36 36
37 <form action="{{ route('employer.save_add_flot') }}" method="POST" class="cabinet__add" enctype="multipart/form-data"> 37 <form action="{{ route('employer.save_add_flot') }}" method="POST" class="cabinet__add" enctype="multipart/form-data">
38 @csrf 38 @csrf
39 <label class="cabinet__add-pic" style="vertical-align: top"> 39 <label class="cabinet__add-pic" style="vertical-align: top">
40 <input type="file" name="image" id="image"> 40 <input type="file" name="image" id="image">
41 @error('image') 41 @error('image')
42 <span class="text-xs text-red-600"> 42 <span class="text-xs text-red-600">
43 {{ $message }} 43 {{ $message }}
44 </span> 44 </span>
45 @enderror 45 @enderror
46 <input type="hidden" name="employer_id" id="employer_id" value="{{ $Employer[0]->id }}"/> 46 <input type="hidden" name="employer_id" id="employer_id" value="{{ $Employer[0]->id }}"/>
47 <svg> 47 <svg>
48 <use xlink:href="{{ asset('images/sprite.svg#pic') }}"></use> 48 <use xlink:href="{{ asset('images/sprite.svg#pic') }}"></use>
49 </svg> 49 </svg>
50 <span> 50 <span>
51 <svg> 51 <svg>
52 <use xlink:href="{{ asset('images/sprite.svg#plus') }}"></use> 52 <use xlink:href="{{ asset('images/sprite.svg#plus') }}"></use>
53 </svg> 53 </svg>
54 Загрузить фото 54 Загрузить фото
55 </span> 55 </span>
56 </label> 56 </label>
57 57
58 <div class="cabinet__add-body"> 58 <div class="cabinet__add-body">
59 <div class="form-group"> 59 <div class="form-group">
60 <label class="form-group__label">Название корабля</label> 60 <label class="form-group__label">Название корабля</label>
61 <div class="form-group__item"> 61 <div class="form-group__item">
62 <input type="text" name="name" id="flot_name" class="input" placeholder="Корабль №000001" required> 62 <input type="text" name="name" id="flot_name" class="input" placeholder="Корабль №000001" required>
63 @error('name') 63 @error('name')
64 <span class="text-xs text-red-600"> 64 <span class="text-xs text-red-600">
65 {{ $message }} 65 {{ $message }}
66 </span> 66 </span>
67 @enderror 67 @enderror
68 </div> 68 </div>
69 </div> 69 </div>
70 <div class="form-group" style="display:none"> 70 <div class="form-group" style="display:none">
71 <label class="form-group__label">Описание</label> 71 <label class="form-group__label">Описание</label>
72 <div class="form-group__item"> 72 <div class="form-group__item">
73 <input type="text" name="text" id="flot_text" class="input" placeholder="Это судно находится..." value="True info"> 73 <input type="text" name="text" id="flot_text" class="input" placeholder="Это судно находится..." value="True info">
74 @error('text') 74 @error('text')
75 <span class="text-xs text-red-600"> 75 <span class="text-xs text-red-600">
76 {{ $message }} 76 {{ $message }}
77 </span> 77 </span>
78 @enderror 78 @enderror
79 </div> 79 </div>
80 </div> 80 </div>
81 <div class="form-group" style="display:none"> 81 <div class="form-group" style="display:none">
82 <label class="form-group__label">Регион</label> 82 <label class="form-group__label">Регион</label>
83 <div class="form-group__item"> 83 <div class="form-group__item">
84 <input type="text" name="region" id="region" class="input" placeholder="Мурманск" value="True Region"> 84 <input type="text" name="region" id="region" class="input" placeholder="Мурманск" value="True Region">
85 @error('region') 85 @error('region')
86 <span class="text-xs text-red-600"> 86 <span class="text-xs text-red-600">
87 {{ $message }} 87 {{ $message }}
88 </span> 88 </span>
89 @enderror 89 @enderror
90 </div> 90 </div>
91 </div> 91 </div>
92 <div class="form-group" style="display:none"> 92 <div class="form-group" style="display:none">
93 <label class="form-group__label">Мощность</label> 93 <label class="form-group__label">Мощность</label>
94 <div class="form-group__item"> 94 <div class="form-group__item">
95 <input type="text" name="power" id="flot_power" class="input" placeholder="Dw 40000 9000Kw" value="Power"> 95 <input type="text" name="power" id="flot_power" class="input" placeholder="Dw 40000 9000Kw" value="Power">
96 @error('power') 96 @error('power')
97 <span class="text-xs text-red-600"> 97 <span class="text-xs text-red-600">
98 {{ $message }} 98 {{ $message }}
99 </span> 99 </span>
100 @enderror 100 @enderror
101 </div> 101 </div>
102 </div> 102 </div>
103 <div class="form-group"> 103 <div class="form-group">
104 <label class="form-group__label">DWT</label> 104 <label class="form-group__label">DWT</label>
105 <div class="form-group__item"> 105 <div class="form-group__item">
106 <input type="text" name="DWT" id="flot_DWT" class="input" placeholder="4000 т"> 106 <input type="text" name="DWT" id="flot_DWT" class="input" placeholder="4000 т">
107 @error('DWT') 107 @error('DWT')
108 <span class="text-xs text-red-600"> 108 <span class="text-xs text-red-600">
109 {{ $message }} 109 {{ $message }}
110 </span> 110 </span>
111 @enderror 111 @enderror
112 </div> 112 </div>
113 </div> 113 </div>
114 <div class="form-group"> 114 <div class="form-group">
115 <label class="form-group__label">Мощность ГД</label> 115 <label class="form-group__label">Мощность ГД</label>
116 <div class="form-group__item"> 116 <div class="form-group__item">
117 <input type="text" name="POWER_GD" id="flot_POWER_GD" class="input" placeholder="14000 кВт"> 117 <input type="text" name="POWER_GD" id="flot_POWER_GD" class="input" placeholder="14000 кВт">
118 @error('POWER_GD') 118 @error('POWER_GD')
119 <span class="text-xs text-red-600"> 119 <span class="text-xs text-red-600">
120 {{ $message }} 120 {{ $message }}
121 </span> 121 </span>
122 @enderror 122 @enderror
123 </div> 123 </div>
124 </div> 124 </div>
125 <div class="form-group" style="display:none"> 125 <div class="form-group" style="">
126 <label class="form-group__label">IMO</label> 126 <label class="form-group__label">IMO</label>
127 <div class="form-group__item"> 127 <div class="form-group__item">
128 <input type="text" name="IMO" id="flot_IMO" class="input" placeholder="8814275" value="YMO"> 128 <input type="text" name="IMO" id="flot_IMO" class="input" placeholder="8814275" value="">
129 @error('IMO') 129 @error('IMO')
130 <span class="text-xs text-red-600"> 130 <span class="text-xs text-red-600">
131 {{ $message }} 131 {{ $message }}
132 </span> 132 </span>
133 @enderror 133 @enderror
134 </div> 134 </div>
135 </div> 135 </div>
136 <button type="submit" class="button" id="ajax_flot" name="ajax_flot">Добавить флот</button> 136 <button type="submit" class="button" id="ajax_flot" name="ajax_flot">Добавить флот</button>
137 </div> 137 </div>
138 138
139 </form> 139 </form>
140 140
141 <div class="cabinet__fleet" id="ajax_flot_div" name="ajax_flot_div"> 141 <div class="cabinet__fleet" id="ajax_flot_div" name="ajax_flot_div">
142 @if (isset($Employer[0]->flots)) 142 @if (isset($Employer[0]->flots))
143 @if ($Employer[0]->flots->count()) 143 @if ($Employer[0]->flots->count())
144 @foreach ($Employer[0]->flots as $it) 144 @foreach ($Employer[0]->flots as $it)
145 <div class="cabinet__fleet-item main__employer-page-one-item"> 145 <div class="cabinet__fleet-item main__employer-page-one-item">
146 <a class="del die_black" href="{{ route('employer.delete_flot', ['Flot' => $it->id]) }}"> 146 <a class="del die_black" href="{{ route('employer.delete_flot', ['Flot' => $it->id]) }}">
147 <svg> 147 <svg>
148 <use xlink:href="{{ asset('images/sprite.svg#del') }}"></use> 148 <use xlink:href="{{ asset('images/sprite.svg#del') }}"></use>
149 </svg> 149 </svg>
150 </a> 150 </a>
151 @if (!empty($it->image)) 151 @if (!empty($it->image))
152 <img src="{{ asset(Storage::url($it->image)) }}" alt="{{ $it->name }}"> 152 <img src="{{ asset(Storage::url($it->image)) }}" alt="{{ $it->name }}">
153 @else 153 @else
154 <img src="{{ asset('images/default_ship.jpg') }}" alt="{{ $it->name }}"/> 154 <img src="{{ asset('images/default_ship.jpg') }}" alt="{{ $it->name }}"/>
155 @endif 155 @endif
156 <b>{{ $it->name }}</b> 156 <b>{{ $it->name }}</b>
157 <!--<span> $it->region }}</span>--> 157 <!--<span> $it->region }}</span>-->
158 <span><i>DWT</i>{{ $it->DWT }}</span> 158 <span><i>DWT</i>{{ $it->DWT }}</span>
159 <span><i>Мощность ГД</i>{{ $it->POWER_GD }}</span> 159 <span><i>Мощность ГД</i>{{ $it->POWER_GD }}</span>
160 <!--<span><i>IMO</i> $it->IMO }}</span> 160 <span><i>IMO</i>{{ $it->IMO }}</span>
161 <span> $it->power }}</span>--> 161 <!--<span> $it->power }}</span>-->
162 </div> 162 </div>
163 @endforeach 163 @endforeach
164 @endif 164 @endif
165 @endif 165 @endif
166 </div> 166 </div>
167 </div> 167 </div>
168 </div> 168 </div>
169 </div> 169 </div>
170 </div> 170 </div>
171 171
172 </section> 172 </section>
173 </div> 173 </div>
174 <!-- END TOP WRAPPER --> 174 <!-- END TOP WRAPPER -->
175 @endsection 175 @endsection
176 176