From f02492456db10394e3490c92396014ee204d6afc Mon Sep 17 00:00:00 2001 From: Ilham Wara Nugroho Date: Thu, 11 Jun 2026 10:53:38 +0700 Subject: [PATCH] update --- resources/views/modules/form/form.blade.php | 46 +++++++++++++++------ 1 file changed, 33 insertions(+), 13 deletions(-) diff --git a/resources/views/modules/form/form.blade.php b/resources/views/modules/form/form.blade.php index c7ac32b..e4e1eb9 100644 --- a/resources/views/modules/form/form.blade.php +++ b/resources/views/modules/form/form.blade.php @@ -39,23 +39,43 @@
- + @foreach ($formDetails as $detail) + @php + $unitCode = $detail->unit_code; + $unitCategory = $unitsMap[$unitCode]->category ?? null; + @endphp +
+ {{ $detail->activity ? $detail->activity->name : 'N/A' }} + @if ($unitCategory) +
+ +
+ +
+
+ @else + {{ $unitCode }} + @endif +
+ @endforeach