Develop
This commit is contained in:
@@ -4,7 +4,9 @@ namespace App\Http\Controllers;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Models\SubKegiatan;
|
||||
use App\Models\Sps_pendapatan;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
class ItemSearchController extends Controller
|
||||
{
|
||||
@@ -44,4 +46,18 @@ class ItemSearchController extends Controller
|
||||
}
|
||||
return response()->json($tropd);
|
||||
}
|
||||
|
||||
public function sps(Request $request)
|
||||
{
|
||||
$tropd = [];
|
||||
if($request->has('q')){
|
||||
$search = strtolower($request->q);
|
||||
$ta = $request->ta;
|
||||
$select = DB::raw("ID,KODE_REKENING||' | '||NAMA_REKENING as name");
|
||||
$tropd = Sps_pendapatan::select($select)
|
||||
->whereRaw("TAHUN=$ta AND SKPD_ID = 980 AND (LOWER(KODE_REKENING) LIKE '%$search%' OR LOWER(NAMA_REKENING) LIKE '%$search%')")
|
||||
->get();
|
||||
}
|
||||
return response()->json($tropd);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ use Illuminate\Support\Facades\Http;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Maatwebsite\Excel\Facades\Excel;
|
||||
use App\Models\SPS_PENDAPATAN;
|
||||
use App\Models\Sps_pendapatan;
|
||||
|
||||
class JadwalSalurdanaController extends Controller
|
||||
{
|
||||
@@ -31,10 +31,10 @@ class JadwalSalurdanaController extends Controller
|
||||
$ta = $post["ta"];
|
||||
|
||||
$dataFilter=0;
|
||||
$data = SPS_PENDAPATAN::where("SKPD_ID",980)
|
||||
$data = Sps_pendapatan::where("SKPD_ID",980)
|
||||
->where("TAHUN",$ta);
|
||||
$dataFilter = $data->count();
|
||||
$dataTotal = SPS_PENDAPATAN::where("SKPD_ID",980)
|
||||
$dataTotal = Sps_pendapatan::where("SKPD_ID",980)
|
||||
->where("TAHUN",$ta)
|
||||
->count();
|
||||
|
||||
|
||||
@@ -1,36 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\TxSkpp;
|
||||
use Illuminate\Http\Request;
|
||||
use PHPJasper\PHPJasper;
|
||||
|
||||
class LaporanController extends Controller
|
||||
{
|
||||
|
||||
public function __construct(){
|
||||
$this->siteTitle = "Laporan";
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$this->setSubtitle("Laporan");
|
||||
return view('laporan.index');
|
||||
}
|
||||
|
||||
public function showReport(Request $request)
|
||||
{
|
||||
$req = $request->all();
|
||||
$date = explode("-", $req["periode"]);
|
||||
$params = [
|
||||
"Periode"=>$req["report_type"],
|
||||
"Date1"=>ConvertIndoDate(trim($date[0])),
|
||||
"Date2"=>ConvertIndoDate(trim($date[1])),
|
||||
];
|
||||
// var_dump($params); exit;
|
||||
$fileReport = reportProceed("laporan_skpp","laporan_skpp", $params);
|
||||
return response()->file($fileReport);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,117 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Http;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Maatwebsite\Excel\Facades\Excel;
|
||||
use App\Models\DbhPendapatanRealisasi;
|
||||
|
||||
class RealisasiPendapatanController extends Controller
|
||||
{
|
||||
public function __construct(){
|
||||
$this->siteTitle = "Realisasi Pendapatan";
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
return view('realisasi_pendapatan.index')
|
||||
->with('i', (request()->input('page', 1) - 1) * 10);
|
||||
}
|
||||
|
||||
public function create()
|
||||
{
|
||||
// if (!Auth::user()->can("Tambah SKPP")){
|
||||
// abort(403, 'Youre not allowed to visit this page!');
|
||||
// }
|
||||
$this->setSubtitle("Tambah Data");
|
||||
return view('realisasi_pendapatan.create');
|
||||
}
|
||||
|
||||
public function store(Request $request)
|
||||
{
|
||||
try{
|
||||
$date = date("Ymd");
|
||||
DB::beginTransaction();
|
||||
|
||||
$req = $request->all();
|
||||
$data["id_sps"] = $req["txt_id_sps"];
|
||||
$data["simtrad4_uraian"] = $req["txt_simtrad4_uraian"];
|
||||
$data["simtrad4_kotor"] = replaceMoney($req["txt_simtrad4_kotor"]);
|
||||
$data["simtrad4_potongan"] = replaceMoney($req["txt_simtrad4_potongan"]);
|
||||
$data["simtrad4_bersih"] = replaceMoney($req["txt_simtrad4_bersih"]);
|
||||
$data["simtrad4_sp2d_bun"] = $req["txt_simtrad4_sp2d_bun"];
|
||||
$data["created_by"] = Auth::user()->id;
|
||||
//var_dump($data); exit;
|
||||
DbhPendapatanRealisasi::create($data);
|
||||
DB::commit();
|
||||
|
||||
return redirect()->route('realisasi-pendapatan.index')
|
||||
->with('success','SKPP berhasil dibuat.');
|
||||
}catch(\Exception $e){
|
||||
|
||||
DB::rollBack();
|
||||
return redirect()->route('realisasi-pendapatan.create')
|
||||
->with('error',$e->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
public function datatable(Request $request)
|
||||
{
|
||||
$post = $request->all();
|
||||
$offset = $post["start"];
|
||||
$limit = $post["length"];
|
||||
$src = $post["src"];
|
||||
$ta = $post["ta"];
|
||||
|
||||
$dataFilter=0;
|
||||
$data = DbhPendapatanRealisasi::orderBy("created_at","ASC");
|
||||
$dataFilter = $data->count();
|
||||
$dataTotal = DbhPendapatanRealisasi::count();
|
||||
|
||||
return response()->json([
|
||||
"recordsTotal" => $dataTotal,
|
||||
"recordsFiltered" => $dataFilter,
|
||||
"data"=> $data->skip($offset)->take($limit)->get()
|
||||
]);
|
||||
}
|
||||
|
||||
public function destroy(DbhPendapatanRealisasi $realisasi_pendapatan)
|
||||
{
|
||||
try{
|
||||
DB::beginTransaction();
|
||||
$realisasi_pendapatan->delete();
|
||||
DB::commit();
|
||||
return redirect()->route('realisasi-pendapatan.index')
|
||||
->with('success','Data Realisasi Pendapatan berhasil dihapus!');
|
||||
|
||||
}catch(Throwable $e){
|
||||
|
||||
DB::rollBack();
|
||||
return redirect()->route('realisasi-pendapatan.index')
|
||||
->with('error','Data Realisasi Pendapatan gagal dihapus.');
|
||||
}
|
||||
}
|
||||
|
||||
public function show(DbhPendapatanRealisasi $realisasi_pendapatan)
|
||||
{
|
||||
// if (!Auth::user()->can("Lihat SKPP")){
|
||||
// abort(403, 'Youre not allowed to visit this page!');
|
||||
// }
|
||||
$this->setSubtitle("Detail Data");
|
||||
return view('realisasi_pendapatan.show',compact("realisasi_pendapatan"));
|
||||
}
|
||||
|
||||
public function sts()
|
||||
{
|
||||
// if (!Auth::user()->can("Tambah SKPP")){
|
||||
// abort(403, 'Youre not allowed to visit this page!');
|
||||
// }
|
||||
$this->setSubtitle("Input STS");
|
||||
return view('realisasi_pendapatan.sts');
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
use App\Traits\Uuids;
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Yajra\Oci8\Eloquent\OracleEloquent as Eloquent;
|
||||
|
||||
class DbhPendapatanRealisasi extends Eloquent
|
||||
{
|
||||
use HasFactory;
|
||||
use Uuids;
|
||||
protected $connection = 'mysql';
|
||||
protected $table = 'dbh_pendapatan_realisasi';
|
||||
protected $fillable = [
|
||||
'simtrad4_uraian','simtrad4_kotor','simtrad4_potongan','simtrad4_bersih','simtrad4_sp2d_bun',
|
||||
'rkud_tgl','rkud_no_sts','rkud_kode_akun','rkud_nama_akun','rkud_jumlah','id_sps'
|
||||
];
|
||||
|
||||
}
|
||||
@@ -6,7 +6,7 @@ use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Yajra\Oci8\Eloquent\OracleEloquent as Eloquent;
|
||||
|
||||
class SPS_PENDAPATAN extends Eloquent
|
||||
class Sps_pendapatan extends Eloquent
|
||||
{
|
||||
use HasFactory;
|
||||
protected $connection = 'oracle';
|
||||
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
namespace App\Traits;
|
||||
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
trait Uuids
|
||||
{
|
||||
/**
|
||||
* Boot function from Laravel.
|
||||
*/
|
||||
protected static function boot()
|
||||
{
|
||||
parent::boot();
|
||||
static::creating(function ($model) {
|
||||
if (empty($model->{$model->getKeyName()})) {
|
||||
$model->{$model->getKeyName()} = Str::uuid()->toString();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the value indicating whether the IDs are incrementing.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function getIncrementing()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the auto-incrementing key type.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getKeyType()
|
||||
{
|
||||
return 'string';
|
||||
}
|
||||
}
|
||||
@@ -1,34 +0,0 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateJadwalSalurDetailTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('jadwal_salur_detail', function (Blueprint $table) {
|
||||
$table->uuid('id')->primary();
|
||||
$table->string('id_jadwal_salur', 50);
|
||||
$table->tinyInteger('bulan');
|
||||
$table->decimal('jumlah', 19, 2);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('jadwal_salur_detail');
|
||||
}
|
||||
}
|
||||
@@ -1,35 +0,0 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreatePendapatanJadwalSalurTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('pendapatan_jadwal_salur', function (Blueprint $table) {
|
||||
$table->uuid('id')->primary();
|
||||
$table->string('tahun', 4);
|
||||
$table->decimal('perpres', 19, 2);
|
||||
$table->decimal('apbd', 19, 2);
|
||||
$table->decimal('jumlah', 19, 2);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('pendapatan_jadwal_salur');
|
||||
}
|
||||
}
|
||||
@@ -1,34 +0,0 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreatePendapatanJadwalSalurDetailTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('pendapatan_jadwal_salur_detail', function (Blueprint $table) {
|
||||
$table->uuid('id')->primary();
|
||||
$table->string('id_pendapatan_jadwal_salur', 50);
|
||||
$table->tinyInteger('bulan');
|
||||
$table->decimal('jumlah', 19, 2);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('pendapatan_jadwal_salur_detail');
|
||||
}
|
||||
}
|
||||
@@ -1,43 +0,0 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateJadwalSalurDetailRinciTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('jadwal_salur_detail_rinci', function (Blueprint $table) {
|
||||
$table->uuid('id')->primary();
|
||||
$table->string('id_jadwal_salur_detail', 50);
|
||||
$table->string('tahun', 4);
|
||||
$table->string('nama_akun', 150);
|
||||
$table->decimal('perpres', 19, 2);
|
||||
$table->decimal('apbd', 19, 2);
|
||||
$table->string('pmk', 50);
|
||||
$table->string('pmk_pasal', 30);
|
||||
$table->tinyInteger('pmk_I');
|
||||
$table->tinyInteger('pmk_II');
|
||||
$table->tinyInteger('pmk_III');
|
||||
$table->tinyInteger('pmk_IV');
|
||||
$table->decimal('jumlah', 19, 2);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('jadwal_salur_detail_rinci');
|
||||
}
|
||||
}
|
||||
-34
@@ -1,34 +0,0 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateJadwalSalurDetailRinciDetailTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('jadwal_salur_detail_rinci_detail', function (Blueprint $table) {
|
||||
$table->uuid('id')->primary();
|
||||
$table->string('id_jadwal_salur_detail_rinci', 50);
|
||||
$table->tinyInteger('bulan');
|
||||
$table->decimal('jumlah', 19, 2);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('jadwal_salur_detail_rinci_detail');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateDbhPendapatanRealisasiTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('dbh_pendapatan_realisasi', function (Blueprint $table) {
|
||||
$table->uuid('id')->primary();
|
||||
$table->integer('id_sps')->nullable();
|
||||
$table->text('simtrad4_uraian');
|
||||
$table->decimal('simtrad4_kotor', 19, 2);
|
||||
$table->decimal('simtrad4_potongan', 19, 2);
|
||||
$table->decimal('simtrad4_bersih', 19, 2);
|
||||
$table->string('simtrad4_sp2d_bun',50);
|
||||
$table->date('rkud_tgl')->nullable();
|
||||
$table->string('rkud_no_sts',20)->nullable();
|
||||
$table->string('rkud_kode_akun',50)->nullable();
|
||||
$table->string('rkud_nama_akun',255)->nullable();
|
||||
$table->string('rkud_jumlah',50)->nullable();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('dbh_pendapatan_realisasi');
|
||||
}
|
||||
}
|
||||
@@ -12,6 +12,7 @@
|
||||
<link rel="stylesheet" href="/AdminLTE-3.2.0/plugins/datatables-bs4/css/dataTables.bootstrap4.min.css">
|
||||
<link rel="stylesheet" href="/AdminLTE-3.2.0/plugins/datatables-responsive/css/responsive.bootstrap4.min.css">
|
||||
<link rel="stylesheet" href="/AdminLTE-3.2.0/plugins/datatables-buttons/css/buttons.bootstrap4.min.css">
|
||||
<link rel="stylesheet" href="/AdminLTE-3.2.0/plugins/datatables-fixedcolumns/css/fixedColumns.bootstrap4.min.css">
|
||||
@endsection
|
||||
|
||||
@section('card_header')
|
||||
@@ -38,7 +39,7 @@
|
||||
<input class="form-control form-control-sm" type="text" id="src">
|
||||
</div>
|
||||
</form>
|
||||
<table id="dtTableSKPP" class="table table-striped jambo_table tblClickRow nowrap" style="width: 100%;">
|
||||
<table id="dtTableSKPP" class="table table-striped jambo_table tblClickRow" style="width:150%">
|
||||
<thead>
|
||||
<tr class="headings">
|
||||
<th>No</th>
|
||||
@@ -74,6 +75,8 @@
|
||||
<script src="/AdminLTE-3.2.0/plugins/datatables-buttons/js/buttons.html5.min.js"></script>
|
||||
<script src="/AdminLTE-3.2.0/plugins/datatables-buttons/js/buttons.print.min.js"></script>
|
||||
<script src="/AdminLTE-3.2.0/plugins/datatables-buttons/js/buttons.colVis.min.js"></script>
|
||||
<script src="/AdminLTE-3.2.0/plugins/datatables-fixedcolumns/js/dataTables.fixedColumns.min.js"></script>
|
||||
<script src="/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;
|
||||
@@ -97,6 +100,7 @@
|
||||
"processing": true,
|
||||
"serverSide": true,
|
||||
"ordering": false,
|
||||
"autoWidth": false,
|
||||
"ajax": {
|
||||
url: "/jadwal-salurdana/datatable",
|
||||
type: "POST",
|
||||
@@ -109,7 +113,7 @@
|
||||
}
|
||||
},
|
||||
"columnDefs": [
|
||||
{ className: "td-nowrap", "targets": [ 1 ] }
|
||||
//{ 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": [
|
||||
@@ -118,8 +122,8 @@
|
||||
],
|
||||
"paging": true, // Table pagination
|
||||
"columns": [
|
||||
{ "data": null,"width":50 },
|
||||
{ "data": "kode_rekening","width":200 },
|
||||
{ "data": null},
|
||||
{ "data": "kode_rekening", "width": "400px" },
|
||||
{ "data": "spsbulan1", "className":"text-right" },
|
||||
{ "data": "spsbulan2", "className":"text-right" },
|
||||
{ "data": "spsbulan3", "className":"text-right" },
|
||||
@@ -164,9 +168,9 @@
|
||||
"next": "Selanjutnya >",
|
||||
}
|
||||
},
|
||||
// "scrollX": true,
|
||||
"initComplete": function (settings, json) {
|
||||
$("#dtTableSKPP").wrap("<div style='overflow:auto; width:100%;position:relative;'></div>");
|
||||
scrollX:true,
|
||||
fixedColumns: {
|
||||
left: 2,
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
<link rel="stylesheet" href="/css/app.css">
|
||||
@yield('styles')
|
||||
</head>
|
||||
<body class="hold-transition sidebar-mini">
|
||||
<body class="hold-transition sidebar-mini text-sm">
|
||||
<div class="wrapper">
|
||||
|
||||
@include('partials.top_menu')
|
||||
|
||||
@@ -22,8 +22,37 @@
|
||||
<ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
|
||||
<li class="nav-header">MENU UTAMA</li>
|
||||
<li class="nav-item"><a href="/home" class="nav-link" ><i class="nav-icon fas fa-home"></i><p>Beranda</p></a></li>
|
||||
<li class="nav-item"><a href="/jadwal-salurdana" class="nav-link"><i class="nav-icon fas fa-calendar"></i><p>Jadwal Salur DBH</p></a></li>
|
||||
<li class="nav-item"><a href="/salur-dana" class="nav-link"><i class="nav-icon fas fa-table"></i><p>Salur DBH</p></a></li>
|
||||
<li class="nav-item">
|
||||
<a href="#" class="nav-link">
|
||||
<i class="nav-icon fas fa-circle"></i>
|
||||
<p>
|
||||
DBH / DAK
|
||||
<i class="right fas fa-angle-left"></i>
|
||||
</p>
|
||||
</a>
|
||||
<ul class="nav nav-treeview">
|
||||
<li class="nav-item">
|
||||
<a href="#" class="nav-link">
|
||||
<i class="far fa-circle nav-icon"></i>
|
||||
<p>Pendapatan<i class="right fas fa-angle-left"></i></p>
|
||||
</a>
|
||||
<ul class="nav nav-treeview">
|
||||
<li class="nav-item">
|
||||
<a href="{{ url('/jadwal-salurdana') }}" class="nav-link">
|
||||
<i class="far fa-dot-circle nav-icon"></i>
|
||||
<p>Jadwal</p>
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a href="{{ url('/realisasi-pendapatan') }}" class="nav-link">
|
||||
<i class="far fa-dot-circle nav-icon"></i>
|
||||
<p>Realisasi</p>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
@if(auth()->user()->can('Cetak Laporan SKPP'))
|
||||
<li class="nav-item"><a href="/laporan" class="nav-link"><i class="nav-icon fa fa-file-text-o"></i> Laporan</a></li>
|
||||
@endif
|
||||
@@ -38,6 +67,5 @@
|
||||
@endif
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
@php
|
||||
$siteBreadcumb = [
|
||||
["url"=>"/salur-dana","label"=>$siteTitle],
|
||||
["url"=>"/salur-dana/create","label"=>$sitesubTitle]
|
||||
];
|
||||
@endphp
|
||||
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
@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">
|
||||
{{-- @if(auth()->user()->can('Tambah SKPP')) --}}
|
||||
<button class="btn btn-sm btn-default" onclick="location.href='{{ route('realisasi-pendapatan.index') }}'"><i class="fa fa-arrow-left"></i> Kembali</button>
|
||||
{{-- @endif --}}
|
||||
</div>
|
||||
</div>
|
||||
@stop
|
||||
<form id="frmSalurdana" action="{{ route('realisasi-pendapatan.store') }}" method="POST" autocomplete="off">
|
||||
@csrf
|
||||
@include('realisasi_pendapatan.form')
|
||||
@endsection
|
||||
@@ -0,0 +1,84 @@
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-12">
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="txt_simtrad4_kotor">Tahun Anggaran</label>
|
||||
<div class="col-md-9 col-sm-9 ">
|
||||
<select id="txt_ta" name="txt_ta" style="width:100%" class="form-control">
|
||||
<option>2022</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="txt_simtrad4_kotor">DBH/DAK</label>
|
||||
<div class="col-md-9 col-sm-9 ">
|
||||
<select name="txt_id_sps" style="width:100%" class="form-control sps_search"></select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="txt_simtrad4_uraian">Uraian</label>
|
||||
<div class="col-md-9 col-sm-9 ">
|
||||
<textarea id="txt_simtrad4_uraian" name="txt_simtrad4_uraian" class="form-control"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="txt_simtrad4_kotor">Kotor</label>
|
||||
<div class="col-md-9 col-sm-9 ">
|
||||
<input id="txt_simtrad4_kotor" name="txt_simtrad4_kotor" class="form-control number-separator-indo" value="0">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="txt_simtrad4_potongan">Potongan</label>
|
||||
<div class="col-md-9 col-sm-9 ">
|
||||
<input id="txt_simtrad4_potongan" name="txt_simtrad4_potongan" class="form-control number-separator-indo" value="0">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="txt_simtrad4_bersih">Bersih</label>
|
||||
<div class="col-md-9 col-sm-9 ">
|
||||
<input id="txt_simtrad4_bersih" name="txt_simtrad4_bersih" class="form-control number-separator-indo" value="0" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="txt_simtrad4_sp2d_bun">SP2D BUN</label>
|
||||
<div class="col-md-9 col-sm-9 ">
|
||||
<input id="txt_simtrad4_sp2d_bun" name="txt_simtrad4_sp2d_bun" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button type="submit" class="btn btn-sm btn-success"><i class="fa fa-save"></i> Simpan</button>
|
||||
@section('scripts')
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
let hitung_bersih = ()=> {
|
||||
let bersih = replaceValue($("#txt_simtrad4_kotor").val()) - replaceValue($("#txt_simtrad4_potongan").val());
|
||||
$("#txt_simtrad4_bersih").val(separateNumberIndo(bersih));
|
||||
}
|
||||
|
||||
$("#txt_simtrad4_kotor, #txt_simtrad4_potongan").on("keyup",function(){
|
||||
hitung_bersih();
|
||||
})
|
||||
|
||||
$('.sps_search').select2({
|
||||
placeholder: 'Pilih DBH / DAK',
|
||||
ajax: {
|
||||
url: '/item-search-sps?ta='+$("#txt_ta").val(),
|
||||
dataType: 'json',
|
||||
delay: 250,
|
||||
processResults: function (data) {
|
||||
return {
|
||||
results: $.map(data, function (item) {
|
||||
return {
|
||||
text: item.name,
|
||||
id: item.id
|
||||
}
|
||||
})
|
||||
};
|
||||
},
|
||||
cache: true
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
@@ -0,0 +1,160 @@
|
||||
@php
|
||||
$siteBreadcumb = [
|
||||
["url"=>"/salur-dana","label"=>$siteTitle],
|
||||
["url"=>"/salur-dana/create","label"=>$sitesubTitle]
|
||||
];
|
||||
@endphp
|
||||
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('styles')
|
||||
<!-- DataTables -->
|
||||
<link rel="stylesheet" href="/AdminLTE-3.2.0/plugins/datatables-bs4/css/dataTables.bootstrap4.min.css">
|
||||
<link rel="stylesheet" href="/AdminLTE-3.2.0/plugins/datatables-responsive/css/responsive.bootstrap4.min.css">
|
||||
<link rel="stylesheet" href="/AdminLTE-3.2.0/plugins/datatables-buttons/css/buttons.bootstrap4.min.css">
|
||||
<link rel="stylesheet" href="/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">
|
||||
{{-- @if(auth()->user()->can('Tambah SKPP')) --}}
|
||||
<button class="btn btn-sm btn-success" onclick="location.href='{{ route('realisasi-pendapatan.create') }}'"><i class="fa fa-edit"></i> Tambah Data</button>
|
||||
{{-- @endif --}}
|
||||
</div>
|
||||
</div>
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
<form class="form-inline mb-3" autocomplete="off">
|
||||
<div class="input-group input-group-sm mr-sm-2">
|
||||
<div class="input-group-prepend"><span class="input-group-text">Periode</span></div>
|
||||
<select class="form-control form-control-sm" id="srcTA">
|
||||
<option value="2022">2022</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="input-group input-group-sm mr-sm-2">
|
||||
<div class="input-group-prepend"><span class="input-group-text">Berdasarkan Kata</span></div>
|
||||
<input class="form-control form-control-sm" type="text" id="src">
|
||||
</div>
|
||||
</form>
|
||||
<table id="dtTableSKPP" class="table table-striped jambo_table tblClickRow" style="width:100%">
|
||||
<thead>
|
||||
<tr class="headings">
|
||||
<th>No</th>
|
||||
<th>Uraian</th>
|
||||
<th>Kotor</th>
|
||||
<th>Potongan</th>
|
||||
<th>Bersih</th>
|
||||
<th>SP2D BUN</th>
|
||||
<th>NO. STS</th>
|
||||
<th>Aksi</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody></tbody>
|
||||
</table>
|
||||
@stop
|
||||
@section('scripts')
|
||||
<script src="/AdminLTE-3.2.0/plugins/datatables/jquery.dataTables.min.js"></script>
|
||||
<script src="/AdminLTE-3.2.0/plugins/datatables-bs4/js/dataTables.bootstrap4.min.js"></script>
|
||||
<script src="/AdminLTE-3.2.0/plugins/datatables-responsive/js/dataTables.responsive.min.js"></script>
|
||||
<script src="/AdminLTE-3.2.0/plugins/datatables-responsive/js/responsive.bootstrap4.min.js"></script>
|
||||
<script src="/AdminLTE-3.2.0/plugins/datatables-buttons/js/dataTables.buttons.min.js"></script>
|
||||
<script src="/AdminLTE-3.2.0/plugins/datatables-buttons/js/buttons.bootstrap4.min.js"></script>
|
||||
<script src="/AdminLTE-3.2.0/plugins/jszip/jszip.min.js"></script>
|
||||
<script src="/AdminLTE-3.2.0/plugins/pdfmake/pdfmake.min.js"></script>
|
||||
<script src="/AdminLTE-3.2.0/plugins/pdfmake/vfs_fonts.js"></script>
|
||||
<script src="/AdminLTE-3.2.0/plugins/datatables-buttons/js/buttons.html5.min.js"></script>
|
||||
<script src="/AdminLTE-3.2.0/plugins/datatables-buttons/js/buttons.print.min.js"></script>
|
||||
<script src="/AdminLTE-3.2.0/plugins/datatables-buttons/js/buttons.colVis.min.js"></script>
|
||||
<script src="/AdminLTE-3.2.0/plugins/datatables-fixedcolumns/js/dataTables.fixedColumns.min.js"></script>
|
||||
<script src="/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;
|
||||
|
||||
$('#dtTableSKPP tbody').on('click', 'tr', function () {
|
||||
var data = dtTable.row( this ).data();
|
||||
location.href = "/realisasi-pendapatan/" + data["id"];
|
||||
});
|
||||
|
||||
$("#src").keyup(function(e){
|
||||
if (e.keyCode == 13){
|
||||
dtTable.draw();
|
||||
}
|
||||
});
|
||||
|
||||
$("#srcTA").on("change",function(){
|
||||
dtTable.draw();
|
||||
});
|
||||
|
||||
var dtTable = $('#dtTableSKPP').DataTable( {
|
||||
"processing": true,
|
||||
"serverSide": true,
|
||||
"ordering": false,
|
||||
"autoWidth": false,
|
||||
"ajax": {
|
||||
url: "/realisasi-pendapatan/datatable",
|
||||
type: "POST",
|
||||
headers: {
|
||||
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
|
||||
},
|
||||
data: function (d) {
|
||||
d.src = $("#src").val(),
|
||||
d.ta = $("#srcTA").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": "simtrad4_uraian", "width": "400px" },
|
||||
{ "data": "simtrad4_kotor", "className":"text-right" },
|
||||
{ "data": "simtrad4_potongan", "className":"text-right" },
|
||||
{ "data": "simtrad4_bersih", "className":"text-right", "defaultContent":"0" },
|
||||
{ "data": "simtrad4_sp2d_bun", "className":"text-left", "defaultContent":"-" },
|
||||
{ "data": null, "className":"text-center", "defaultContent":"-"},
|
||||
{ "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(2)", nRow).html(separateNumberIndo(aData["simtrad4_kotor"]));
|
||||
$("td:eq(3)", nRow).html(separateNumberIndo(aData["simtrad4_potongan"]));
|
||||
$("td:eq(4)", nRow).html(separateNumberIndo(aData["simtrad4_bersih"]));
|
||||
$("td:eq(7)", nRow).html(
|
||||
"<form class='form-delete' action='/realisasi-pendapatan/"+aData['id']+"' method='POST'>"+
|
||||
"<a class='btn btn-default btn-sm' href='/realisasi-pendapatan/show/"+aData['id']+"' title='Lihat'><i class='fa fa-bullseye'></i></a>"+
|
||||
"<a class='btn btn-default btn-sm ml-1' href='/realisasi-pendapatan/edit/"+aData['id']+"' title='Ubah'><i class='fa fa-edit'></i></a>"+
|
||||
"<input type='hidden' name='_token' id='csrf-token' value='{{ Session::token() }}' /><input type='hidden' name='_method' value='DELETE'>"+
|
||||
"<button type='submit' class='btn btn-default btn-sm ml-1' title='Hapus'><i class='fa fa-trash'></i></button></form>");
|
||||
|
||||
return nRow;
|
||||
},
|
||||
"language": {
|
||||
"lengthMenu": "Display _MENU_ records per page",
|
||||
"zeroRecords": "Data tidak ditemukan!",
|
||||
"info": "Halaman _PAGE_ dari _PAGES_ Halaman",
|
||||
"infoEmpty": "Data tidak tersedia",
|
||||
"infoFiltered": "(Disaring dari _MAX_ Data)",
|
||||
"paginate": {
|
||||
"previous": "< Sebelumnya",
|
||||
"next": "Selanjutnya >",
|
||||
}
|
||||
},
|
||||
scrollX:true,
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
@@ -0,0 +1,80 @@
|
||||
@php
|
||||
$siteBreadcumb = [
|
||||
["url"=>"/salur-dana","label"=>$siteTitle],
|
||||
["url"=>"/salur-dana/create","label"=>$sitesubTitle]
|
||||
];
|
||||
@endphp
|
||||
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('styles')
|
||||
@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">
|
||||
{{-- @if(auth()->user()->can('Tambah SKPP')) --}}
|
||||
<button class="btn btn-sm btn-success" onclick="location.href='{{ route('realisasi-pendapatan.create') }}'"><i class="fa fa-edit"></i> Tambah Data</button>
|
||||
{{-- @endif --}}
|
||||
</div>
|
||||
</div>
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-12">
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="txt_simtrad4_kotor">Tahun Anggaran</label>
|
||||
<div class="col-md-9 col-sm-9 ">
|
||||
<select id="txt_ta" name="txt_ta" style="width:100%" class="form-control-plaintext">
|
||||
<option>2022</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="txt_simtrad4_kotor">DBH/DAK</label>
|
||||
<div class="col-md-9 col-sm-9 ">
|
||||
<input name="txt_id_sps" style="width:100%" class="form-control-plaintext">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="txt_simtrad4_uraian">Uraian</label>
|
||||
<div class="col-md-9 col-sm-9 ">
|
||||
<textarea id="txt_simtrad4_uraian" name="txt_simtrad4_uraian" class="form-control-plaintext">{{ $realisasi_pendapatan->simtrad4_uraian }}</textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="txt_simtrad4_kotor">Kotor</label>
|
||||
<div class="col-md-9 col-sm-9 ">
|
||||
<input id="txt_simtrad4_kotor" name="txt_simtrad4_kotor" class="form-control-plaintext number-separator-indo" value="{{ $realisasi_pendapatan->simtrad4_kotor }}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="txt_simtrad4_potongan">Potongan</label>
|
||||
<div class="col-md-9 col-sm-9 ">
|
||||
<input id="txt_simtrad4_potongan" name="txt_simtrad4_potongan" class="form-control-plaintext number-separator-indo" value="{{ $realisasi_pendapatan->simtrad4_potongan }}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="txt_simtrad4_bersih">Bersih</label>
|
||||
<div class="col-md-9 col-sm-9 ">
|
||||
<input id="txt_simtrad4_bersih" name="txt_simtrad4_bersih" class="form-control-plaintext number-separator-indo" value="{{ $realisasi_pendapatan->simtrad4_bersih }}" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="txt_simtrad4_sp2d_bun">SP2D BUN</label>
|
||||
<div class="col-md-9 col-sm-9 ">
|
||||
<input id="txt_simtrad4_sp2d_bun" name="txt_simtrad4_sp2d_bun" class="form-control-plaintext" value="{{ $realisasi_pendapatan->simtrad4_sp2d_bun }}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@stop
|
||||
@section('scripts')
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
@@ -0,0 +1,92 @@
|
||||
@php
|
||||
$siteBreadcumb = [
|
||||
["url"=>"/salur-dana","label"=>$siteTitle],
|
||||
["url"=>"/salur-dana/create","label"=>$sitesubTitle]
|
||||
];
|
||||
@endphp
|
||||
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
@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">
|
||||
{{-- @if(auth()->user()->can('Tambah SKPP')) --}}
|
||||
<button class="btn btn-sm btn-default" onclick="location.href='{{ route('realisasi-pendapatan.index') }}'"><i class="fa fa-arrow-left"></i> Kembali</button>
|
||||
{{-- @endif --}}
|
||||
</div>
|
||||
</div>
|
||||
@stop
|
||||
<form id="frmSTS" action="{{ route('realisasi-pendapatan.store') }}" method="POST" autocomplete="off">
|
||||
@csrf
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-12">
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="rkud_no_sts">No. STS</label>
|
||||
<div class="col-md-9 col-sm-9 ">
|
||||
<input id="rkud_no_sts" name="rkud_no_sts" class="form-control"></select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="rkud_tgl">Tanggal</label>
|
||||
<div class="col-md-9 col-sm-9 ">
|
||||
<input id="rkud_tgl" name="rkud_tgl" class="form-control" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="rkud_kode_akun">Kode Akun</label>
|
||||
<div class="col-md-9 col-sm-9 ">
|
||||
<input id="rkud_kode_akun" name="rkud_kode_akun" class="form-control" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="rkud_nama_akun">Nama Akun</label>
|
||||
<div class="col-md-9 col-sm-9 ">
|
||||
<input id="rkud_nama_akun" name="rkud_nama_akun" class="form-control" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="txt_simtrad4_bersih">Jumlah</label>
|
||||
<div class="col-md-9 col-sm-9 ">
|
||||
<input id="txt_simtrad4_bersih" name="txt_simtrad4_bersih" class="form-control number-separator-indo" value="0" readonly>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-sm btn-success"><i class="fa fa-save"></i> Simpan</button>
|
||||
@endsection
|
||||
@section('scripts')
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
let hitung_bersih = ()=> {
|
||||
let bersih = replaceValue($("#txt_simtrad4_kotor").val()) - replaceValue($("#txt_simtrad4_potongan").val());
|
||||
$("#txt_simtrad4_bersih").val(separateNumberIndo(bersih));
|
||||
}
|
||||
|
||||
$("#txt_simtrad4_kotor, #txt_simtrad4_potongan").on("keyup",function(){
|
||||
hitung_bersih();
|
||||
})
|
||||
|
||||
$('.sps_search').select2({
|
||||
placeholder: 'Pilih DBH / DAK',
|
||||
ajax: {
|
||||
url: '/item-search-sps?ta='+$("#txt_ta").val(),
|
||||
dataType: 'json',
|
||||
delay: 250,
|
||||
processResults: function (data) {
|
||||
return {
|
||||
results: $.map(data, function (item) {
|
||||
return {
|
||||
text: item.name,
|
||||
id: item.id
|
||||
}
|
||||
})
|
||||
};
|
||||
},
|
||||
cache: true
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
+8
-5
@@ -7,6 +7,7 @@ use App\Http\Controllers\SkpdController;
|
||||
use App\Http\Controllers\ItemSearchController;
|
||||
use App\Http\Controllers\SalurdanaController;
|
||||
use App\Http\Controllers\JadwalSalurdanaController;
|
||||
use App\Http\Controllers\RealisasiPendapatanController;
|
||||
use App\Http\Controllers\LaporanController;
|
||||
use App\Http\Controllers\Admin\MstPenggunaController;
|
||||
use App\Http\Controllers\Admin\RolessController;
|
||||
@@ -39,6 +40,12 @@ Route::group(['middleware' => 'auth'], function () {
|
||||
});
|
||||
});
|
||||
|
||||
Route::group(['prefix' => 'realisasi-pendapatan'], function () {
|
||||
Route::post('/datatable', [RealisasiPendapatanController::class,'datatable']);
|
||||
Route::get('/sts/{realisasiId}', [RealisasiPendapatanController::class,'sts']);
|
||||
});
|
||||
Route::resource('realisasi-pendapatan', RealisasiPendapatanController::class);
|
||||
|
||||
Route::resource('salur-dana', SalurdanaController::class);
|
||||
Route::group(['prefix' => 'salur-dana'], function () {
|
||||
Route::post('/datatable', [SalurdanaController::class,'datatable']);
|
||||
@@ -47,15 +54,11 @@ Route::group(['middleware' => 'auth'], function () {
|
||||
});
|
||||
});
|
||||
|
||||
Route::group(['prefix' => 'laporan','middleware' => ['permission:Cetak Laporan SKPP']], function () {
|
||||
Route::get('/', [LaporanController::class, 'index']);
|
||||
Route::post('/laporan-skpp', [LaporanController::class,'showReport']);
|
||||
});
|
||||
|
||||
Route::get('home', [HomeController::class, 'index'])->name('home');
|
||||
Route::get('skpd-search', [SkpdController::class,'selectSearch']);
|
||||
Route::get('item-search-sk', [ItemSearchController::class,'sk']);
|
||||
Route::get('item-search-rsk', [ItemSearchController::class,'rsk']);
|
||||
Route::get('item-search-sps', [ItemSearchController::class,'sps']);
|
||||
Route::post('role-list', [MstPenggunaController::class,'roleList']);
|
||||
Route::get('logout', [AuthController::class, 'logout'])->name('logout');
|
||||
});
|
||||
Reference in New Issue
Block a user