Files
database-pertani-web/resources/views/program/realisasi/index.blade.php
T
2026-05-28 09:59:36 +07:00

102 lines
4.5 KiB
PHP

@extends('layout.main')
@push('styles')
<link rel="stylesheet"
href="https://cdn.datatables.net/rowgroup/1.4.1/css/rowGroup.dataTables.min.css">
@endpush
@section('content')
<div class="container-xxl flex-grow-1 container-p-y">
<div class="card">
<div class="card-header border-bottom mb-4">
<h5 class="card-title mb-0">Lihat Realiasi</h5>
</div>
<div class="card-body">
<form id="viewFrameworkForm">
@csrf
<h6 class="mb-3">Informasi Kerangka Kerja</h6>
<div class="row">
<div class="col-md-3 mb-4 form-control-validation">
<label class="form-label" for="update-framework-nama">Nama Kerangka Kerja<span class="text-danger">*</span></label>
<input type="text" class="form-control" id="update" name="nama" placeholder="Cth: Tabel Pertanian" value="{{ old('nama', $framework->nama) }}" readonly/>
</div>
<div class="col-md-3 mb-4 form-control-validation">
<label class="form-label" for="update-framework-tahun">Tahun Implementasi<span class="text-danger">*</span></label>
<input type="number" step="1" min="2026" class="form-control" id="update-framework-tahun" name="tahun" placeholder="Cth: 2023" value="{{ old('tahun', $framework->tahun) ?? now()->year }}" readonly/>
</div>
<div class="col-md-6 mb-4 form-control-validation">
<label class="form-label" for="update-framework-program">Untuk Program<span class="text-danger">*</span></label>
<input type="text" class="form-control" id="update-framework-tahun" name="tahun" placeholder="Cth: 2023" value="{{ old('program_id', $framework->program->nama) }}" readonly/>
</div>
</div>
<h6 class="mb-3">Informasi Rencana Kerja dan Realisasi</h6>
<hr class="my-4 mx-n4" />
<div class="row mb-4">
<div class="col-md-12 mb-4 form-control-validation">
<div class="table-responsive text-nowrap mb-4">
<table class="table table-hover" id="realisasiTable">
<thead class="border-top">
<tr>
<th>Transformasi</th>
<th>Tujuan Jangka Pendek/Aktivitas</th>
<th>Deskripsi</th>
<th>Indikator</th>
<th>Variabel</th>
<th>Target</th>
<th>Baseline</th>
<th>Capaian Realisasi</th>
<th>Aksi</th>
</tr>
</thead>
<tbody>
@forelse($framework->transformasi as $transformasi)
@include('program.realisasi.index-tujuan')
@empty
<tr>
<td colspan="4" class="text-center py-4">Tidak ada data ditemukan.</td>
</tr>
@endforelse
<!-- endforelse tranformasi -->
</tbody>
</table>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
@include('program.realisasi.add')
@include('program.realisasi.list')
@include('program.realisasi.edit')
@include('program.verifikasi.add')
@include('program.verifikasi.list')
@endsection
@push('scripts')
<script src="https://cdn.datatables.net/rowgroup/1.4.1/js/dataTables.rowGroup.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/datatables-rowsgroup@2.0.0/dataTables.rowsGroup.js"></script>
<script>
'use strict';
$(document).ready(function () {
$('#realisasiTable').DataTable({
"paging": true,
"lengthChange": false,
"searching": true,
"ordering": false,
"info": true,
"autoWidth": true,
"scrollX": true,
"rowsGroup": [0]
});
});
</script>
@endpush