| 
									
										
										
										
											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"> | 
					
						
							| 
									
										
										
										
											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 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-overdue-chores" | 
					
						
							|  |  |  | 				data-status-filter="overdue" | 
					
						
							|  |  |  | 				class="error-message status-filter-message responsive-button mr-2"></div> | 
					
						
							| 
									
										
										
										
											2022-01-23 17:29:25 +01:00
										 |  |  | 			<div id="info-due-today-chores" | 
					
						
							|  |  |  | 				data-status-filter="duetoday" | 
					
						
							|  |  |  | 				class="normal-message status-filter-message responsive-button mr-2"></div> | 
					
						
							|  |  |  | 			<div id="info-due-soon-chores" | 
					
						
							|  |  |  | 				data-status-filter="duesoon" | 
					
						
							|  |  |  | 				data-next-x-days="{{ $nextXDays }}" | 
					
						
							| 
									
										
										
										
											2022-01-23 19:20:23 +01:00
										 |  |  | 				class="warning-message status-filter-message responsive-message mr-2 @if($nextXDays == 0) d-none @endif"></div> | 
					
						
							| 
									
										
										
										
											2020-10-31 18:37:10 +01:00
										 |  |  | 			@if(GROCY_FEATURE_FLAG_CHORES_ASSIGNMENTS) | 
					
						
							|  |  |  | 			<div id="info-assigned-to-me-chores" | 
					
						
							|  |  |  | 				data-user-filter="xx{{ GROCY_USER_ID }}xx" | 
					
						
							| 
									
										
										
										
											2022-01-23 17:29:25 +01:00
										 |  |  | 				class="secondary-message user-filter-message responsive-button"></div> | 
					
						
							| 
									
										
										
										
											2020-10-31 18:37:10 +01:00
										 |  |  | 			@endif | 
					
						
							| 
									
										
										
										
											2022-04-04 21:07:14 +02:00
										 |  |  | 			<div class="float-right mt-1"> | 
					
						
							|  |  |  | 				<a class="btn btn-sm btn-outline-info d-md-none" | 
					
						
							| 
									
										
										
										
											2020-11-07 14:53:45 +01:00
										 |  |  | 					data-toggle="collapse" | 
					
						
							|  |  |  | 					href="#table-filter-row" | 
					
						
							|  |  |  | 					role="button"> | 
					
						
							| 
									
										
										
										
											2022-04-04 20:10:29 +02:00
										 |  |  | 					<i class="fa-solid fa-filter"></i> | 
					
						
							| 
									
										
										
										
											2020-11-07 14:53:45 +01:00
										 |  |  | 				</a> | 
					
						
							| 
									
										
										
										
											2022-04-04 22:42:10 +02:00
										 |  |  | 				<button id="clear-filter-button" | 
					
						
							| 
									
										
										
										
											2022-04-04 21:07:14 +02:00
										 |  |  | 					class="btn btn-sm btn-outline-info" | 
					
						
							|  |  |  | 					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> | 
					
						
							| 
									
										
										
										
											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"> | 
					
						
							| 
									
										
										
										
											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> | 
					
						
							| 
									
										
										
										
											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"> | 
					
						
							| 
									
										
										
										
											2022-04-04 20:10:29 +02:00
										 |  |  | 				<span class="input-group-text"><i class="fa-solid 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="overdue">{{ $__t('Overdue') }}</option> | 
					
						
							| 
									
										
										
										
											2022-01-23 17:29:25 +01:00
										 |  |  | 				<option value="duetoday">{{ $__t('Due today') }}</option> | 
					
						
							| 
									
										
										
										
											2022-01-23 19:20:23 +01:00
										 |  |  | 				@if($nextXDays > 0) | 
					
						
							| 
									
										
										
										
											2022-01-23 17:29:25 +01:00
										 |  |  | 				<option value="duesoon">{{ $__t('Due soon') }}</option> | 
					
						
							| 
									
										
										
										
											2022-01-23 19:20:23 +01:00
										 |  |  | 				@endif | 
					
						
							| 
									
										
										
										
											2020-04-19 08:51:02 -04:00
										 |  |  | 			</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"> | 
					
						
							| 
									
										
										
										
											2022-04-04 20:10:29 +02:00
										 |  |  | 				<span class="input-group-text"><i class="fa-solid 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" | 
					
						
							| 
									
										
										
										
											2022-04-04 20:10:29 +02:00
										 |  |  | 							href="#"><i class="fa-solid fa-eye"></i></a> | 
					
						
							| 
									
										
										
										
											2020-11-11 21:11:17 +01:00
										 |  |  | 					</th> | 
					
						
							| 
									
										
										
										
											2019-05-01 20:19:18 +02:00
										 |  |  | 					<th>{{ $__t('Chore') }}</th> | 
					
						
							|  |  |  | 					<th>{{ $__t('Next estimated tracking') }}</th> | 
					
						
							|  |  |  | 					<th>{{ $__t('Last tracked') }}</th> | 
					
						
							| 
									
										
										
										
											2022-02-15 18:40:42 +01:00
										 |  |  | 					<th class="@if(!GROCY_FEATURE_FLAG_CHORES_ASSIGNMENTS) d-none @endif allow-grouping">{{ $__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" | 
					
						
							| 
									
										
										
										
											2022-01-23 17:29:25 +01:00
										 |  |  | 					class="@if($curentChoreEntry->due_type == 'overdue') table-danger @elseif($curentChoreEntry->due_type == 'duetoday') table-info @elseif($curentChoreEntry->due_type == 'duesoon') 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 }}"> | 
					
						
							| 
									
										
										
										
											2022-04-04 20:10:29 +02:00
										 |  |  | 							<i class="fa-solid fa-play"></i> | 
					
						
							| 
									
										
										
										
											2018-09-22 13:26:58 +02:00
										 |  |  | 						</a> | 
					
						
							| 
									
										
										
										
											2022-02-08 18:08:26 +01:00
										 |  |  | 						<a class="btn btn-secondary btn-sm track-chore-button skip permission-CHORE_TRACK_EXECUTION @if(FindObjectInArrayByPropertyValue($chores, 'id', $curentChoreEntry->chore_id)->period_type == \Grocy\Services\ChoresService::CHORE_PERIOD_TYPE_MANUALLY) disabled @endif" | 
					
						
							|  |  |  | 							href="#" | 
					
						
							|  |  |  | 							data-toggle="tooltip" | 
					
						
							|  |  |  | 							data-placement="left" | 
					
						
							|  |  |  | 							title="{{ $__t('Skip next chore schedule') }}" | 
					
						
							|  |  |  | 							data-chore-id="{{ $curentChoreEntry->chore_id }}" | 
					
						
							|  |  |  | 							data-chore-name="{{ FindObjectInArrayByPropertyValue($chores, 'id', $curentChoreEntry->chore_id)->name }}"> | 
					
						
							| 
									
										
										
										
											2022-04-04 20:10:29 +02:00
										 |  |  | 							<i class="fa-solid fa-forward"></i> | 
					
						
							| 
									
										
										
										
											2022-02-08 18:08:26 +01:00
										 |  |  | 						</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"> | 
					
						
							| 
									
										
										
										
											2022-04-04 20:10:29 +02:00
										 |  |  | 								<i class="fa-solid fa-ellipsis-v"></i> | 
					
						
							| 
									
										
										
										
											2019-03-09 13:11:50 +01:00
										 |  |  | 							</button> | 
					
						
							| 
									
										
										
										
											2020-03-21 15:52:51 +01:00
										 |  |  | 							<div class="table-inline-menu dropdown-menu dropdown-menu-right"> | 
					
						
							| 
									
										
										
										
											2022-04-03 13:56:14 +02:00
										 |  |  | 								<a class="dropdown-item reschedule-chore-button" | 
					
						
							| 
									
										
										
										
											2022-03-26 18:30:26 +01:00
										 |  |  | 									data-chore-id="{{ $curentChoreEntry->chore_id }}" | 
					
						
							|  |  |  | 									type="button" | 
					
						
							|  |  |  | 									href="#"> | 
					
						
							|  |  |  | 									<span>{{ $__t('Reschedule next execution') }}</span> | 
					
						
							|  |  |  | 								</a> | 
					
						
							|  |  |  | 								<div class="dropdown-divider"></div> | 
					
						
							| 
									
										
										
										
											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> | 
					
						
							| 
									
										
										
										
											2022-02-11 17:49:30 +01:00
										 |  |  | 								<a class="dropdown-item" | 
					
						
							| 
									
										
										
										
											2021-07-13 19:29:23 +02:00
										 |  |  | 									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> | 
					
						
							| 
									
										
										
										
											2022-04-03 13:56:14 +02:00
										 |  |  | 						@if(!empty($curentChoreEntry->next_estimated_execution_time)) | 
					
						
							| 
									
										
										
										
											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 | 
					
						
							| 
									
										
										
										
											2022-04-03 13:56:14 +02:00
										 |  |  | 						<span id="chore-{{ $curentChoreEntry->chore_id }}-next-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"></time> | 
					
						
							| 
									
										
										
										
											2018-09-22 13:26:58 +02:00
										 |  |  | 						@endif | 
					
						
							| 
									
										
										
										
											2022-03-26 18:30:26 +01:00
										 |  |  | 						@if($curentChoreEntry->is_rescheduled == 1) | 
					
						
							| 
									
										
										
										
											2022-04-03 13:56:14 +02:00
										 |  |  | 						<span id="chore-{{ $curentChoreEntry->chore_id }}-rescheduled-icon" | 
					
						
							| 
									
										
										
										
											2022-03-27 16:11:16 +02:00
										 |  |  | 							class="text-muted" | 
					
						
							| 
									
										
										
										
											2022-03-26 18:30:26 +01:00
										 |  |  | 							data-toggle="tooltip" | 
					
						
							|  |  |  | 							title="{{ $__t('Rescheduled') }}"> | 
					
						
							| 
									
										
										
										
											2022-04-04 20:10:29 +02:00
										 |  |  | 							<i class="fa-regular fa-clock"></i> | 
					
						
							| 
									
										
										
										
											2022-03-26 18:30:26 +01:00
										 |  |  | 						</span> | 
					
						
							|  |  |  | 						@endif | 
					
						
							| 
									
										
										
										
											2018-09-22 13:26:58 +02:00
										 |  |  | 					</td> | 
					
						
							|  |  |  | 					<td> | 
					
						
							| 
									
										
										
										
											2022-04-03 13:56:14 +02:00
										 |  |  | 						@if(!empty($curentChoreEntry->last_tracked_time)) | 
					
						
							| 
									
										
										
										
											2018-09-22 13:26:58 +02:00
										 |  |  | 						<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> | 
					
						
							| 
									
										
										
										
											2022-04-03 13:56:14 +02:00
										 |  |  | 						@else | 
					
						
							|  |  |  | 						<span id="chore-{{ $curentChoreEntry->chore_id }}-last-tracked-time">-</span> | 
					
						
							|  |  |  | 						<time id="chore-{{ $curentChoreEntry->chore_id }}-last-tracked-time-timeago" | 
					
						
							|  |  |  | 							class="timeago timeago-contextual @if($curentChoreEntry->track_date_only == 1) timeago-date-only @endif"></time> | 
					
						
							|  |  |  | 						@endif | 
					
						
							| 
									
										
										
										
											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 | 
					
						
							| 
									
										
										
										
											2022-04-03 13:56:14 +02:00
										 |  |  | 							@if($curentChoreEntry->is_reassigned == 1) | 
					
						
							|  |  |  | 							<span id="chore-{{ $curentChoreEntry->chore_id }}-reassigned-icon" | 
					
						
							|  |  |  | 								class="text-muted" | 
					
						
							|  |  |  | 								data-toggle="tooltip" | 
					
						
							|  |  |  | 								title="{{ $__t('Reassigned') }}"> | 
					
						
							| 
									
										
										
										
											2022-04-04 20:10:29 +02:00
										 |  |  | 								<i class="fa-solid fa-exchange-alt"></i> | 
					
						
							| 
									
										
										
										
											2022-04-03 13:56:14 +02:00
										 |  |  | 							</span> | 
					
						
							|  |  |  | 							@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"> | 
					
						
							| 
									
										
										
										
											2022-01-23 17:29:25 +01:00
										 |  |  | 						{{ $curentChoreEntry->due_type }} | 
					
						
							|  |  |  | 						@if($curentChoreEntry->due_type == 'duetoday') | 
					
						
							|  |  |  | 						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> | 
					
						
							| 
									
										
										
										
											2022-03-26 18:30:26 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | <div class="modal fade" | 
					
						
							|  |  |  | 	id="reschedule-chore-modal" | 
					
						
							|  |  |  | 	tabindex="-1"> | 
					
						
							|  |  |  | 	<div class="modal-dialog"> | 
					
						
							|  |  |  | 		<div class="modal-content text-center"> | 
					
						
							| 
									
										
										
										
											2022-03-26 20:25:17 +01:00
										 |  |  | 			<div class="modal-header d-block"> | 
					
						
							|  |  |  | 				<h4 class="modal-title">{{ $__t('Reschedule next execution') }}</h4> | 
					
						
							|  |  |  | 				<h5 id="reschedule-chore-modal-title" | 
					
						
							|  |  |  | 					class="text-muted"></h5> | 
					
						
							| 
									
										
										
										
											2022-03-26 18:30:26 +01:00
										 |  |  | 			</div> | 
					
						
							|  |  |  | 			<div class="modal-body"> | 
					
						
							|  |  |  | 				<form id="reschedule-chore-form" | 
					
						
							|  |  |  | 					novalidate> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 					@include('components.datetimepicker', array( | 
					
						
							|  |  |  | 					'id' => 'reschedule_time', | 
					
						
							|  |  |  | 					'label' => 'Next estimated tracking', | 
					
						
							|  |  |  | 					'format' => 'YYYY-MM-DD HH:mm:ss', | 
					
						
							|  |  |  | 					'initWithNow' => false, | 
					
						
							|  |  |  | 					'limitEndToNow' => false, | 
					
						
							| 
									
										
										
										
											2022-06-05 23:48:52 +02:00
										 |  |  | 					'limitStartToNow' => false, | 
					
						
							| 
									
										
										
										
											2022-03-26 18:30:26 +01:00
										 |  |  | 					'invalidFeedback' => $__t('This can only be in the future') | 
					
						
							|  |  |  | 					)) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-04-03 13:56:14 +02:00
										 |  |  | 					@include('components.userpicker', array( | 
					
						
							|  |  |  | 					'label' => 'Assigned to', | 
					
						
							|  |  |  | 					'users' => $users | 
					
						
							|  |  |  | 					)) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-03-26 18:30:26 +01:00
										 |  |  | 				</form> | 
					
						
							|  |  |  | 			</div> | 
					
						
							|  |  |  | 			<div class="modal-footer"> | 
					
						
							| 
									
										
										
										
											2022-03-26 20:25:17 +01:00
										 |  |  | 				<button id="reschedule-chore-clear-button" | 
					
						
							|  |  |  | 					type="button" | 
					
						
							|  |  |  | 					class="btn btn-success mr-auto">{{ $__t('Reset') }}</button> | 
					
						
							| 
									
										
										
										
											2022-03-26 18:30:26 +01:00
										 |  |  | 				<button type="button" | 
					
						
							|  |  |  | 					class="btn btn-secondary" | 
					
						
							|  |  |  | 					data-dismiss="modal">{{ $__t('Cancel') }}</button> | 
					
						
							|  |  |  | 				<button id="reschedule-chore-save-button" | 
					
						
							|  |  |  | 					type="button" | 
					
						
							|  |  |  | 					class="btn btn-primary">{{ $__t('OK') }}</button> | 
					
						
							|  |  |  | 			</div> | 
					
						
							|  |  |  | 		</div> | 
					
						
							|  |  |  | 	</div> | 
					
						
							|  |  |  | </div> | 
					
						
							| 
									
										
										
										
											2018-09-22 13:26:58 +02:00
										 |  |  | @stop |