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