19 lines
1.4 KiB
PHP
19 lines
1.4 KiB
PHP
<div>
|
|
@foreach ($maintenanceHistory->historyHosts as $historyHost)
|
|
<div class="mb-3">
|
|
<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>
|
|
<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 class="collapse" id="collapse{{ $historyHost->id }}" wire:ignore.self>
|
|
<div class="card card-body mt-2">
|
|
@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 }}" />
|
|
<p>{!! $historyTasks->maintenanceTask->task->description !!}</p>
|
|
@endforeach
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endforeach
|
|
</div>
|