71 lines
4.0 KiB
PHP
71 lines
4.0 KiB
PHP
<div class="modal fade" id="formModal" tabindex="-1" role="dialog" aria-labelledby="formModalLabel"
|
|
aria-hidden="true">
|
|
<div class="modal-dialog modal-lg" role="document" style="width:90%; max-width: 90%;">
|
|
<div class="modal-content">
|
|
<form action="{{ route('modules.form.saveSingle', ['sector' => $form->sector, 'code' => $form->code]) }}" method="POST">
|
|
@csrf
|
|
<div class="modal-header">
|
|
<div class="modal-title" id="formModalLabel">
|
|
<b>Form Tambah Data Baru</b>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="modal-body">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
|
|
<input type="hidden" name="id" id="metadataId">
|
|
<input type="hidden" name="code_id" value="{{ $activityForm->id ?? 0 }}">
|
|
|
|
<div class="row">
|
|
<div class="col-md-6 mb-3">
|
|
<div class="form-group">
|
|
<label for="inventoryYear">Tahun Inventory:</label>
|
|
<div class="input-group">
|
|
<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>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<div class="form-group">
|
|
<div class="">
|
|
<label for="instansi">Instansi:</label>
|
|
</div>
|
|
<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>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button class="btn btn-primary">Simpan Data</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div> |