Progression
This commit is contained in:
parent
065655ca7e
commit
9abc4c4961
@ -83,7 +83,9 @@ private static function getMaintenanceHistory(int $maintenanceHistoryId){
|
|||||||
return Cache::remember("maintenance_history_{$maintenanceHistoryId}", 60, function () use ($maintenanceHistoryId) {
|
return Cache::remember("maintenance_history_{$maintenanceHistoryId}", 60, function () use ($maintenanceHistoryId) {
|
||||||
return MaintenanceHistory::with([
|
return MaintenanceHistory::with([
|
||||||
'maintenance.tasks',
|
'maintenance.tasks',
|
||||||
|
'maintenance.hosts',
|
||||||
'historyHosts',
|
'historyHosts',
|
||||||
|
'historyHosts.host',
|
||||||
'historyHosts.historyTasks',
|
'historyHosts.historyTasks',
|
||||||
'historyHosts.historyTasks.maintenanceTask',
|
'historyHosts.historyTasks.maintenanceTask',
|
||||||
'historyHosts.historyTasks.maintenanceTask.task'
|
'historyHosts.historyTasks.maintenanceTask.task'
|
||||||
|
@ -1,13 +1,14 @@
|
|||||||
<div>
|
<div>
|
||||||
@foreach ($maintenanceHistory->historyHosts as $historyHost)
|
@foreach ($maintenanceHistory->historyHosts as $historyHost)
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<div class="btn-toggle btn py-3 w-100 bg-primary text-start" style="--bs-bg-opacity: .2;" data-bs-toggle="collapse" data-bs-target="#collapse{{ $historyHost->id }}">
|
<div class="btn-toggle btn py-3 w-100 bg-primary text-start d-flex justify-content-between" style="--bs-bg-opacity: .2;" data-bs-toggle="collapse" data-bs-target="#collapse{{ $historyHost->id }}">
|
||||||
<b>{{ $historyHost->host->hostname }}</b>
|
<b>{{ $historyHost->host->hostname }}</b>
|
||||||
|
<x-form::checkbox groupClass="ms-auto" wire:key="{{ $historyHost->id . 'skip' }}" name="test[{{ $historyHost->id }}][skip]" id="test-{{ $historyHost->id }}-skip" label="{{ __('Skip') }}" />
|
||||||
</div>
|
</div>
|
||||||
<div class="collapse" id="collapse{{ $historyHost->id }}" wire:ignore.self>
|
<div class="collapse" id="collapse{{ $historyHost->id }}" wire:ignore.self>
|
||||||
<div class="card card-body mt-2">
|
<div class="card card-body mt-2">
|
||||||
@foreach ($historyHost->historyTasks as $historyTasks)
|
@foreach ($historyHost->historyTasks as $historyTasks)
|
||||||
<x-form::checkbox wire:key="{{ $historyHost->id . $historyTasks->id}}" wire:model.live.debounce.250ms="maintenance_task_status.{{ $historyHost->id }}.{{ $historyTasks->id }}" name="test[{{ $historyHost->id }}][{{ $historyTasks->id }}]" id="test-{{ $historyHost->id }}-{{ $historyTasks->id }}" label="{{ $historyTasks->maintenanceTask->task->name }}" />
|
<x-form::checkbox wire:key="{{ $historyHost->id . $historyTasks->id }}" wire:model.live.debounce.250ms="maintenance_task_status.{{ $historyHost->id }}.{{ $historyTasks->id }}" name="test[{{ $historyHost->id }}][{{ $historyTasks->id }}]" id="test-{{ $historyHost->id }}-{{ $historyTasks->id }}" label="{{ $historyTasks->maintenanceTask->task->name }}" />
|
||||||
<p>{!! $historyTasks->maintenanceTask->task->description !!}</p>
|
<p>{!! $historyTasks->maintenanceTask->task->description !!}</p>
|
||||||
@endforeach
|
@endforeach
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user