2024-08-07 07:54:20 +00:00
|
|
|
<div>
|
|
|
|
@foreach ($maintenanceHistory->historyHosts as $historyHost)
|
|
|
|
<div class="mb-3">
|
2024-08-07 09:50:10 +00:00
|
|
|
<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 }}">
|
2024-08-07 07:54:20 +00:00
|
|
|
<b>{{ $historyHost->host->hostname }}</b>
|
2024-08-07 09:50:10 +00:00
|
|
|
<x-form::checkbox groupClass="ms-auto" wire:key="{{ $historyHost->id . 'skip' }}" name="test[{{ $historyHost->id }}][skip]" id="test-{{ $historyHost->id }}-skip" label="{{ __('Skip') }}" />
|
2024-08-07 07:54:20 +00:00
|
|
|
</div>
|
|
|
|
<div class="collapse" id="collapse{{ $historyHost->id }}" wire:ignore.self>
|
|
|
|
<div class="card card-body mt-2">
|
|
|
|
@foreach ($historyHost->historyTasks as $historyTasks)
|
2024-08-08 08:33:21 +00:00
|
|
|
<x-form::checkbox wire:key="{{ $historyHost->id . $historyTasks->id }}" wire:model.live.debounce.250ms="maintenance_task_status.{{ $historyHost->id }}.{{ $historyTasks->id }}" name="maintenance_task_status[{{ $historyHost->id }}][{{ $historyTasks->id }}]" id="maintenance_task_status-{{ $historyHost->id }}-{{ $historyTasks->id }}" label="{{ $historyTasks->maintenanceTask->task->name }}" />
|
2024-08-07 07:54:20 +00:00
|
|
|
<p>{!! $historyTasks->maintenanceTask->task->description !!}</p>
|
|
|
|
@endforeach
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endforeach
|
|
|
|
</div>
|