LAR_Maintenance/resources/views/maintenance/planned-detail.blade.php

27 lines
1.6 KiB
PHP
Raw Normal View History

2024-07-31 16:45:14 +00:00
<x-layout-app>
<div class="container-xl">
<div class="page-header">
<h1>{{ __('Planned Maintenance') }}</h1>
</div>
2024-08-06 09:02:45 +00:00
<p>{!! $maintenance_history->maintenance->description !!}</p>
2024-08-07 05:52:07 +00:00
<x-form::form action="{{ route('maintenance.planned.detail.put', ['maintenance_history' => $maintenance_history->id]) }}" method="PUT">
2024-08-06 14:20:45 +00:00
@foreach ($maintenance_history->historyHosts as $historyHost)
2024-08-07 05:52:07 +00:00
<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 }}">
<b>{{ $historyHost->host->hostname }}</b>
</div>
<div class="collapse" id="collapse{{ $historyHost->id }}">
<div class="card card-body mt-2">
@foreach ($historyHost->historyTasks as $historyTasks)
<x-form::checkbox 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>
2024-08-06 14:20:45 +00:00
</div>
2024-07-31 16:45:14 +00:00
</div>
2024-08-06 14:20:45 +00:00
@endforeach
2024-08-07 05:52:07 +00:00
<x-form::button class="btn-primary" type="submit">{{ __('Ukončit') }}</x-form::button>
2024-08-06 14:20:45 +00:00
</x-form::form>
2024-07-31 16:45:14 +00:00
</div>
2024-08-07 05:52:07 +00:00
</x-layout-app>