118 lines
6.2 KiB
PHP
118 lines
6.2 KiB
PHP
@php
|
|
$siteBreadcumb = [
|
|
["url"=>"/admin/MappingDbhSkpd","label"=>$siteTitle],
|
|
["url"=>"/admin/MappingDbhSkpd","label"=>$sitesubTitle]
|
|
];
|
|
@endphp
|
|
|
|
@extends('layouts.empty')
|
|
|
|
@section('styles')
|
|
<link rel="stylesheet" href="{{ $baseUrl }}/AdminLTE-3.2.0/plugins/datatables-bs4/css/dataTables.bootstrap4.min.css">
|
|
<link rel="stylesheet" href="{{ $baseUrl }}/AdminLTE-3.2.0/plugins/datatables-responsive/css/responsive.bootstrap4.min.css">
|
|
<link rel="stylesheet" href="{{ $baseUrl }}/AdminLTE-3.2.0/plugins/datatables-buttons/css/buttons.bootstrap4.min.css">
|
|
<link rel="stylesheet" href="{{ $baseUrl }}/AdminLTE-3.2.0/plugins/datatables-rowgroup/css/rowGroup.bootstrap4.min.css">
|
|
<link rel="stylesheet" href="{{ $baseUrl }}/AdminLTE-3.2.0/plugins/datatables-fixedcolumns/css/fixedColumns.bootstrap4.min.css">
|
|
@endsection
|
|
|
|
@section('content')
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<h5 class="card-title"><i class="fa fa-th-list"></i> @php echo $sitesubTitle; @endphp</h5>
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="row">
|
|
<div class="col-1">
|
|
<div class="form-group">
|
|
<label>Tahun</label>
|
|
<input class="form-control form-control-sm" id="srcTA" name="ta" value="{{ getTA() }}" readonly>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<table id="dtTableUser" class="table table-striped jambo_table">
|
|
<tr>
|
|
<thead>
|
|
<th width="50">No</th>
|
|
<th>Kode Rekening</th>
|
|
<th>Nama Rekening</th>
|
|
<th width="150px" class="text-center">Action</th>
|
|
</thead>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
@section('scripts')
|
|
<script src="{{ $baseUrl }}/AdminLTE-3.2.0/plugins/datatables/jquery.dataTables.min.js"></script>
|
|
<script src="{{ $baseUrl }}/AdminLTE-3.2.0/plugins/datatables-bs4/js/dataTables.bootstrap4.min.js"></script>
|
|
<script src="{{ $baseUrl }}/AdminLTE-3.2.0/plugins/datatables-responsive/js/dataTables.responsive.min.js"></script>
|
|
<script src="{{ $baseUrl }}/AdminLTE-3.2.0/plugins/datatables-responsive/js/responsive.bootstrap4.min.js"></script>
|
|
<script src="{{ $baseUrl }}/AdminLTE-3.2.0/plugins/datatables-buttons/js/dataTables.buttons.min.js"></script>
|
|
<script src="{{ $baseUrl }}/AdminLTE-3.2.0/plugins/datatables-buttons/js/buttons.bootstrap4.min.js"></script>
|
|
<script src="{{ $baseUrl }}/AdminLTE-3.2.0/plugins/jszip/jszip.min.js"></script>
|
|
<script src="{{ $baseUrl }}/AdminLTE-3.2.0/plugins/pdfmake/pdfmake.min.js"></script>
|
|
<script src="{{ $baseUrl }}/AdminLTE-3.2.0/plugins/pdfmake/vfs_fonts.js"></script>
|
|
<script src="{{ $baseUrl }}/AdminLTE-3.2.0/plugins/datatables-buttons/js/buttons.html5.min.js"></script>
|
|
<script src="{{ $baseUrl }}/AdminLTE-3.2.0/plugins/datatables-buttons/js/buttons.print.min.js"></script>
|
|
<script src="{{ $baseUrl }}/AdminLTE-3.2.0/plugins/datatables-buttons/js/buttons.colVis.min.js"></script>
|
|
<script src="{{ $baseUrl }}/AdminLTE-3.2.0/plugins/datatables-fixedcolumns/js/dataTables.fixedColumns.min.js"></script>
|
|
<script src="{{ $baseUrl }}/AdminLTE-3.2.0/plugins/datatables-fixedcolumns/js/fixedColumns.bootstrap4.min.js"></script>
|
|
<script src="{{ $baseUrl }}/AdminLTE-3.2.0/plugins/datatables-rowgroup/js/dataTables.rowGroup.min.js"></script>
|
|
<script src="{{ $baseUrl }}/AdminLTE-3.2.0/plugins/datatables-rowgroup/js/rowGroup.bootstrap4.min.js"></script>
|
|
<script type="text/javascript">
|
|
$(document).ready(function(){
|
|
var dtTable = $('#dtTableUser').DataTable( {
|
|
"processing": true,
|
|
"serverSide": true,
|
|
"ordering": false,
|
|
"autoWidth": true,
|
|
"ajax": {
|
|
url: "{{ $baseUrl }}/admin/MappingDbhSkpd/datatable",
|
|
type: "POST",
|
|
headers: {
|
|
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
|
|
},
|
|
data: function (d) {
|
|
d.srcTA = $("#srcTA").val()
|
|
}
|
|
},
|
|
"dom": "<\"top\" <\"row\"<\"col-md-6\"l><\"col-md-6 text-right\"f>>>rt<\"bottom\" <\"row\"<\"col-md-6\"i><\"col-md-6\"p>> ><\"clear\">",
|
|
"lengthMenu": [
|
|
[ 10, 25, 50 ],
|
|
[ "10", "25", "50" ]
|
|
],
|
|
"paging": true, // Table pagination
|
|
"columns": [
|
|
{ "data": null},
|
|
{ "data": "kode_rekening", "className":"text-center" },
|
|
{ "data": "nama_rekening", "className":"text-left" },
|
|
{ "data": null, "className":"text-center" },
|
|
],
|
|
"rowCallback": function(nRow, aData, iDisplayIndex, iDisplayIndexFull, oSettings) {
|
|
let info = dtTable.page.info();
|
|
let numStart = info.page;
|
|
let index = (numStart * dtTable.page.len()) + iDisplayIndex + 1;
|
|
let checked = aData["is_lock_upload"] == 1 ? "checked":"";
|
|
|
|
$("td:eq(0)", nRow).html(index);
|
|
$("td:eq(3)", nRow).html(`<a class="btn btn-info btn-sm" href="{{ URL::to("/admin/MappingDbhSkpd") }}/`+ aData["id"] +`" title="Lihat"><i class="fa fa-eye"></i></a>`);
|
|
|
|
return nRow;
|
|
},
|
|
"language": {
|
|
"lengthMenu": "Tampilkan _MENU_ Data per Halaman",
|
|
"zeroRecords": "Data tidak ditemukan!",
|
|
"info": "Halaman _PAGE_ dari _PAGES_ Halaman ( _MAX_ Data )",
|
|
"infoEmpty": "Data tidak tersedia",
|
|
"infoFiltered": "(Disaring dari _MAX_ Data)",
|
|
"paginate": {
|
|
"previous": "<i class='fas fa-angle-double-left'></i>",
|
|
"next": "<i class='fas fa-angle-double-right'></i>",
|
|
},
|
|
"processing": "<div class='loading'></div>",
|
|
},
|
|
});
|
|
});
|
|
</script>
|
|
@endsection
|
|
@stop |