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

25 lines
1.9 KiB
PHP

<x-layout-app>
<div class="container-xl">
<div class="page-header">
<h1>{{ __('Planned Maintenance') }}</h1>
</div>
<p>{!! $maintenance_history->maintenance->description !!}</p>
<x-form::form action="{{ route('maintenance.planned.finished', ['maintenance_history' => $maintenance_history->id]) }}" method="POST">
@foreach ($maintenance_history->historyHosts as $historyHost)
@if (in_array($historyHost->id, array_keys($maintenance_host_skipped)))
<x-form::quill required label="{{ __('Reason for Skipping Host: ') . $historyHost->host->hostname}}" id="skipped-host-{{ $historyHost->id }}-summary" name="skippedHostsSummary[{{ $historyHost->id }}]" help="{{ __('Describe why did you skipped the host') }}" />
@else
@foreach ($historyHost->historyTasks as $historyTask)
@if (!isset($maintenance_task_status[$historyHost->id][$historyTask->id]))
<x-form::quill required label="{{ __('Reason for Skipping Task: ') . $historyTask->maintenanceTask->name}}" id="skipped-host-{{ $historyHost->id }}-task-{{ $historyTask->id }}-summary" name="skippedHostTasksSummary[{{ $historyHost->id }}][{{ $historyTask->id }}]" help="{{ __('Describe why did you not finished the task') }}" />
@else
<x-form::checkbox onclick="return false" checked="{{ isset($maintenance_task_status[$historyHost->id][$historyTask->id]) ? 'checked' : '' }}" label="{{ $historyTask->maintenanceTask->task->name }}" name="test-{{ $historyHost->id }}-{{ $historyTask->id }}" />
@endif
@endforeach
@endif
@endforeach
<x-form::button class="btn-primary" type="submit">{{ __('Ukončit Maintenance') }}</x-form::button>
</x-form::form>
</div>
</x-layout-app>