mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 20:26:42 +00:00
Fixed by PHP-CS-Fixer broken formattings
This commit is contained in:
@@ -80,7 +80,7 @@
|
|||||||
<tbody class="d-none">
|
<tbody class="d-none">
|
||||||
@foreach($current as $currentBatteryEntry)
|
@foreach($current as $currentBatteryEntry)
|
||||||
<tr id="battery-{{ $currentBatteryEntry->battery_id }}-row"
|
<tr id="battery-{{ $currentBatteryEntry->battery_id }}-row"
|
||||||
class="@if(FindObjectInArrayByPropertyValue($batteries, 'id', $currentBatteryEntry->battery_id)->charge_interval_days > 0 && $currentBatteryEntry->next_estimated_charge_time < date('Y-m-d H:i:s')) table-danger @elseif(FindObjectInArrayByPropertyValue($batteries, 'id', $currentBatteryEntry->battery_id)->charge_interval_days > 0 && $currentBatteryEntry->next_estimated_charge_time < date('Y-m-d H:i:s', strtotime("+$nextXDays days")))
|
class="@if(FindObjectInArrayByPropertyValue($batteries, 'id', $currentBatteryEntry->battery_id)->charge_interval_days > 0 && $currentBatteryEntry->next_estimated_charge_time < date('Y-m-d H:i:s')) table-danger @elseif(FindObjectInArrayByPropertyValue($batteries, 'id', $currentBatteryEntry->battery_id)->charge_interval_days > 0 && $currentBatteryEntry->next_estimated_charge_time < date('Y-m-d H:i:s', strtotime('+' . $nextXDays . ' days')))
|
||||||
table-warning
|
table-warning
|
||||||
@endif">
|
@endif">
|
||||||
<td class="fit-content border-right">
|
<td class="fit-content border-right">
|
||||||
@@ -147,7 +147,11 @@
|
|||||||
,
|
,
|
||||||
$currentBatteryEntry->battery_id)->charge_interval_days > 0 && $currentBatteryEntry->next_estimated_charge_time < date('Y-m-d
|
$currentBatteryEntry->battery_id)->charge_interval_days > 0 && $currentBatteryEntry->next_estimated_charge_time < date('Y-m-d
|
||||||
H:i:s',
|
H:i:s',
|
||||||
strtotime("+$nextXDays days")))
|
strtotime('+'
|
||||||
|
.
|
||||||
|
$nextXDays
|
||||||
|
. ' days'
|
||||||
|
)))
|
||||||
duesoon
|
duesoon
|
||||||
@endif
|
@endif
|
||||||
</td>
|
</td>
|
||||||
|
@@ -110,7 +110,7 @@
|
|||||||
<tbody class="d-none">
|
<tbody class="d-none">
|
||||||
@foreach($currentChores as $curentChoreEntry)
|
@foreach($currentChores as $curentChoreEntry)
|
||||||
<tr id="chore-{{ $curentChoreEntry->chore_id }}-row"
|
<tr id="chore-{{ $curentChoreEntry->chore_id }}-row"
|
||||||
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")))
|
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')))
|
||||||
table-warning
|
table-warning
|
||||||
@endif">
|
@endif">
|
||||||
<td class="fit-content border-right">
|
<td class="fit-content border-right">
|
||||||
@@ -189,7 +189,11 @@
|
|||||||
,
|
,
|
||||||
$curentChoreEntry->chore_id)->period_type !== \Grocy\Services\ChoresService::CHORE_PERIOD_TYPE_MANUALLY && $curentChoreEntry->next_estimated_execution_time < date('Y-m-d
|
$curentChoreEntry->chore_id)->period_type !== \Grocy\Services\ChoresService::CHORE_PERIOD_TYPE_MANUALLY && $curentChoreEntry->next_estimated_execution_time < date('Y-m-d
|
||||||
H:i:s',
|
H:i:s',
|
||||||
strtotime("+$nextXDays days")))
|
strtotime('+'
|
||||||
|
.
|
||||||
|
$nextXDays
|
||||||
|
. ' days'
|
||||||
|
)))
|
||||||
duesoon
|
duesoon
|
||||||
@endif
|
@endif
|
||||||
</td>
|
</td>
|
||||||
|
@@ -54,9 +54,7 @@
|
|||||||
<tbody class="d-none">
|
<tbody class="d-none">
|
||||||
@foreach($stockEntries as $stockEntry)
|
@foreach($stockEntries as $stockEntry)
|
||||||
<tr id="stock-{{ $stockEntry->id }}-row"
|
<tr id="stock-{{ $stockEntry->id }}-row"
|
||||||
class="@if(GROCY_FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING && $stockEntry->best_before_date < date('Y-m-d 23:59:59', strtotime('-1 days')) && $stockEntry->amount > 0) table-danger @elseif(GROCY_FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING && $stockEntry->best_before_date < date('Y-m-d 23:59:59', strtotime("
|
class="@if(GROCY_FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING && $stockEntry->best_before_date < date('Y-m-d 23:59:59', strtotime('-1 days')) && $stockEntry->amount > 0) table-danger @elseif(GROCY_FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING && $stockEntry->best_before_date < date('Y-m-d 23:59:59', strtotime('+' . $nextXDays . ' days'))
|
||||||
+$nextXDays
|
|
||||||
days"))
|
|
||||||
&&
|
&&
|
||||||
$stockEntry->amount > 0) table-warning @endif">
|
$stockEntry->amount > 0) table-warning @endif">
|
||||||
<td class="fit-content border-right">
|
<td class="fit-content border-right">
|
||||||
|
@@ -143,7 +143,7 @@
|
|||||||
<tbody class="d-none">
|
<tbody class="d-none">
|
||||||
@foreach($currentStock as $currentStockEntry)
|
@foreach($currentStock as $currentStockEntry)
|
||||||
<tr id="product-{{ $currentStockEntry->product_id }}-row"
|
<tr id="product-{{ $currentStockEntry->product_id }}-row"
|
||||||
class="@if(GROCY_FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING && $currentStockEntry->best_before_date < date('Y-m-d 23:59:59', strtotime('-1 days')) && $currentStockEntry->amount > 0) table-danger @elseif(GROCY_FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING && $currentStockEntry->best_before_date < date('Y-m-d 23:59:59', strtotime("+$nextXDays days"))
|
class="@if(GROCY_FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING && $currentStockEntry->best_before_date < date('Y-m-d 23:59:59', strtotime('-1 days')) && $currentStockEntry->amount > 0) table-danger @elseif(GROCY_FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING && $currentStockEntry->best_before_date < date('Y-m-d 23:59:59', strtotime('+' . $nextXDays . ' days'))
|
||||||
&&
|
&&
|
||||||
$currentStockEntry->amount > 0) table-warning @elseif ($currentStockEntry->product_missing) table-info @endif">
|
$currentStockEntry->amount > 0) table-warning @elseif ($currentStockEntry->product_missing) table-info @endif">
|
||||||
<td class="fit-content border-right">
|
<td class="fit-content border-right">
|
||||||
@@ -310,7 +310,8 @@
|
|||||||
@endif
|
@endif
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<span id="product-{{ $currentStockEntry->product_id }}-value" class="locale-number locale-number-currency">{{ $currentStockEntry->value }}</span>
|
<span id="product-{{ $currentStockEntry->product_id }}-value"
|
||||||
|
class="locale-number locale-number-currency">{{ $currentStockEntry->value }}</span>
|
||||||
</td>
|
</td>
|
||||||
<td class="@if(!GROCY_FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING) d-none @endif">
|
<td class="@if(!GROCY_FEATURE_FLAG_STOCK_BEST_BEFORE_DATE_TRACKING) d-none @endif">
|
||||||
<span id="product-{{ $currentStockEntry->product_id }}-next-best-before-date">{{ $currentStockEntry->best_before_date }}</span>
|
<span id="product-{{ $currentStockEntry->product_id }}-next-best-before-date">{{ $currentStockEntry->best_before_date }}</span>
|
||||||
@@ -329,7 +330,13 @@
|
|||||||
strtotime('-1
|
strtotime('-1
|
||||||
days'))
|
days'))
|
||||||
&&
|
&&
|
||||||
$currentStockEntry->amount > 0) expired @elseif($currentStockEntry->best_before_date < date('Y-m-d 23:59:59', strtotime("+$nextXDays days"))
|
$currentStockEntry->amount > 0) expired @elseif($currentStockEntry->best_before_date < date('Y-m-d
|
||||||
|
23:59:59',
|
||||||
|
strtotime('+'
|
||||||
|
.
|
||||||
|
$nextXDays
|
||||||
|
. ' days'
|
||||||
|
))
|
||||||
&&
|
&&
|
||||||
$currentStockEntry->amount > 0) expiring @endif @if($currentStockEntry->product_missing) belowminstockamount @endif
|
$currentStockEntry->amount > 0) expiring @endif @if($currentStockEntry->product_missing) belowminstockamount @endif
|
||||||
</td>
|
</td>
|
||||||
|
@@ -99,9 +99,7 @@
|
|||||||
<tbody class="d-none">
|
<tbody class="d-none">
|
||||||
@foreach($tasks as $task)
|
@foreach($tasks as $task)
|
||||||
<tr id="task-{{ $task->id }}-row"
|
<tr id="task-{{ $task->id }}-row"
|
||||||
class="@if($task->done == 1) text-muted @endif @if(!empty($task->due_date) && $task->due_date < date('Y-m-d')) table-danger @elseif(!empty($task->due_date) && $task->due_date < date('Y-m-d', strtotime("
|
class="@if($task->done == 1) text-muted @endif @if(!empty($task->due_date) && $task->due_date < date('Y-m-d')) table-danger @elseif(!empty($task->due_date) && $task->due_date < date('Y-m-d', strtotime('+' . $nextXDays . ' days')))
|
||||||
+$nextXDays
|
|
||||||
days")))
|
|
||||||
table-warning
|
table-warning
|
||||||
@endif">
|
@endif">
|
||||||
<td class="fit-content border-right">
|
<td class="fit-content border-right">
|
||||||
@@ -156,7 +154,11 @@
|
|||||||
@if($task->done == 1) text-muted @endif @if(!empty($task->due_date) && $task->due_date < date('Y-m-d'))
|
@if($task->done == 1) text-muted @endif @if(!empty($task->due_date) && $task->due_date < date('Y-m-d'))
|
||||||
overdue
|
overdue
|
||||||
@elseif(!empty($task->due_date) && $task->due_date < date('Y-m-d',
|
@elseif(!empty($task->due_date) && $task->due_date < date('Y-m-d',
|
||||||
strtotime("+$nextXDays days")))
|
strtotime('+'
|
||||||
|
.
|
||||||
|
$nextXDays
|
||||||
|
. ' days'
|
||||||
|
)))
|
||||||
duesoon
|
duesoon
|
||||||
@endif
|
@endif
|
||||||
</td>
|
</td>
|
||||||
|
Reference in New Issue
Block a user