main
Ilham Wara Nugroho 2026-06-10 15:48:52 +07:00
parent ad2c21a6e7
commit 2726e525ab
1 changed files with 6 additions and 15 deletions

View File

@ -23,7 +23,11 @@
<label for="inventoryYear">Tahun Inventory:</label> <label for="inventoryYear">Tahun Inventory:</label>
<div class="input-group"> <div class="input-group">
<select name="inventoryYear" class="form-control"> <select name="inventoryYear" class="form-control">
@for ($year = date('Y'); $year >= (date('Y')-5); $year--)
<option value="{{ $year }}" {{ $inventoryYear == $year ? 'selected' : '' }} >
{{ $year }}
</option>
@endfor
</select> </select>
</div> </div>
</div> </div>
@ -34,20 +38,7 @@
<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">
@if (@$scope === \App\Enums\LingkupAksesData::ALL->value)
<option value="none" @if ($instansi === null || $instansi == 'none') selected @endif>DATA KONSOLIDASI</option>
@if ($agencies->isNotEmpty())
<option value="all" @if ($instansi === 'all') selected @endif>SELURUH DATA DARI PRODUSEN</option>
@endif
@endif
@foreach ($agencies as $agency)
<option value="{{ $agency->name }}" @if ($instansi == $agency->name) selected @endif>
{{ $agency->name }}
</option>
@endforeach
</select>
</div> </div>
</div> </div>
</div> </div>