| 
									
										
										
										
											2018-10-02 20:03:08 +02:00
										 |  |  | @extends('layout.default') | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-05-01 20:19:18 +02:00
										 |  |  | @section('title', $__t('Equipment')) | 
					
						
							| 
									
										
										
										
											2018-10-02 20:03:08 +02:00
										 |  |  | @section('activeNav', 'equipment') | 
					
						
							|  |  |  | @section('viewJsName', 'equipment') | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | @section('content') | 
					
						
							|  |  |  | <div class="row"> | 
					
						
							| 
									
										
										
										
											2018-10-03 19:05:00 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	<div class="col-xs-12 col-md-4 pb-3"> | 
					
						
							| 
									
										
										
										
											2020-04-19 08:51:02 -04:00
										 |  |  | 		<h2 class="title">@yield('title')</h2> | 
					
						
							|  |  |  | 		<hr> | 
					
						
							| 
									
										
										
										
											2018-10-02 20:03:08 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-04-19 08:51:02 -04:00
										 |  |  | 		<div class="row"> | 
					
						
							|  |  |  | 			<div class="col-xs-12 col-md-4 col-xl-3"> | 
					
						
							|  |  |  | 				<a class="btn btn-primary btn-sm responsive-button w-100 mb-3" href="{{ $U('/equipment/new') }}"> | 
					
						
							|  |  |  | 					{{ $__t('Add') }} | 
					
						
							|  |  |  | 				</a> | 
					
						
							|  |  |  | 			</div> | 
					
						
							|  |  |  | 		</div> | 
					
						
							|  |  |  | 		<div class="input-group mb-3"> | 
					
						
							|  |  |  | 			<div class="input-group-prepend"> | 
					
						
							|  |  |  | 					<span class="input-group-text"><i class="fas fa-search"></i></span> | 
					
						
							|  |  |  | 			</div> | 
					
						
							|  |  |  | 			<input type="text" id="search" class="form-control" placeholder="{{ $__t('Search') }}"> | 
					
						
							|  |  |  | 		</div> | 
					
						
							| 
									
										
										
										
											2018-10-02 20:03:08 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-10-06 11:43:46 +02:00
										 |  |  | 		<table id="equipment-table" class="table table-striped dt-responsive"> | 
					
						
							| 
									
										
										
										
											2018-10-02 20:03:08 +02:00
										 |  |  | 			<thead> | 
					
						
							|  |  |  | 				<tr> | 
					
						
							| 
									
										
										
										
											2019-05-01 20:19:18 +02:00
										 |  |  | 					<th>{{ $__t('Name') }}</th> | 
					
						
							| 
									
										
										
										
											2019-04-23 09:06:18 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | 					@include('components.userfields_thead', array( | 
					
						
							|  |  |  | 						'userfields' => $userfields | 
					
						
							|  |  |  | 					)) | 
					
						
							|  |  |  | 					 | 
					
						
							| 
									
										
										
										
											2018-10-02 20:03:08 +02:00
										 |  |  | 				</tr> | 
					
						
							|  |  |  | 			</thead> | 
					
						
							| 
									
										
										
										
											2019-01-05 20:06:35 +01:00
										 |  |  | 			<tbody class="d-none"> | 
					
						
							| 
									
										
										
										
											2018-10-02 20:03:08 +02:00
										 |  |  | 				@foreach($equipment as $equipmentItem) | 
					
						
							|  |  |  | 				<tr data-equipment-id="{{ $equipmentItem->id }}"> | 
					
						
							|  |  |  | 					<td> | 
					
						
							|  |  |  | 						{{ $equipmentItem->name }} | 
					
						
							|  |  |  | 					</td> | 
					
						
							| 
									
										
										
										
											2019-04-23 09:06:18 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | 					@include('components.userfields_tbody', array( | 
					
						
							|  |  |  | 						'userfields' => $userfields, | 
					
						
							|  |  |  | 						'userfieldValues' => FindAllObjectsInArrayByPropertyValue($userfieldValues, 'object_id', $equipmentItem->id) | 
					
						
							|  |  |  | 					)) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-10-02 20:03:08 +02:00
										 |  |  | 				</tr> | 
					
						
							|  |  |  | 				@endforeach | 
					
						
							|  |  |  | 			</tbody> | 
					
						
							|  |  |  | 		</table> | 
					
						
							|  |  |  | 	</div> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-10-03 19:05:00 +02:00
										 |  |  | 	<div class="col-xs-12 col-md-8"> | 
					
						
							| 
									
										
										
										
											2018-10-03 16:11:39 +02:00
										 |  |  | 		<ul class="nav nav-tabs"> | 
					
						
							|  |  |  | 			<li class="nav-item"> | 
					
						
							| 
									
										
										
										
											2019-05-01 20:19:18 +02:00
										 |  |  | 				<a class="nav-link active" data-toggle="tab" href="#instruction-manual-tab">{{ $__t('Instruction manual') }}</a> | 
					
						
							| 
									
										
										
										
											2018-10-03 16:11:39 +02:00
										 |  |  | 			</li> | 
					
						
							|  |  |  | 			<li class="nav-item"> | 
					
						
							| 
									
										
										
										
											2019-05-01 20:19:18 +02:00
										 |  |  | 				<a class="nav-link" data-toggle="tab" href="#description-tab">{{ $__t('Notes') }}</a> | 
					
						
							| 
									
										
										
										
											2018-10-03 16:11:39 +02:00
										 |  |  | 			</li> | 
					
						
							|  |  |  | 		</ul> | 
					
						
							| 
									
										
										
										
											2018-10-03 16:40:40 +02:00
										 |  |  | 		<div class="tab-content"> | 
					
						
							| 
									
										
										
										
											2018-10-03 16:11:39 +02:00
										 |  |  | 			<div class="tab-pane fade show active" id="instruction-manual-tab"> | 
					
						
							| 
									
										
										
										
											2018-10-03 16:40:40 +02:00
										 |  |  | 				<div id="selectedEquipmentInstructionManualCard" class="card"> | 
					
						
							| 
									
										
										
										
											2020-01-24 22:05:08 +01:00
										 |  |  | 					<div class="card-header card-header-fullscreen"> | 
					
						
							| 
									
										
										
										
											2018-10-06 11:43:46 +02:00
										 |  |  | 						<i class="fas fa-toolbox"></i> <span class="selected-equipment-name"></span>   | 
					
						
							| 
									
										
										
										
											2019-09-26 13:14:24 +02:00
										 |  |  | 						<a class="btn btn-sm btn-outline-info py-0 equipment-edit-button hide-on-fullscreen-card" href="#"> | 
					
						
							| 
									
										
										
										
											2018-10-06 11:43:46 +02:00
										 |  |  | 							<i class="fas fa-edit"></i> | 
					
						
							|  |  |  | 						</a> | 
					
						
							| 
									
										
										
										
											2019-09-26 13:14:24 +02:00
										 |  |  | 						<a class="btn btn-sm btn-outline-danger py-0 equipment-delete-button hide-on-fullscreen-card" href="#" data-equipment-id="{{ $equipmentItem->id }}" data-equipment-name="{{ $equipmentItem->name }}"> | 
					
						
							| 
									
										
										
										
											2018-10-06 11:43:46 +02:00
										 |  |  | 							<i class="fas fa-trash"></i> | 
					
						
							|  |  |  | 						</a> | 
					
						
							| 
									
										
										
										
											2019-05-01 20:19:18 +02:00
										 |  |  | 						<a id="selectedEquipmentInstructionManualToggleFullscreenButton" class="btn btn-sm btn-outline-secondary py-0 float-right" href="#" data-toggle="tooltip" title="{{ $__t('Expand to fullscreen') }}"> | 
					
						
							| 
									
										
										
										
											2018-10-03 16:40:40 +02:00
										 |  |  | 							<i class="fas fa-expand-arrows-alt"></i> | 
					
						
							|  |  |  | 						</a> | 
					
						
							|  |  |  | 					</div> | 
					
						
							| 
									
										
										
										
											2018-10-03 18:04:46 +02:00
										 |  |  | 					<div class="card-body py-0 px-0"> | 
					
						
							| 
									
										
										
										
											2019-09-26 13:14:24 +02:00
										 |  |  | 						<p id="selected-equipment-has-no-instruction-manual-hint" class="text-muted font-italic d-none pt-3 pl-3">{{ $__t('The selected equipment has no instruction manual') }}</p> | 
					
						
							| 
									
										
										
										
											2018-10-03 19:05:00 +02:00
										 |  |  | 						<embed id="selected-equipment-instruction-manual" class="embed-responsive embed-responsive-4by3" src="" type="application/pdf"> | 
					
						
							| 
									
										
										
										
											2018-10-03 16:40:40 +02:00
										 |  |  | 					</div> | 
					
						
							|  |  |  | 				</div> | 
					
						
							| 
									
										
										
										
											2018-10-03 16:11:39 +02:00
										 |  |  | 			</div> | 
					
						
							|  |  |  | 			<div class="tab-pane fade" id="description-tab"> | 
					
						
							| 
									
										
										
										
											2018-10-03 16:40:40 +02:00
										 |  |  | 				<div id="selectedEquipmentDescriptionCard" class="card"> | 
					
						
							| 
									
										
										
										
											2020-01-24 22:05:08 +01:00
										 |  |  | 					<div class="card-header card-header-fullscreen"> | 
					
						
							| 
									
										
										
										
											2018-10-06 11:43:46 +02:00
										 |  |  | 						<i class="fas fa-toolbox"></i> <span class="selected-equipment-name"></span>   | 
					
						
							| 
									
										
										
										
											2019-09-26 13:14:24 +02:00
										 |  |  | 						<a class="btn btn-sm btn-outline-info py-0 equipment-edit-button hide-on-fullscreen-card" href="#"> | 
					
						
							| 
									
										
										
										
											2018-10-06 11:43:46 +02:00
										 |  |  | 							<i class="fas fa-edit"></i> | 
					
						
							|  |  |  | 						</a> | 
					
						
							| 
									
										
										
										
											2019-09-26 13:14:24 +02:00
										 |  |  | 						<a class="btn btn-sm btn-outline-danger py-0 equipment-delete-button hide-on-fullscreen-card" href="#" data-equipment-id="{{ $equipmentItem->id }}" data-equipment-name="{{ $equipmentItem->name }}"> | 
					
						
							| 
									
										
										
										
											2018-10-06 11:43:46 +02:00
										 |  |  | 							<i class="fas fa-trash"></i> | 
					
						
							|  |  |  | 						</a> | 
					
						
							| 
									
										
										
										
											2019-05-01 20:19:18 +02:00
										 |  |  | 						<a id="selectedEquipmentDescriptionToggleFullscreenButton" class="btn btn-sm btn-outline-secondary py-0 float-right" href="#" data-toggle="tooltip" title="{{ $__t('Expand to fullscreen') }}"> | 
					
						
							| 
									
										
										
										
											2018-10-03 16:40:40 +02:00
										 |  |  | 							<i class="fas fa-expand-arrows-alt"></i> | 
					
						
							|  |  |  | 						</a> | 
					
						
							|  |  |  | 					</div> | 
					
						
							|  |  |  | 					<div class="card-body"> | 
					
						
							|  |  |  | 						<div id="description-tab-content" class="mb-0"></div> | 
					
						
							|  |  |  | 					</div> | 
					
						
							|  |  |  | 				</div> | 
					
						
							| 
									
										
										
										
											2018-10-03 16:11:39 +02:00
										 |  |  | 			</div> | 
					
						
							|  |  |  | 		</div> | 
					
						
							| 
									
										
										
										
											2018-10-02 20:03:08 +02:00
										 |  |  | 	</div> | 
					
						
							|  |  |  | </div> | 
					
						
							|  |  |  | @stop |