@php $currentTitle = null; $rowspan = 0; $currentSubTitle= null; @endphp @if (session()->has('message'))
{{ session('message') }}
@endif
@foreach ($cpwActivitys as $index => $activity) @php $firstValidation = $activity->firstFilteredValidation($hari_ke); @endphp @if ($currentTitle !== $activity->title_activity) @php $currentTitle = $activity->title_activity; $rowspan = 1; for ($i = $index + 1; $i < count($cpwActivitys); $i++) { if ($cpwActivitys[$i]->title_activity === $currentTitle) { $rowspan++; } else { break; } } @endphp @else @endif @if ($currentSubTitle !== $activity->sub_title_activity) @php $currentSubTitle = $activity->sub_title_activity; $rowspan2 = 1; for ($i = $index + 1; $i < count($cpwActivitys); $i++) { if ($cpwActivitys[$i]->sub_title_activity === $currentSubTitle) { $rowspan2++; } else { break; } } @endphp @else @endif @endforeach
Edit Asesment
Kegiatan Uraian Kegiatan Hari Rawat Ke {{ $hari_ke }} Keterangan
{{ $activity->title_activity }}
{{ $activity->sub_title_activity }} {{ $activity->activity }} @if ($firstValidation) @if ($firstValidation->validation == 'required') * @elseif($firstValidation->validation == 'nullable') ** @else @endif @else @endif
@error('activityStatuses.' . $activity->id) {{ $message }} @enderror @if (isset($activityStatuses[$activity->id]) && $activityStatuses[$activity->id] === 'Tidak') @if ($firstValidation && $firstValidation->validation == 'required')
@error('varianInputs.' . $activity->id) {{ $message }} @enderror
@else @endif @endif
{{ $activity->activity_description }}
    @foreach ($errors->get('keteranganInputs.*') as $errorMessages) @foreach ($errorMessages as $message)
  • {{ $message }}
  • @endforeach @endforeach