ringkasan dan summary petani

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
2026-05-04 15:07:56 +07:00
co-authored by Copilot
parent 61f72e4352
commit 69d09e74e2
17 changed files with 933 additions and 38 deletions
@@ -35,7 +35,7 @@
<input type="datetime" class="form-control @error($k->kolom) is-invalid @enderror" id="add-data-{{ $k->kolom }}"
name="{{ $k->kolom }}" placeholder="Cth: {{ $k->label }}" value="{{ old($k->kolom) }}" />
@elseif($k->tipe == 'boolean')
<select class="form-select @error($k->kolom) is-invalid @enderror" id="add-data-{{ $k->kolom }}" name="{{ $k->kolom }}">
<select class="form-select tipe-boolean @error($k->kolom) is-invalid @enderror" id="add-data-{{ $k->kolom }}" name="{{ $k->kolom }}">
<option value="1" {{ old($k->kolom) == 1 ? 'selected' : '' }}>Ya</option>
<option value="0" {{ old($k->kolom) == 0 ? 'selected' : '' }}>Tidak</option>
</select>
@@ -50,7 +50,7 @@
<div class="mt-4 text-end">
<a href="{{ route('tabel.data.index', [$tabel->id, 'program' => $program->id]) }}" class="btn btn-label-secondary me-2">Kembali</a>
<a href="{{ route('tabel.data.index', [$tabel->id, 'program_id' => $program->id]) }}" class="btn btn-label-secondary me-2">Kembali</a>
<button type="submit" class="btn btn-success data-submit">Simpan Data</button>
</div>
</form>
@@ -63,6 +63,7 @@
<script>
'use strict';
$(document).ready(function () {
$('#add-data-program,.tipe-boolean').select2();
$('#addNewDataForm').validate({
rules: {