| 
									
										
										
										
											2019-09-18 16:18:15 +02:00
										 |  |  | @extends('layout.default') | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | @section('title', $userentity->caption) | 
					
						
							|  |  |  | @section('activeNav', 'userentity-' . $userentity->name) | 
					
						
							|  |  |  | @section('viewJsName', 'userobjects') | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | @section('content') | 
					
						
							|  |  |  | <div class="row"> | 
					
						
							|  |  |  | 	<div class="col"> | 
					
						
							| 
									
										
										
										
											2020-04-19 08:51:02 -04:00
										 |  |  | 		<div class="title-related-links"> | 
					
						
							| 
									
										
										
										
											2020-11-08 19:00:12 +01:00
										 |  |  | 			<h2 class="title mr-2 order-0"> | 
					
						
							| 
									
										
										
										
											2020-10-31 18:37:10 +01:00
										 |  |  | 				@yield('title') | 
					
						
							| 
									
										
										
										
											2020-11-08 19:00:12 +01:00
										 |  |  | 			</h2> | 
					
						
							|  |  |  | 			<h2 class="mb-0 mr-auto order-3 order-md-1 width-xs-sm-100"> | 
					
						
							| 
									
										
										
										
											2020-10-31 18:37:10 +01:00
										 |  |  | 				<span class="text-muted small">{{ $userentity->description }}</span> | 
					
						
							|  |  |  | 			</h2> | 
					
						
							| 
									
										
										
										
											2020-11-07 14:53:45 +01:00
										 |  |  | 			<div class="float-right"> | 
					
						
							|  |  |  | 				<button class="btn btn-outline-dark d-md-none mt-2 order-1 order-md-3" | 
					
						
							|  |  |  | 					type="button" | 
					
						
							|  |  |  | 					data-toggle="collapse" | 
					
						
							|  |  |  | 					data-target="#table-filter-row"> | 
					
						
							| 
									
										
										
										
											2022-04-04 20:10:29 +02:00
										 |  |  | 					<i class="fa-solid fa-filter"></i> | 
					
						
							| 
									
										
										
										
											2020-11-07 14:53:45 +01:00
										 |  |  | 				</button> | 
					
						
							|  |  |  | 				<button class="btn btn-outline-dark d-md-none mt-2 order-1 order-md-3" | 
					
						
							|  |  |  | 					type="button" | 
					
						
							|  |  |  | 					data-toggle="collapse" | 
					
						
							|  |  |  | 					data-target="#related-links"> | 
					
						
							| 
									
										
										
										
											2022-04-04 20:10:29 +02:00
										 |  |  | 					<i class="fa-solid fa-ellipsis-v"></i> | 
					
						
							| 
									
										
										
										
											2020-11-07 14:53:45 +01:00
										 |  |  | 				</button> | 
					
						
							|  |  |  | 			</div> | 
					
						
							|  |  |  | 			<div class="related-links collapse d-md-flex order-2 width-xs-sm-100 m-1 mt-md-0 mb-md-0 float-right" | 
					
						
							|  |  |  | 				id="related-links"> | 
					
						
							| 
									
										
										
										
											2020-11-17 21:18:05 +01:00
										 |  |  | 				<a class="btn btn-primary responsive-button mr-1 show-as-dialog-link" | 
					
						
							|  |  |  | 					href="{{ $U('/userobject/' . $userentity->name . '/new?embedded') }}"> | 
					
						
							| 
									
										
										
										
											2020-10-31 18:37:10 +01:00
										 |  |  | 					{{ $__t('Add') }} | 
					
						
							|  |  |  | 				</a> | 
					
						
							| 
									
										
										
										
											2020-08-31 20:32:50 +02:00
										 |  |  | 				<a class="btn btn-outline-secondary d-print-none" | 
					
						
							|  |  |  | 					href="{{ $U('/userfields?entity=' . 'userentity-' . $userentity->name) }}"> | 
					
						
							| 
									
										
										
										
											2020-04-19 08:51:02 -04:00
										 |  |  | 					{{ $__t('Configure fields') }} | 
					
						
							|  |  |  | 				</a> | 
					
						
							|  |  |  | 			</div> | 
					
						
							|  |  |  | 		</div> | 
					
						
							|  |  |  | 	</div> | 
					
						
							|  |  |  | </div> | 
					
						
							| 
									
										
										
										
											2020-10-31 18:37:10 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-11-08 15:09:10 +01:00
										 |  |  | <hr class="my-2"> | 
					
						
							| 
									
										
										
										
											2020-10-31 18:37:10 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-11-07 14:53:45 +01:00
										 |  |  | <div class="row collapse d-md-flex" | 
					
						
							|  |  |  | 	id="table-filter-row"> | 
					
						
							| 
									
										
										
										
											2021-06-24 22:46:47 +02:00
										 |  |  | 	<div class="col-12 col-md-6 col-xl-3"> | 
					
						
							| 
									
										
										
										
											2020-10-31 18:37:10 +01:00
										 |  |  | 		<div class="input-group"> | 
					
						
							| 
									
										
										
										
											2020-04-19 08:51:02 -04:00
										 |  |  | 			<div class="input-group-prepend"> | 
					
						
							| 
									
										
										
										
											2022-04-04 20:10:29 +02:00
										 |  |  | 				<span class="input-group-text"><i class="fa-solid fa-search"></i></span> | 
					
						
							| 
									
										
										
										
											2020-04-19 08:51:02 -04:00
										 |  |  | 			</div> | 
					
						
							| 
									
										
										
										
											2020-08-31 20:32:50 +02:00
										 |  |  | 			<input type="text" | 
					
						
							|  |  |  | 				id="search" | 
					
						
							|  |  |  | 				class="form-control" | 
					
						
							|  |  |  | 				placeholder="{{ $__t('Search') }}"> | 
					
						
							| 
									
										
										
										
											2020-04-19 08:51:02 -04:00
										 |  |  | 		</div> | 
					
						
							| 
									
										
										
										
											2019-09-18 16:18:15 +02:00
										 |  |  | 	</div> | 
					
						
							| 
									
										
										
										
											2020-11-07 14:53:45 +01:00
										 |  |  | 	<div class="col"> | 
					
						
							|  |  |  | 		<div class="float-right"> | 
					
						
							| 
									
										
										
										
											2022-04-04 22:42:10 +02:00
										 |  |  | 			<button id="clear-filter-button" | 
					
						
							| 
									
										
										
										
											2020-11-07 14:53:45 +01:00
										 |  |  | 				class="btn btn-sm btn-outline-info" | 
					
						
							| 
									
										
										
										
											2022-04-04 21:07:14 +02:00
										 |  |  | 				data-toggle="tooltip" | 
					
						
							|  |  |  | 				title="{{ $__t('Clear filter') }}"> | 
					
						
							|  |  |  | 				<i class="fa-solid fa-filter-circle-xmark"></i> | 
					
						
							| 
									
										
										
										
											2022-04-04 22:42:10 +02:00
										 |  |  | 			</button> | 
					
						
							| 
									
										
										
										
											2020-11-07 14:53:45 +01:00
										 |  |  | 		</div> | 
					
						
							|  |  |  | 	</div> | 
					
						
							| 
									
										
										
										
											2019-09-18 16:18:15 +02:00
										 |  |  | </div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <div class="row"> | 
					
						
							|  |  |  | 	<div class="col"> | 
					
						
							| 
									
										
										
										
											2020-08-31 20:32:50 +02:00
										 |  |  | 		<table id="userobjects-table" | 
					
						
							| 
									
										
										
										
											2020-11-07 14:53:45 +01:00
										 |  |  | 			class="table table-sm table-striped nowrap w-100"> | 
					
						
							| 
									
										
										
										
											2019-09-18 16:18:15 +02:00
										 |  |  | 			<thead> | 
					
						
							|  |  |  | 				<tr> | 
					
						
							| 
									
										
										
										
											2019-09-27 13:23:10 +02:00
										 |  |  | 					<th class="border-right d-print-none"></th> | 
					
						
							| 
									
										
										
										
											2019-09-18 16:18:15 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | 					@include('components.userfields_thead', array( | 
					
						
							| 
									
										
										
										
											2020-08-31 20:32:50 +02:00
										 |  |  | 					'userfields' => $userfields | 
					
						
							| 
									
										
										
										
											2019-09-18 16:18:15 +02:00
										 |  |  | 					)) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 				</tr> | 
					
						
							|  |  |  | 			</thead> | 
					
						
							|  |  |  | 			<tbody class="d-none"> | 
					
						
							|  |  |  | 				@foreach($userobjects as $userobject) | 
					
						
							|  |  |  | 				<tr> | 
					
						
							| 
									
										
										
										
											2019-09-27 13:23:10 +02:00
										 |  |  | 					<td class="fit-content border-right d-print-none"> | 
					
						
							| 
									
										
										
										
											2020-11-17 21:18:05 +01:00
										 |  |  | 						<a class="btn btn-info btn-sm show-as-dialog-link" | 
					
						
							|  |  |  | 							href="{{ $U('/userobject/' . $userentity->name . '/') }}{{ $userobject->id }}?embedded" | 
					
						
							| 
									
										
										
										
											2020-11-12 21:35:10 +01:00
										 |  |  | 							data-toggle="tooltip" | 
					
						
							|  |  |  | 							title="{{ $__t('Edit this item') }}"> | 
					
						
							| 
									
										
										
										
											2022-04-04 20:10:29 +02:00
										 |  |  | 							<i class="fa-solid fa-edit"></i> | 
					
						
							| 
									
										
										
										
											2019-09-18 16:18:15 +02:00
										 |  |  | 						</a> | 
					
						
							| 
									
										
										
										
											2020-08-31 20:32:50 +02:00
										 |  |  | 						<a class="btn btn-danger btn-sm userobject-delete-button" | 
					
						
							|  |  |  | 							href="#" | 
					
						
							| 
									
										
										
										
											2020-11-12 21:35:10 +01:00
										 |  |  | 							data-userobject-id="{{ $userobject->id }}" | 
					
						
							|  |  |  | 							data-toggle="tooltip" | 
					
						
							|  |  |  | 							title="{{ $__t('Delete this item') }}"> | 
					
						
							| 
									
										
										
										
											2022-04-04 20:10:29 +02:00
										 |  |  | 							<i class="fa-solid fa-trash"></i> | 
					
						
							| 
									
										
										
										
											2019-09-18 16:18:15 +02:00
										 |  |  | 						</a> | 
					
						
							|  |  |  | 					</td> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 					@include('components.userfields_tbody', array( | 
					
						
							| 
									
										
										
										
											2020-08-31 20:32:50 +02:00
										 |  |  | 					'userfields' => $userfields, | 
					
						
							|  |  |  | 					'userfieldValues' => FindAllObjectsInArrayByPropertyValue($userfieldValues, 'object_id', $userobject->id) | 
					
						
							| 
									
										
										
										
											2019-09-18 16:18:15 +02:00
										 |  |  | 					)) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 				</tr> | 
					
						
							|  |  |  | 				@endforeach | 
					
						
							|  |  |  | 			</tbody> | 
					
						
							|  |  |  | 		</table> | 
					
						
							|  |  |  | 	</div> | 
					
						
							|  |  |  | </div> | 
					
						
							|  |  |  | @stop |