@if (session('success'))
{{ session('success') }}
@endif
@if ($errors->any())
@foreach ($errors->all() as $error)
- {{ $error }}
@endforeach
@endif
@php
function findProgressForStage($stageId, $unitProgresses) {
return $unitProgresses->firstWhere('stage_id', $stageId);
}
function renderStageTree($stages, $unitProgresses, $unit) {
echo '
';
}
@endphp
@if ($stages->isEmpty())
{{ __('Belum ada tahapan yang tersedia untuk unit ini.') }}
@else
@php renderStageTree($stages->whereNull('parent_id'), $unitProgresses, $unit); @endphp
@endif