update
parent
2726e525ab
commit
92da91077c
|
|
@ -38,40 +38,24 @@
|
||||||
<label for="instansi">Instansi:</label>
|
<label for="instansi">Instansi:</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
|
<select name="instansi" id="instansi" class="form-control">
|
||||||
</div>
|
@if (@$scope === \App\Enums\LingkupAksesData::ALL->value)
|
||||||
</div>
|
<option value="none" @if ($instansi === null || $instansi == 'none') selected @endif>DATA KONSOLIDASI</option>
|
||||||
</div>
|
@if ($agencies->isNotEmpty())
|
||||||
@foreach ($formDetails as $detail)
|
<option value="all" @if ($instansi === 'all') selected @endif>SELURUH DATA DARI PRODUSEN</option>
|
||||||
@php
|
|
||||||
$unitCode = $detail->unit_code;
|
|
||||||
$unitCategory = $unitsMap[$unitCode]->category ?? null;
|
|
||||||
@endphp
|
|
||||||
<div class="col-md-12 mb-3">
|
|
||||||
<b>{{ $detail->activity ? $detail->activity->name : 'N/A' }}</b>
|
|
||||||
@if ($unitCategory)
|
|
||||||
<div class="input-group">
|
|
||||||
<input type="text" class="form-control w-50 text-right" name="value[{{ $detail->activity_code }}]" oninput="numberFormat(this)">
|
|
||||||
<div class="input-group-text p-0" style="width: 200px!important;">
|
|
||||||
<select name="unit_code[{{ $detail->activity_code }}]" class="form-control unit-code"
|
|
||||||
data-activity-code="{{ $detail->activity_code }}"
|
|
||||||
data-current-unit="{{ $unitCode }}">
|
|
||||||
@foreach ($unitsByCategory[$unitCategory] as $unit)
|
|
||||||
@if($unit->code == $unitCode)
|
|
||||||
<option value="{{ $unit->code }}"
|
|
||||||
{{ $unit->code == $unitCode ? 'selected' : '' }}>
|
|
||||||
{{ $unit->code }}
|
|
||||||
</option>
|
|
||||||
@endif
|
@endif
|
||||||
|
@endif
|
||||||
|
|
||||||
|
@foreach ($agencies as $agency)
|
||||||
|
<option value="{{ $agency->name }}" @if ($instansi == $agency->name) selected @endif>
|
||||||
|
{{ $agency->name }}
|
||||||
|
</option>
|
||||||
@endforeach
|
@endforeach
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@else
|
|
||||||
{{ $unitCode }}
|
|
||||||
@endif
|
|
||||||
</div>
|
</div>
|
||||||
@endforeach
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue