update
parent
286ed17b7c
commit
f716f371fd
|
|
@ -37,6 +37,35 @@
|
|||
<div class="card-body">
|
||||
|
||||
@include('modules.form.action')
|
||||
|
||||
<form action="{{ route('modules.form.save', ['sector' => $form->sector, 'code' => $form->code]) }}" method="POST">
|
||||
<input type="hidden" name="inventoryYear" value="{{ $inventoryYear }}">
|
||||
<input type="hidden" name="instansi" value="{{ $instansi }}">
|
||||
<div class="table-responsive mt-3" style="overflow-x: auto;">
|
||||
<table class="table table-bordered table-detail">
|
||||
<thead class="table-info text-white">
|
||||
<tr>
|
||||
<th style="width: 50px;">No.</th>
|
||||
<th style="width: 100px;">Tahun</th>
|
||||
@foreach ($formDetails as $detail)
|
||||
@php
|
||||
$unitCode = $detail->unit_code;
|
||||
$unitCategory = $unitsMap[$unitCode]->category ?? null;
|
||||
@endphp
|
||||
<th style="min-width: 150px; text-decoration:normal">
|
||||
{{ $detail->activity ? $detail->activity->name : 'N/A' }} - ({{ $detail->unit_code }})
|
||||
|
||||
@if ($unitCategory)
|
||||
|
||||
@else
|
||||
{{ $unitCode }}
|
||||
@endif
|
||||
</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
</form>
|
||||
{{-- @include('modules.form.table') --}}
|
||||
{{-- @include('modules.form.copy') --}}
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue