138 lines
6.5 KiB
PHP
138 lines
6.5 KiB
PHP
@php
|
|
$siteBreadcumb = [
|
|
["url"=>"/realisasi-pendapatan","label"=>$siteTitle],
|
|
];
|
|
@endphp
|
|
|
|
@extends('layouts.app')
|
|
|
|
@section('styles')
|
|
<!-- DataTables -->
|
|
<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-fixedcolumns/css/fixedColumns.bootstrap4.min.css">
|
|
@endsection
|
|
|
|
@section('card_header')
|
|
<div class="card-header">
|
|
<h2 class="card-title"><i class="fa fa-th-list mr-2"></i> {{ $sitesubTitle }}</h2>
|
|
<div class="card-tools">
|
|
|
|
</div>
|
|
</div>
|
|
@stop
|
|
|
|
@section('content')
|
|
{{-- <div class="row">
|
|
<div class="col-12">
|
|
<div class="form-group">
|
|
<label>Berdasarkan Kata</label>
|
|
<input class="form-control form-control-sm" type="text" id="src">
|
|
</div>
|
|
</div>
|
|
</div> --}}
|
|
<table id="dtTableSKPP" class="table table-striped jambo_table tblClickRow" style="width:100%">
|
|
<thead>
|
|
<tr class="headings">
|
|
<th>No</th>
|
|
<th>Dari</th>
|
|
<th>Untuk</th>
|
|
<th>Judul</th>
|
|
<th>Pesan</th>
|
|
<th>Status</th>
|
|
<th>Aksi</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody></tbody>
|
|
</table>
|
|
@stop
|
|
@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 type="text/javascript">
|
|
$(document).ready(function(){
|
|
var srcDate1 = null, srcDate2 = null;
|
|
|
|
$("#src").keyup(function(e){
|
|
if (e.keyCode == 13){
|
|
e.preventDefault();
|
|
dtTable.draw();
|
|
}
|
|
});
|
|
|
|
var dtTable = $('#dtTableSKPP').DataTable( {
|
|
"processing": true,
|
|
"serverSide": true,
|
|
"ordering": false,
|
|
"autoWidth": false,
|
|
"ajax": {
|
|
url: "{{ $baseUrl }}/notif/datatable",
|
|
type: "POST",
|
|
headers: {
|
|
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
|
|
},
|
|
data: function (d) {
|
|
//d.src = $("#src").val()
|
|
}
|
|
},
|
|
"columnDefs": [
|
|
//{ className: "td-nowrap", "targets": [ 1 ] }
|
|
],
|
|
"dom": "<\"top\" <\"row\"<\"col-md-6\"><\"col-md-6 text-right\">>>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": "role_from" },
|
|
{ "data": "role_to" },
|
|
{ "data": "jenis", "className":"text-left" },
|
|
{ "data": "message", "className":"text-left" },
|
|
{ "data": null},
|
|
{ "data": null},
|
|
],
|
|
"rowCallback": function(nRow, aData, iDisplayIndex, iDisplayIndexFull, oSettings) {
|
|
let info = dtTable.page.info();
|
|
let numStart = info.page;
|
|
let index = (numStart * dtTable.page.len()) + iDisplayIndex + 1;
|
|
$("td:eq(0)", nRow).html(index);
|
|
$("td:eq(5)", nRow).html(aData["is_read"]==0?"<strong>Belum dibaca</strong>":"<span class='text-success'>Sudah dibaca</span>");
|
|
$("td:eq(6)", nRow).html(
|
|
"<form class='form-delete' action='{{ $baseUrl }}/realisasi-pendapatan/"+aData['id']+"' method='POST'>"+
|
|
"<input type='hidden' name='_token' id='csrf-token' value='{{ Session::token() }}' /><input type='hidden' name='_method' value='DELETE'>"+
|
|
"<a class='btn btn-default btn-sm' href='"+aData['url']+"' title='Lihat'><i class='fa fa-bullseye'></i></a></form>");
|
|
|
|
return nRow;
|
|
},
|
|
"language": {
|
|
"lengthMenu": "Display _MENU_ records per page",
|
|
"zeroRecords": "Data tidak ditemukan!",
|
|
"info": "Halaman _PAGE_ dari _PAGES_ Halaman ( _TOTAL_ 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>",
|
|
},
|
|
scrollX:true,
|
|
});
|
|
});
|
|
</script>
|
|
@endsection |