| 
									
										
										
										
											2018-09-22 13:26:58 +02:00
										 |  |  | @extends('layout.default') | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-05-01 20:19:18 +02:00
										 |  |  | @section('title', $__t('Chores overview')) | 
					
						
							| 
									
										
										
										
											2018-09-22 13:26:58 +02:00
										 |  |  | @section('activeNav', 'choresoverview') | 
					
						
							|  |  |  | @section('viewJsName', 'choresoverview') | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-01-28 19:27:18 +01:00
										 |  |  | @push('pageStyles') | 
					
						
							| 
									
										
										
										
											2020-08-31 20:32:50 +02:00
										 |  |  | <link href="{{ $U('/node_modules/animate.css/animate.min.css?v=', true) }}{{ $version }}" | 
					
						
							|  |  |  | 	rel="stylesheet"> | 
					
						
							| 
									
										
										
										
											2018-09-22 13:26:58 +02:00
										 |  |  | @endpush | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | @section('content') | 
					
						
							|  |  |  | <div class="row"> | 
					
						
							|  |  |  | 	<div class="col"> | 
					
						
							| 
									
										
										
										
											2020-04-19 08:51:02 -04:00
										 |  |  | 		<div class="title-related-links"> | 
					
						
							|  |  |  | 			<h2 class="title">@yield('title')</h2> | 
					
						
							| 
									
										
										
										
											2020-11-07 14:53:45 +01:00
										 |  |  | 			<button class="btn btn-outline-dark d-md-none mt-2 float-right order-1 order-md-3" | 
					
						
							|  |  |  | 				type="button" | 
					
						
							|  |  |  | 				data-toggle="collapse" | 
					
						
							|  |  |  | 				data-target="#related-links"> | 
					
						
							|  |  |  | 				<i class="fas fa-ellipsis-v"></i> | 
					
						
							|  |  |  | 			</button> | 
					
						
							|  |  |  | 			<div class="related-links collapse d-md-flex order-2 width-xs-sm-100" | 
					
						
							|  |  |  | 				id="related-links"> | 
					
						
							|  |  |  | 				<a class="btn btn-outline-dark responsive-button m-1 mt-md-0 mb-md-0 float-right" | 
					
						
							| 
									
										
										
										
											2020-08-31 20:32:50 +02:00
										 |  |  | 					href="{{ $U('/choresjournal') }}"> | 
					
						
							| 
									
										
										
										
											2020-04-19 08:51:02 -04:00
										 |  |  | 					{{ $__t('Journal') }} | 
					
						
							|  |  |  | 				</a> | 
					
						
							|  |  |  | 			</div> | 
					
						
							|  |  |  | 		</div> | 
					
						
							| 
									
										
										
										
											2020-10-31 18:37:10 +01:00
										 |  |  | 		<div class="border-top border-bottom my-2 py-1"> | 
					
						
							|  |  |  | 			<div id="info-due-chores" | 
					
						
							|  |  |  | 				data-status-filter="duesoon" | 
					
						
							|  |  |  | 				data-next-x-days="{{ $nextXDays }}" | 
					
						
							|  |  |  | 				class="warning-message status-filter-message responsive-message mr-2"></div> | 
					
						
							|  |  |  | 			<div id="info-overdue-chores" | 
					
						
							|  |  |  | 				data-status-filter="overdue" | 
					
						
							|  |  |  | 				class="error-message status-filter-message responsive-button mr-2"></div> | 
					
						
							|  |  |  | 			@if(GROCY_FEATURE_FLAG_CHORES_ASSIGNMENTS) | 
					
						
							|  |  |  | 			<div id="info-assigned-to-me-chores" | 
					
						
							|  |  |  | 				data-user-filter="xx{{ GROCY_USER_ID }}xx" | 
					
						
							|  |  |  | 				class="normal-message user-filter-message responsive-button"></div> | 
					
						
							|  |  |  | 			@endif | 
					
						
							| 
									
										
										
										
											2020-11-07 14:53:45 +01:00
										 |  |  | 			<div class="float-right"> | 
					
						
							| 
									
										
										
										
											2020-11-10 18:11:33 +01:00
										 |  |  | 				<a class="btn btn-sm btn-outline-info d-md-none mt-1" | 
					
						
							| 
									
										
										
										
											2020-11-07 14:53:45 +01:00
										 |  |  | 					data-toggle="collapse" | 
					
						
							|  |  |  | 					href="#table-filter-row" | 
					
						
							|  |  |  | 					role="button"> | 
					
						
							|  |  |  | 					<i class="fas fa-filter"></i> | 
					
						
							|  |  |  | 				</a> | 
					
						
							|  |  |  | 				<a id="clear-filter-button" | 
					
						
							| 
									
										
										
										
											2020-11-10 18:11:33 +01:00
										 |  |  | 					class="btn btn-sm btn-outline-info mt-1" | 
					
						
							| 
									
										
										
										
											2020-11-07 14:53:45 +01:00
										 |  |  | 					href="#"> | 
					
						
							|  |  |  | 					{{ $__t('Clear filter') }} | 
					
						
							|  |  |  | 				</a> | 
					
						
							|  |  |  | 			</div> | 
					
						
							| 
									
										
										
										
											2020-10-31 18:37:10 +01:00
										 |  |  | 		</div> | 
					
						
							| 
									
										
										
										
											2018-09-22 13:26:58 +02:00
										 |  |  | 	</div> | 
					
						
							|  |  |  | </div> | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											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"> | 
					
						
							| 
									
										
										
										
											2020-08-31 20:32:50 +02:00
										 |  |  | 				<span class="input-group-text"><i class="fas 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> | 
					
						
							| 
									
										
										
										
											2018-11-24 19:40:50 +01:00
										 |  |  | 	</div> | 
					
						
							| 
									
										
										
										
											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"> | 
					
						
							| 
									
										
										
										
											2020-10-31 18:37:10 +01:00
										 |  |  | 				<span class="input-group-text"><i class="fas fa-filter"></i> {{ $__t('Status') }}</span> | 
					
						
							| 
									
										
										
										
											2020-04-19 08:51:02 -04:00
										 |  |  | 			</div> | 
					
						
							| 
									
										
										
										
											2020-11-16 19:10:29 +01:00
										 |  |  | 			<select class="custom-control custom-select" | 
					
						
							| 
									
										
										
										
											2020-08-31 20:32:50 +02:00
										 |  |  | 				id="status-filter"> | 
					
						
							| 
									
										
										
										
											2020-04-19 08:51:02 -04:00
										 |  |  | 				<option value="all">{{ $__t('All') }}</option> | 
					
						
							|  |  |  | 				<option value="duesoon">{{ $__t('Due soon') }}</option> | 
					
						
							|  |  |  | 				<option value="overdue">{{ $__t('Overdue') }}</option> | 
					
						
							|  |  |  | 			</select> | 
					
						
							|  |  |  | 		</div> | 
					
						
							| 
									
										
										
										
											2019-09-17 16:50:29 +02:00
										 |  |  | 	</div> | 
					
						
							| 
									
										
										
										
											2019-09-26 17:20:25 +02:00
										 |  |  | 	@if(GROCY_FEATURE_FLAG_CHORES_ASSIGNMENTS) | 
					
						
							| 
									
										
										
										
											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"> | 
					
						
							| 
									
										
										
										
											2020-10-31 18:37:10 +01:00
										 |  |  | 				<span class="input-group-text"><i class="fas fa-filter"></i> {{ $__t('Assignment') }}</span> | 
					
						
							| 
									
										
										
										
											2020-04-19 08:51:02 -04:00
										 |  |  | 			</div> | 
					
						
							| 
									
										
										
										
											2020-11-16 19:10:29 +01:00
										 |  |  | 			<select class="custom-control custom-select" | 
					
						
							| 
									
										
										
										
											2020-08-31 20:32:50 +02:00
										 |  |  | 				id="user-filter"> | 
					
						
							| 
									
										
										
										
											2020-04-19 08:51:02 -04:00
										 |  |  | 				<option></option> | 
					
						
							|  |  |  | 				@foreach($users as $user) | 
					
						
							| 
									
										
										
										
											2020-08-31 20:32:50 +02:00
										 |  |  | 				<option data-user-id="{{ $user->id }}" | 
					
						
							|  |  |  | 					value="xx{{ $user->id }}xx">{{ $user->display_name }}</option> | 
					
						
							| 
									
										
										
										
											2020-04-19 08:51:02 -04:00
										 |  |  | 				@endforeach | 
					
						
							|  |  |  | 			</select> | 
					
						
							|  |  |  | 		</div> | 
					
						
							| 
									
										
										
										
											2018-09-24 19:13:53 +02:00
										 |  |  | 	</div> | 
					
						
							| 
									
										
										
										
											2019-09-26 17:20:25 +02:00
										 |  |  | 	@endif | 
					
						
							| 
									
										
										
										
											2018-09-22 13:26:58 +02:00
										 |  |  | </div> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <div class="row"> | 
					
						
							|  |  |  | 	<div class="col"> | 
					
						
							| 
									
										
										
										
											2020-08-31 20:32:50 +02:00
										 |  |  | 		<table id="chores-overview-table" | 
					
						
							| 
									
										
										
										
											2020-11-07 14:53:45 +01:00
										 |  |  | 			class="table table-sm table-striped nowrap w-100"> | 
					
						
							| 
									
										
										
										
											2018-09-22 13:26:58 +02:00
										 |  |  | 			<thead> | 
					
						
							|  |  |  | 				<tr> | 
					
						
							| 
									
										
										
										
											2020-11-11 22:28:05 +01:00
										 |  |  | 					<th class="border-right"><a class="text-muted change-table-columns-visibility-button" | 
					
						
							|  |  |  | 							data-toggle="tooltip" | 
					
						
							| 
									
										
										
										
											2020-11-11 21:11:17 +01:00
										 |  |  | 							data-toggle="tooltip" | 
					
						
							| 
									
										
										
										
											2020-12-16 18:18:03 +01:00
										 |  |  | 							title="{{ $__t('Table options') }}" | 
					
						
							| 
									
										
										
										
											2020-11-11 21:11:17 +01:00
										 |  |  | 							data-table-selector="#chores-overview-table" | 
					
						
							|  |  |  | 							href="#"><i class="fas fa-eye"></i></a> | 
					
						
							|  |  |  | 					</th> | 
					
						
							| 
									
										
										
										
											2019-05-01 20:19:18 +02:00
										 |  |  | 					<th>{{ $__t('Chore') }}</th> | 
					
						
							|  |  |  | 					<th>{{ $__t('Next estimated tracking') }}</th> | 
					
						
							|  |  |  | 					<th>{{ $__t('Last tracked') }}</th> | 
					
						
							| 
									
										
										
										
											2020-12-19 14:03:28 +01:00
										 |  |  | 					<th class="@if(!GROCY_FEATURE_FLAG_CHORES_ASSIGNMENTS) d-none @endif">{{ $__t('Assigned to') }}</th> | 
					
						
							| 
									
										
										
										
											2018-09-24 19:13:53 +02:00
										 |  |  | 					<th class="d-none">Hidden status</th> | 
					
						
							| 
									
										
										
										
											2019-09-17 16:50:29 +02:00
										 |  |  | 					<th class="d-none">Hidden assigned to user id</th> | 
					
						
							| 
									
										
										
										
											2019-04-22 22:16:35 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | 					@include('components.userfields_thead', array( | 
					
						
							| 
									
										
										
										
											2020-08-31 20:32:50 +02:00
										 |  |  | 					'userfields' => $userfields | 
					
						
							| 
									
										
										
										
											2019-04-22 22:16:35 +02:00
										 |  |  | 					)) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-09-22 13:26:58 +02:00
										 |  |  | 				</tr> | 
					
						
							|  |  |  | 			</thead> | 
					
						
							| 
									
										
										
										
											2019-01-05 20:06:35 +01:00
										 |  |  | 			<tbody class="d-none"> | 
					
						
							| 
									
										
										
										
											2018-09-22 13:26:58 +02:00
										 |  |  | 				@foreach($currentChores as $curentChoreEntry) | 
					
						
							| 
									
										
										
										
											2020-08-31 20:32:50 +02:00
										 |  |  | 				<tr id="chore-{{ $curentChoreEntry->chore_id }}-row" | 
					
						
							| 
									
										
										
										
											2020-10-18 15:08:09 +02:00
										 |  |  | 					class="@if(FindObjectInArrayByPropertyValue($chores, 'id', $curentChoreEntry->chore_id)->period_type !== \Grocy\Services\ChoresService::CHORE_PERIOD_TYPE_MANUALLY && $curentChoreEntry->next_estimated_execution_time < date('Y-m-d H:i:s')) table-danger @elseif(FindObjectInArrayByPropertyValue($chores, 'id', $curentChoreEntry->chore_id)->period_type !== \Grocy\Services\ChoresService::CHORE_PERIOD_TYPE_MANUALLY && $curentChoreEntry->next_estimated_execution_time < date('Y-m-d H:i:s', strtotime('+' . $nextXDays . ' days')))
 | 
					
						
							| 
									
										
										
										
											2020-08-31 20:32:50 +02:00
										 |  |  | 					table-warning | 
					
						
							|  |  |  | 					@endif">
 | 
					
						
							| 
									
										
										
										
											2019-03-09 10:49:26 +01:00
										 |  |  | 					<td class="fit-content border-right"> | 
					
						
							| 
									
										
										
										
											2020-08-31 20:32:50 +02:00
										 |  |  | 						<a class="btn btn-success btn-sm track-chore-button permission-CHORE_TRACK_EXECUTION" | 
					
						
							|  |  |  | 							href="#" | 
					
						
							|  |  |  | 							data-toggle="tooltip" | 
					
						
							|  |  |  | 							data-placement="left" | 
					
						
							| 
									
										
										
										
											2020-11-12 21:35:10 +01:00
										 |  |  | 							title="{{ $__t('Track chore execution') }}" | 
					
						
							| 
									
										
										
										
											2018-09-22 13:26:58 +02:00
										 |  |  | 							data-chore-id="{{ $curentChoreEntry->chore_id }}" | 
					
						
							|  |  |  | 							data-chore-name="{{ FindObjectInArrayByPropertyValue($chores, 'id', $curentChoreEntry->chore_id)->name }}"> | 
					
						
							|  |  |  | 							<i class="fas fa-play"></i> | 
					
						
							|  |  |  | 						</a> | 
					
						
							| 
									
										
										
										
											2019-03-09 13:11:50 +01:00
										 |  |  | 						<div class="dropdown d-inline-block"> | 
					
						
							| 
									
										
										
										
											2020-08-31 20:32:50 +02:00
										 |  |  | 							<button class="btn btn-sm btn-light text-secondary" | 
					
						
							|  |  |  | 								type="button" | 
					
						
							|  |  |  | 								data-toggle="dropdown"> | 
					
						
							| 
									
										
										
										
											2019-03-09 13:11:50 +01:00
										 |  |  | 								<i class="fas fa-ellipsis-v"></i> | 
					
						
							|  |  |  | 							</button> | 
					
						
							| 
									
										
										
										
											2020-03-21 15:52:51 +01:00
										 |  |  | 							<div class="table-inline-menu dropdown-menu dropdown-menu-right"> | 
					
						
							| 
									
										
										
										
											2020-08-31 20:32:50 +02:00
										 |  |  | 								<a class="dropdown-item chore-name-cell" | 
					
						
							|  |  |  | 									data-chore-id="{{ $curentChoreEntry->chore_id }}" | 
					
						
							|  |  |  | 									type="button" | 
					
						
							|  |  |  | 									href="#"> | 
					
						
							| 
									
										
										
										
											2020-11-12 21:35:10 +01:00
										 |  |  | 									<span class="dropdown-item-text">{{ $__t('Chore overview') }}</span> | 
					
						
							| 
									
										
										
										
											2019-03-09 13:11:50 +01:00
										 |  |  | 								</a> | 
					
						
							| 
									
										
										
										
											2020-11-08 15:09:10 +01:00
										 |  |  | 								<a class="dropdown-item show-as-dialog-link" | 
					
						
							| 
									
										
										
										
											2020-08-31 20:32:50 +02:00
										 |  |  | 									type="button" | 
					
						
							| 
									
										
										
										
											2020-11-08 15:09:10 +01:00
										 |  |  | 									href="{{ $U('/choresjournal?embedded&chore=') }}{{ $curentChoreEntry->chore_id }}"> | 
					
						
							| 
									
										
										
										
											2020-11-12 21:35:10 +01:00
										 |  |  | 									<span class="dropdown-item-text">{{ $__t('Chore journal') }}</span> | 
					
						
							| 
									
										
										
										
											2019-03-09 13:11:50 +01:00
										 |  |  | 								</a> | 
					
						
							| 
									
										
										
										
											2020-08-31 20:32:50 +02:00
										 |  |  | 								<a class="dropdown-item permission-MASTER_DATA_EDIT" | 
					
						
							|  |  |  | 									type="button" | 
					
						
							|  |  |  | 									href="{{ $U('/chore/') }}{{ $curentChoreEntry->chore_id }}"> | 
					
						
							| 
									
										
										
										
											2020-11-12 21:35:10 +01:00
										 |  |  | 									<span class="dropdown-item-text">{{ $__t('Edit chore') }}</span> | 
					
						
							| 
									
										
										
										
											2019-03-09 13:11:50 +01:00
										 |  |  | 								</a> | 
					
						
							| 
									
										
										
										
											2021-07-13 19:29:23 +02:00
										 |  |  | 								<div class="dropdown-divider"></div> | 
					
						
							|  |  |  | 								<a class="dropdown-item stockentry-grocycode-link" | 
					
						
							|  |  |  | 									type="button" | 
					
						
							|  |  |  | 									href="{{ $U('/chore/' . $curentChoreEntry->chore_id . '/grocycode?download=true') }}"> | 
					
						
							|  |  |  | 									{!! str_replace('grocycode', '<span class="ls-n1">grocycode</span>', $__t('Download %s grocycode', $__t('Chore'))) !!} | 
					
						
							|  |  |  | 								</a> | 
					
						
							|  |  |  | 								@if(GROCY_FEATURE_FLAG_LABEL_PRINTER) | 
					
						
							|  |  |  | 								<a class="dropdown-item chore-grocycode-label-print" | 
					
						
							|  |  |  | 									data-chore-id="{{ $curentChoreEntry->chore_id }}" | 
					
						
							|  |  |  | 									type="button" | 
					
						
							|  |  |  | 									href="#"> | 
					
						
							|  |  |  | 									{!! str_replace('grocycode', '<span class="ls-n1">grocycode</span>', $__t('Print %s grocycode on label printer', $__t('Chore'))) !!} | 
					
						
							|  |  |  | 								</a> | 
					
						
							|  |  |  | 								@endif | 
					
						
							| 
									
										
										
										
											2019-03-09 13:11:50 +01:00
										 |  |  | 							</div> | 
					
						
							|  |  |  | 						</div> | 
					
						
							| 
									
										
										
										
											2018-09-22 13:26:58 +02:00
										 |  |  | 					</td> | 
					
						
							| 
									
										
										
										
											2020-08-31 20:32:50 +02:00
										 |  |  | 					<td class="chore-name-cell cursor-link" | 
					
						
							|  |  |  | 						data-chore-id="{{ $curentChoreEntry->chore_id }}"> | 
					
						
							| 
									
										
										
										
											2018-09-22 13:26:58 +02:00
										 |  |  | 						{{ FindObjectInArrayByPropertyValue($chores, 'id', $curentChoreEntry->chore_id)->name }} | 
					
						
							|  |  |  | 					</td> | 
					
						
							|  |  |  | 					<td> | 
					
						
							| 
									
										
										
										
											2019-09-17 13:13:26 +02:00
										 |  |  | 						@if(FindObjectInArrayByPropertyValue($chores, 'id', $curentChoreEntry->chore_id)->period_type !== \Grocy\Services\ChoresService::CHORE_PERIOD_TYPE_MANUALLY) | 
					
						
							| 
									
										
										
										
											2020-08-31 20:32:50 +02:00
										 |  |  | 						<span id="chore-{{ $curentChoreEntry->chore_id }}-next-execution-time">{{ $curentChoreEntry->next_estimated_execution_time }}</span> | 
					
						
							|  |  |  | 						<time id="chore-{{ $curentChoreEntry->chore_id }}-next-execution-time-timeago" | 
					
						
							|  |  |  | 							class="timeago timeago-contextual @if($curentChoreEntry->track_date_only == 1) timeago-date-only @endif" | 
					
						
							|  |  |  | 							datetime="{{ $curentChoreEntry->next_estimated_execution_time }}"></time> | 
					
						
							| 
									
										
										
										
											2018-09-22 13:26:58 +02:00
										 |  |  | 						@else | 
					
						
							| 
									
										
										
										
											2020-08-31 20:32:50 +02:00
										 |  |  | 						<span>-</span> | 
					
						
							| 
									
										
										
										
											2018-09-22 13:26:58 +02:00
										 |  |  | 						@endif | 
					
						
							|  |  |  | 					</td> | 
					
						
							|  |  |  | 					<td> | 
					
						
							|  |  |  | 						<span id="chore-{{ $curentChoreEntry->chore_id }}-last-tracked-time">{{ $curentChoreEntry->last_tracked_time }}</span> | 
					
						
							| 
									
										
										
										
											2020-08-31 20:32:50 +02:00
										 |  |  | 						<time id="chore-{{ $curentChoreEntry->chore_id }}-last-tracked-time-timeago" | 
					
						
							|  |  |  | 							class="timeago timeago-contextual @if($curentChoreEntry->track_date_only == 1) timeago-date-only @endif" | 
					
						
							|  |  |  | 							datetime="{{ $curentChoreEntry->last_tracked_time }}"></time> | 
					
						
							| 
									
										
										
										
											2018-09-22 13:26:58 +02:00
										 |  |  | 					</td> | 
					
						
							| 
									
										
										
										
											2020-12-19 14:03:28 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-12-19 17:08:08 +01:00
										 |  |  | 					<td class="@if(!GROCY_FEATURE_FLAG_CHORES_ASSIGNMENTS) d-none @endif"> | 
					
						
							| 
									
										
										
										
											2019-09-17 13:13:26 +02:00
										 |  |  | 						<span id="chore-{{ $curentChoreEntry->chore_id }}-next-execution-assigned-user"> | 
					
						
							| 
									
										
										
										
											2020-08-31 20:32:50 +02:00
										 |  |  | 							@if(!empty($curentChoreEntry->next_execution_assigned_to_user_id)) | 
					
						
							| 
									
										
										
										
											2019-09-17 13:13:26 +02:00
										 |  |  | 							{{ FindObjectInArrayByPropertyValue($users, 'id', $curentChoreEntry->next_execution_assigned_to_user_id)->display_name }} | 
					
						
							| 
									
										
										
										
											2020-08-31 20:32:50 +02:00
										 |  |  | 							@else | 
					
						
							| 
									
										
										
										
											2020-05-03 14:25:27 -04:00
										 |  |  | 							<span>-</span> | 
					
						
							| 
									
										
										
										
											2020-08-31 20:32:50 +02:00
										 |  |  | 							@endif | 
					
						
							| 
									
										
										
										
											2019-09-17 13:13:26 +02:00
										 |  |  | 						</span> | 
					
						
							|  |  |  | 					</td> | 
					
						
							| 
									
										
										
										
											2020-08-31 20:32:50 +02:00
										 |  |  | 					<td id="chore-{{ $curentChoreEntry->chore_id }}-due-filter-column" | 
					
						
							|  |  |  | 						class="d-none"> | 
					
						
							|  |  |  | 						@if(FindObjectInArrayByPropertyValue($chores, 'id', $curentChoreEntry->chore_id)->period_type !== \Grocy\Services\ChoresService::CHORE_PERIOD_TYPE_MANUALLY && $curentChoreEntry->next_estimated_execution_time < date('Y-m-d | 
					
						
							|  |  |  | 							H:i:s')) | 
					
						
							|  |  |  | 							overdue | 
					
						
							|  |  |  | 							@elseif(FindObjectInArrayByPropertyValue($chores, 'id' | 
					
						
							|  |  |  | 							, | 
					
						
							|  |  |  | 							$curentChoreEntry->chore_id)->period_type !== \Grocy\Services\ChoresService::CHORE_PERIOD_TYPE_MANUALLY && $curentChoreEntry->next_estimated_execution_time < date('Y-m-d | 
					
						
							|  |  |  | 								H:i:s', | 
					
						
							| 
									
										
										
										
											2020-10-18 15:08:09 +02:00
										 |  |  | 								strtotime('+' | 
					
						
							|  |  |  | 								. | 
					
						
							|  |  |  | 								$nextXDays | 
					
						
							|  |  |  | 								. ' days' | 
					
						
							|  |  |  | 								))) | 
					
						
							| 
									
										
										
										
											2020-08-31 20:32:50 +02:00
										 |  |  | 								duesoon | 
					
						
							|  |  |  | 								@endif | 
					
						
							|  |  |  | 								</td> | 
					
						
							|  |  |  | 								<td | 
					
						
							|  |  |  | 								class="d-none"> | 
					
						
							|  |  |  | 								@if(!empty($curentChoreEntry->next_execution_assigned_to_user_id)) | 
					
						
							|  |  |  | 								xx{{ $curentChoreEntry->next_execution_assigned_to_user_id }}xx | 
					
						
							| 
									
										
										
										
											2019-09-17 16:50:29 +02:00
										 |  |  | 					</td> | 
					
						
							| 
									
										
										
										
											2019-09-26 17:20:25 +02:00
										 |  |  | 					@endif | 
					
						
							| 
									
										
										
										
											2019-04-22 22:16:35 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | 					@include('components.userfields_tbody', array( | 
					
						
							| 
									
										
										
										
											2020-08-31 20:32:50 +02:00
										 |  |  | 					'userfields' => $userfields, | 
					
						
							|  |  |  | 					'userfieldValues' => FindAllObjectsInArrayByPropertyValue($userfieldValues, 'object_id', $curentChoreEntry->chore_id) | 
					
						
							| 
									
										
										
										
											2019-04-22 22:16:35 +02:00
										 |  |  | 					)) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-09-22 13:26:58 +02:00
										 |  |  | 				</tr> | 
					
						
							|  |  |  | 				@endforeach | 
					
						
							|  |  |  | 			</tbody> | 
					
						
							|  |  |  | 		</table> | 
					
						
							|  |  |  | 	</div> | 
					
						
							|  |  |  | </div> | 
					
						
							| 
									
										
										
										
											2019-03-09 13:11:50 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-08-31 20:32:50 +02:00
										 |  |  | <div class="modal fade" | 
					
						
							|  |  |  | 	id="choresoverview-chorecard-modal" | 
					
						
							|  |  |  | 	tabindex="-1"> | 
					
						
							| 
									
										
										
										
											2019-03-09 13:11:50 +01:00
										 |  |  | 	<div class="modal-dialog"> | 
					
						
							|  |  |  | 		<div class="modal-content text-center"> | 
					
						
							|  |  |  | 			<div class="modal-body"> | 
					
						
							|  |  |  | 				@include('components.chorecard') | 
					
						
							|  |  |  | 			</div> | 
					
						
							|  |  |  | 			<div class="modal-footer"> | 
					
						
							| 
									
										
										
										
											2020-08-31 20:32:50 +02:00
										 |  |  | 				<button type="button" | 
					
						
							|  |  |  | 					class="btn btn-secondary" | 
					
						
							|  |  |  | 					data-dismiss="modal">{{ $__t('Close') }}</button> | 
					
						
							| 
									
										
										
										
											2019-03-09 13:11:50 +01:00
										 |  |  | 			</div> | 
					
						
							|  |  |  | 		</div> | 
					
						
							|  |  |  | 	</div> | 
					
						
							|  |  |  | </div> | 
					
						
							| 
									
										
										
										
											2018-09-22 13:26:58 +02:00
										 |  |  | @stop |