Maintenance dan Bugs Fix
This commit is contained in:
@@ -0,0 +1,155 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Admin;
|
||||
|
||||
use App\Models\MstJenisBelanja;
|
||||
use App\Models\MstSubJenisBelanja;
|
||||
use Illuminate\Http\Request;
|
||||
use App\Http\Controllers\Controller;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
class MstJenisBelanjaController extends Controller
|
||||
{
|
||||
public function __construct(){
|
||||
$this->siteTitle = "Master Jenis Belanja";
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$data = null;
|
||||
// $data = User::where('role_name', "<>", "superadmin")->latest()->paginate(10);
|
||||
return view('admin.mst_jenis_belanja.index',compact('data'))
|
||||
->with('i', (request()->input('page', 1) - 1) * 10);
|
||||
}
|
||||
|
||||
public function create()
|
||||
{
|
||||
$this->setSubtitle("Tambah Data");
|
||||
return view('admin.mst_jenis_belanja.create');
|
||||
}
|
||||
|
||||
public function create_sub(MstJenisBelanja $MstJenisBelanja)
|
||||
{
|
||||
$this->setSubtitle("Tambah Data Sub Jenis Belanja [<strong>".$MstJenisBelanja->name."</strong>] ");
|
||||
return view('admin.mst_jenis_belanja.create_sub',compact("MstJenisBelanja"));
|
||||
}
|
||||
|
||||
public function store(Request $request)
|
||||
{
|
||||
$request->validate([
|
||||
'name' => 'required',
|
||||
]);
|
||||
|
||||
$req = $request->all();
|
||||
MstJenisBelanja::where("name", $req["name"])->delete();
|
||||
$data["name"] = $req["name"];
|
||||
$data["description"] = $req["description"];
|
||||
MstJenisBelanja::create($data);
|
||||
|
||||
return redirect("/admin/MstJenisBelanja")->with('success','Jenis Belanja berhasil dibuat.');
|
||||
}
|
||||
|
||||
public function store_sub(Request $request)
|
||||
{
|
||||
$request->validate([
|
||||
'name' => 'required',
|
||||
'id_jenis_belanja' => 'required'
|
||||
]);
|
||||
|
||||
$req = $request->all();
|
||||
MstSubJenisBelanja::where("name", $req["name"])->where("id_jenis_belanja", $req["id_jenis_belanja"])->delete();
|
||||
$data["id_jenis_belanja"] = $req["id_jenis_belanja"];
|
||||
$data["name"] = $req["name"];
|
||||
$data["description"] = $req["description"];
|
||||
MstSubJenisBelanja::create($data);
|
||||
|
||||
return redirect("/admin/MstJenisBelanja/".$data["id_jenis_belanja"])->with('success','Sub Jenis Belanja berhasil dibuat.');
|
||||
}
|
||||
|
||||
public function show(MstJenisBelanja $MstJenisBelanja)
|
||||
{
|
||||
$SubJenisBelanja = MstSubJenisBelanja::where("id_jenis_belanja",$MstJenisBelanja->id)->get();
|
||||
$this->setSubtitle("Detail Jenis Belanja");
|
||||
return view('admin.mst_jenis_belanja.show',compact('MstJenisBelanja','SubJenisBelanja'));
|
||||
}
|
||||
|
||||
public function edit(User $user)
|
||||
{
|
||||
$this->setSubtitle("Ubah Data");
|
||||
return view('admin.mst_jenis_belanja.edit',compact('user'));
|
||||
}
|
||||
|
||||
public function update(Request $request, User $user)
|
||||
{
|
||||
$request->validate([
|
||||
'name' => 'required',
|
||||
'opt_role' => 'required'
|
||||
]);
|
||||
|
||||
$requestAll = $request->all();
|
||||
$requestAll["role_name"] = $requestAll["opt_role"];
|
||||
$user->update($requestAll);
|
||||
|
||||
$user->roles()->detach();
|
||||
// $user->removeRole($requestAll["opt_role"]);
|
||||
$user->assignRole($requestAll["opt_role"]);
|
||||
|
||||
return redirect()->route('users.index')
|
||||
->with('success','Data Jenis Belanja berhasil diubah!');
|
||||
}
|
||||
|
||||
public function destroy(User $user)
|
||||
{
|
||||
$user->delete();
|
||||
|
||||
return redirect()->route('users.index')
|
||||
->with('success','Data Jenis Belanja berhasil dihapus!');
|
||||
}
|
||||
|
||||
public function datatable(Request $request)
|
||||
{
|
||||
$post = $request->all();
|
||||
$offset = $post["start"];
|
||||
$limit = $post["length"];
|
||||
$src = isset($post["search"]["value"]) ? strtolower($post["search"]["value"]):"";
|
||||
$select = DB::raw("ID,NAME,DESCRIPTION");
|
||||
$sqlstr = MstJenisBelanja::select($select);
|
||||
$dataTotal = $sqlstr->count();
|
||||
$data = $sqlstr->orderBy("ID");
|
||||
if (!empty($src)){
|
||||
$data->whereRaw(" ( lower(NAME) like '%$src%' OR lower(DESCRIPTION) like '%$src%' ) ");
|
||||
}
|
||||
$dataFilter = $data->count();
|
||||
|
||||
return response()->json([
|
||||
"recordsTotal" => $dataTotal,
|
||||
"recordsFiltered" => $dataFilter,
|
||||
"data"=> $data->skip($offset)->take($limit)->get()
|
||||
]);
|
||||
}
|
||||
|
||||
public function datatableSubJenisBelanja(Request $request, $id)
|
||||
{
|
||||
$post = $request->all();
|
||||
$offset = $post["start"];
|
||||
$limit = $post["length"];
|
||||
$src = isset($post["search"]["value"]) ? strtolower($post["search"]["value"]):"";
|
||||
$select = DB::raw("ID,NAME,DESCRIPTION");
|
||||
$sqlstr = MstSubJenisBelanja::select($select)->where("id_jenis_belanja", $id);
|
||||
$dataTotal = $sqlstr->count();
|
||||
$data = $sqlstr->orderBy("ID");
|
||||
if (!empty($src)){
|
||||
$data->whereRaw(" ( lower(NAME) like '%$src%' OR lower(DESCRIPTION) like '%$src%' ) ");
|
||||
}
|
||||
$dataFilter = $data->count();
|
||||
|
||||
return response()->json([
|
||||
"recordsTotal" => $dataTotal,
|
||||
"recordsFiltered" => $dataFilter,
|
||||
"data"=> $data->skip($offset)->take($limit)->get()
|
||||
]);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -58,8 +58,7 @@ class Controller extends BaseController
|
||||
|
||||
public function readNotif($idUnik)
|
||||
{
|
||||
$notif = Notifikasi::where(["id_unik"=>$idUnik, "userid"=>Auth::user()->id])->firstOrNew();
|
||||
$notif->update(["is_read"=>1]);
|
||||
Notifikasi::query()->where(["id_unik"=>$idUnik, "userid"=>Auth::user()->id])->update(["is_read"=>1]);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -50,7 +50,6 @@ class RealisasiBelanjaController extends Controller
|
||||
|
||||
public function submit(Request $request, $id)
|
||||
{
|
||||
|
||||
$BelanjaRealisasi = BelanjaRealisasi::where("id", $id)->firstOrNew();
|
||||
// var_dump($BelanjaRealisasi->kode_rsk,$BelanjaRealisasi->kode_sub_kegiatan); exit;
|
||||
$this->setTitle("Realisasi Belanja");
|
||||
@@ -67,22 +66,24 @@ class RealisasiBelanjaController extends Controller
|
||||
$vwAKB = VwAkbSpdRealRsk::where("I_IDRSK",$BelanjaRealisasi->kode_rsk)->firstorNew();
|
||||
$BelanjaRealisasiKontrak = BelanjaRealisasiKontrak::where("belanja_realisasi_id",$id)->get();
|
||||
$vwSPD = DB::select(DB::raw(
|
||||
"SELECT x.I_SPDNO_DOK, x.D_SPDNO, z.V_SPP AS JML
|
||||
"SELECT x.I_SPDNO_DOK, x.D_SPDNO, sum(z.V_SPP) AS JML
|
||||
FROM NEWSIPKD.TMSPD x
|
||||
LEFT JOIN NEWSIPKD.TMSPPRINCIBLJ y ON x.I_ID = y.I_IDSPD
|
||||
LEFT JOIN NEWSIPKD.TMSPPRINCIBLJRSK z ON y.I_IDSPP = z.I_IDSPP
|
||||
WHERE z.I_IDRSK=".$BelanjaRealisasi->kode_rsk
|
||||
WHERE z.I_IDRSK=".$BelanjaRealisasi->kode_rsk."GROUP BY x.I_SPDNO_DOK, x.D_SPDNO ORDER BY x.D_SPDNO "
|
||||
));
|
||||
|
||||
$vwSP2D = DB::select(DB::raw('SELECT x.I_ID as IDSP2D, x.I_IDOPD,x.I_SP2DNO_DOK,
|
||||
TO_CHAR(x.D_SP2D_SAH,\'DD-MM-YYYY\') AS D_SP2D_SAH,x.V_SPP
|
||||
$vwSP2D = DB::select(DB::raw('SELECT x.I_ID as IDSP2D, x.I_SP2DNO_DOK,
|
||||
TO_CHAR(x.D_SP2D_SAH,\'DD-MM-YYYY\') AS D_SP2D_SAH, sum(y.V_SPP) as V_SPP
|
||||
FROM NEWSIPKD.TMSP2D x
|
||||
LEFT JOIN NEWSIPKD.TMSPPRINCIBLJRSK y
|
||||
ON x.I_IDSPP = y.I_IDSPP
|
||||
WHERE C_SP2D_SAH=1 AND y.I_IDRSK='.$BelanjaRealisasi->kode_rsk.' ORDER BY x.D_SP2D_SAH ' )
|
||||
LEFT JOIN NEWSIPKD.V_SPPBLJRSK y
|
||||
ON x.I_ID = y.I_IDSP2D
|
||||
WHERE y.I_IDRSK='.$BelanjaRealisasi->kode_rsk.' GROUP BY x.I_ID, x.I_SP2DNO_DOK,x.D_SP2D_SAH ORDER BY x.D_SP2D_SAH ' )
|
||||
);
|
||||
$unitSatuan = UnitSatuan::orderBy("id")->get();
|
||||
return view('realisasi_belanja.submit', compact("BelanjaRealisasi","BelanjaRealisasiKontrak","vwAKB","vwSPD","vwSP2D","unitSatuan"));
|
||||
$jmlRealisasi = DB::select(DB::raw("SELECT sum(REALISASI) as jml FROM NEWSIPKD.VW_BKU_REALISASI_RSK WHERE IDRSK = ".$BelanjaRealisasi->kode_rsk));
|
||||
$jmlRealisasi = $jmlRealisasi[0]->jml;
|
||||
return view('realisasi_belanja.submit', compact("BelanjaRealisasi","BelanjaRealisasiKontrak","vwAKB","vwSPD","vwSP2D","unitSatuan","jmlRealisasi"));
|
||||
}
|
||||
|
||||
public function datatable(Request $request)
|
||||
|
||||
@@ -196,7 +196,7 @@ class RealisasiPendapatanController extends Controller
|
||||
$userAnggaran = array_column($userAnggaran,"id");
|
||||
$url = URL::to("/realisasi-pendapatan/".$realisasiId);
|
||||
$message = "Realisasi Pendapatan dengan No. SP2D BUN ".$data["simtrad4_sp2d_bun"]." telah divalidasi oleh Bidang Perben!";
|
||||
$this->sendNotif("anggaran", "bendahara", $userAnggaran, $message, $url, "Realisasi Pendapatan", $data->id);
|
||||
$this->sendNotif("bendahara", "anggaran", $userAnggaran, $message, $url, "Realisasi Pendapatan", $data->id);
|
||||
|
||||
return redirect(URL::to("/realisasi-pendapatan"))->with('success','STS berhasil diinput.');
|
||||
}catch(\Exception $e){
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Yajra\Oci8\Eloquent\OracleEloquent as Eloquent;
|
||||
|
||||
class MstJenisBelanja extends Eloquent
|
||||
{
|
||||
use HasFactory;
|
||||
protected $connection = 'Samasa';
|
||||
protected $table = 'SAMASA.MST_JENIS_BELANJA';
|
||||
protected $fillable = [
|
||||
"name",
|
||||
"description",
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Yajra\Oci8\Eloquent\OracleEloquent as Eloquent;
|
||||
|
||||
class MstSubJenisBelanja extends Eloquent
|
||||
{
|
||||
use HasFactory;
|
||||
protected $connection = 'Samasa';
|
||||
protected $table = 'SAMASA.MST_SUB_JENIS_BELANJA';
|
||||
protected $fillable = [
|
||||
"id_jenis_belanja",
|
||||
"name",
|
||||
"description",
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateMstJenisbelanjaTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('mst_jenis_belanja', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('name');
|
||||
$table->string('description');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('mst_jenis_belanja');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateMstSubJenisBelanjaTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('mst_sub_jenis_belanja', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->integer('id_jenis_belanja');
|
||||
$table->string('name');
|
||||
$table->string('description');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('mst_sub_jenis_belanja');
|
||||
}
|
||||
}
|
||||
@@ -124,44 +124,6 @@
|
||||
"processing": "<div class='loading'></div>",
|
||||
},
|
||||
});
|
||||
|
||||
$(document).on("click",".chk-upload", function(){
|
||||
let val = $(this).val();
|
||||
let reset = $(this).prop("checked") == 1 ?0:1;
|
||||
location.href = "{{ URL::to("/admin/users") }}/"+val+"/lock-upload/"+reset;
|
||||
});
|
||||
|
||||
$("#btn_lock_all").on("click", function(){
|
||||
let test = Swal.fire({
|
||||
title: 'Fitur upload data akan dikunci untuk semua user!?',
|
||||
showDenyButton: true,
|
||||
showCancelButton: false,
|
||||
confirmButtonText: 'Ya',
|
||||
denyButtonText: "Tidak",
|
||||
icon: "warning",
|
||||
}).then((result) => {
|
||||
/* Read more about isConfirmed, isDenied below */
|
||||
if (result.isConfirmed) {
|
||||
location.href = "{{ URL::to("/admin/users") }}/lock-upload-all/0/0";
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
$("#btn_reset_lock_all").on("click", function(){
|
||||
let test = Swal.fire({
|
||||
title: 'Fitur upload data akan direset untuk semua user!?',
|
||||
showDenyButton: true,
|
||||
showCancelButton: false,
|
||||
confirmButtonText: 'Ya',
|
||||
denyButtonText: "Tidak",
|
||||
icon: "warning",
|
||||
}).then((result) => {
|
||||
/* Read more about isConfirmed, isDenied below */
|
||||
if (result.isConfirmed) {
|
||||
location.href = "{{ URL::to("/admin/users") }}/lock-upload-all/0/1";
|
||||
}
|
||||
})
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
@php
|
||||
$siteBreadcumb = [
|
||||
["url"=>"/admin/mst-hak","label"=>$siteTitle],
|
||||
["url"=>"/admin/mst-hak","label"=>$sitesubTitle]
|
||||
];
|
||||
@endphp
|
||||
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
<div class="row">
|
||||
<div class="col-lg-12 margin-tb">
|
||||
<div class="pull-left">
|
||||
<h5><i class="fa fa-edit"></i> @php echo $sitesubTitle; @endphp</h5>
|
||||
</div>
|
||||
<div class="pull-right">
|
||||
<a class="btn btn-secondary btn-sm" href="{{ route('MstJenisBelanja.index') }}"><i class="fa fa-arrow-left"></i> Back</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<form id="frmJenisBelanja" action="{{ route('MstJenisBelanja.store') }}" method="POST">
|
||||
@csrf
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-sm-12 col-md-12">
|
||||
<div class="form-group">
|
||||
<strong>Nama</strong>
|
||||
<input type="text" class="form-control" name="name" required placeholder="Input Nama">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-12 col-md-12">
|
||||
<div class="form-group">
|
||||
<strong>Deskripsi</strong>
|
||||
<textarea class="form-control" name="description" required placeholder="Input Keterangan"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-12 col-md-12">
|
||||
<button type="submit" class="btn btn-success"><i class="fa fa-paper-plane"></i> Submit</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
@endsection
|
||||
@section('scripts')
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
@@ -0,0 +1,50 @@
|
||||
@php
|
||||
$siteBreadcumb = [
|
||||
["url"=>"/admin/mst-hak","label"=>$siteTitle],
|
||||
["url"=>"/admin/mst-hak","label"=>$sitesubTitle]
|
||||
];
|
||||
@endphp
|
||||
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
<div class="row">
|
||||
<div class="col-lg-12 margin-tb">
|
||||
<div class="pull-left">
|
||||
<h5><i class="fa fa-edit"></i> @php echo $sitesubTitle; @endphp</h5>
|
||||
</div>
|
||||
<div class="pull-right">
|
||||
<a class="btn btn-secondary btn-sm" href="{{ URL::to('/admin/MstJenisBelanja/'.$MstJenisBelanja->id) }}"><i class="fa fa-arrow-left"></i> Back</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<form id="frmJenisBelanja" action="{{ URL::to('/admin/MstJenisBelanja/'.$MstJenisBelanja->id.'/store-sub') }}" method="POST">
|
||||
@csrf
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-sm-12 col-md-12">
|
||||
<div class="form-group">
|
||||
<strong>Nama</strong>
|
||||
<input type="hidden" class="form-control" name="id_jenis_belanja" value="{{ $MstJenisBelanja->id }}" required>
|
||||
<input type="text" class="form-control" name="name" required placeholder="Input Nama">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-12 col-md-12">
|
||||
<div class="form-group">
|
||||
<strong>Deskripsi</strong>
|
||||
<textarea class="form-control" name="description" required placeholder="Input Keterangan"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-xs-12 col-sm-12 col-md-12">
|
||||
<button type="submit" class="btn btn-success"><i class="fa fa-paper-plane"></i> Submit</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
@endsection
|
||||
@section('scripts')
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
});
|
||||
</script>
|
||||
@endsection
|
||||
@@ -0,0 +1,112 @@
|
||||
@php
|
||||
$siteBreadcumb = [
|
||||
["url"=>"/admin/users","label"=>$siteTitle],
|
||||
["url"=>"/admin/users","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 class="card-tools">
|
||||
<a class="btn btn-tool btn-default" href="{{ URL::to("/admin/MstJenisBelanja/create") }}"><i class="fa fa-edit"></i> Tambah Data</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<table id="dtTableUser" class="table table-striped jambo_table">
|
||||
<tr>
|
||||
<thead>
|
||||
<th width="50">No</th>
|
||||
<th>Nama</th>
|
||||
<th>Deskripsi</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/MstJenisBelanja/datatable",
|
||||
type: "POST",
|
||||
headers: {
|
||||
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
|
||||
},
|
||||
data: function (d) {
|
||||
}
|
||||
},
|
||||
"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": "name", "className":"text-left" },
|
||||
{ "data": "description", "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-default btn-sm" href="{{ URL::to("/admin/MstJenisBelanja") }}/`+ 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",
|
||||
"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
|
||||
@@ -0,0 +1,136 @@
|
||||
@php
|
||||
$siteBreadcumb = [
|
||||
["url"=>"/admin/users","label"=>$siteTitle],
|
||||
["url"=>"/admin/users","label"=>$sitesubTitle]
|
||||
];
|
||||
@endphp
|
||||
|
||||
@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
|
||||
|
||||
@extends('layouts.empty')
|
||||
|
||||
@section('content')
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h5 class="card-title"><i class="fa fa-eye"></i> @php echo $sitesubTitle; @endphp</h5>
|
||||
<div class="card-tools">
|
||||
<a class="btn btn-tool" href="{{ route('MstJenisBelanja.index') }}"><i class="fa fa-arrow-left"></i> Back</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<form id="frmSKPDMap" action="{{ $baseUrl."/admin/MstJenisBelanja" }}" method="POST">
|
||||
@csrf
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-sm-12 col-md-12">
|
||||
<div class="form-group">
|
||||
<strong>Nama:</strong>
|
||||
<input type="text" name="kode_rekening" class="form-control-plaintext" value="{{ $MstJenisBelanja->name }}" readonly>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<strong>Deskripsi</strong>
|
||||
<input type="text" class="form-control-plaintext" value="{{ $MstJenisBelanja->description }}" readonly>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<h5 class="card-title"><i class="fa fa-th-list"></i> DATA SUB JENIS BELANJA</h5>
|
||||
<div class="card-tools">
|
||||
<a class="btn btn-tool btn-default" href="{{ URL::to("/admin/MstJenisBelanja/".$MstJenisBelanja->id."/create-sub") }}"><i class="fa fa-edit"></i> Tambah Data</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<table id="dtTableUser" class="table table-striped jambo_table">
|
||||
<tr>
|
||||
<thead>
|
||||
<th width="50">No</th>
|
||||
<th>Nama</th>
|
||||
<th>Deskripsi</th>
|
||||
<th width="150px" class="text-center">Action</th>
|
||||
</thead>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@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/MstJenisBelanja/{{ $MstJenisBelanja->id }}/datatable-sub",
|
||||
type: "POST",
|
||||
headers: {
|
||||
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
|
||||
},
|
||||
data: function (d) {
|
||||
}
|
||||
},
|
||||
"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": "name", "className":"text-left" },
|
||||
{ "data": "description", "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-default btn-sm" href="{{ URL::to("/admin/MstJenisBelanja") }}/`+ 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",
|
||||
"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
|
||||
@@ -293,7 +293,7 @@
|
||||
"processing": "<div class='loading'></div>",
|
||||
},
|
||||
fixedColumns: {
|
||||
left: 2,
|
||||
left: 3,
|
||||
},
|
||||
scrollX:true,
|
||||
});
|
||||
|
||||
@@ -15,7 +15,6 @@
|
||||
<p class="text-center">Sistem Informasi Dana Transfer<br>Provinsi DKI Jakarta</p>
|
||||
@if(session('errors'))
|
||||
<div class="alert alert-danger alert-dismissible fade show" role="alert">
|
||||
Something it's wrong:
|
||||
<ul>
|
||||
@foreach ($errors->all() as $error)
|
||||
<li><p class="text-danger font-weight-bold">{{ $error }}</p></li>
|
||||
@@ -38,7 +37,7 @@
|
||||
<div class="form-group mb-1">
|
||||
<label class="col-form-label" for="nrk">USERNAME</label>
|
||||
<div class="input-group">
|
||||
<input type="text" name="nrk" class="form-control" placeholder="Username">
|
||||
<input type="text" name="nrk" class="form-control" placeholder="Username" required>
|
||||
<div class="input-group-append">
|
||||
<div class="input-group-text">
|
||||
<span class="fas fa-user"></span>
|
||||
@@ -49,7 +48,7 @@
|
||||
<div class="form-group mb-4">
|
||||
<label class="col-form-label" for="password">PASSWORD</label>
|
||||
<div class="input-group">
|
||||
<input type="password" name="password" class="form-control" placeholder="Password">
|
||||
<input type="password" name="password" class="form-control" placeholder="Password" required>
|
||||
<div class="input-group-append">
|
||||
<div class="input-group-text">
|
||||
<span class="fas fa-lock"></span>
|
||||
|
||||
@@ -92,6 +92,7 @@
|
||||
<li class="nav-header">MASTER DATA</li>
|
||||
<li class="nav-item"><a href="{{ $baseUrl }}/admin/users" class="nav-link"><i class="nav-icon fas fa-th-large nav-icon"></i><p>Pengguna</p></a></li>
|
||||
<li class="nav-item"><a href="{{ $baseUrl }}/admin/MappingDbhSkpd" class="nav-link"><i class="nav-icon fas fa-th-large nav-icon"></i><p>Mapping Rek DBH/DAK</p></a></li>
|
||||
<li class="nav-item"><a href="{{ $baseUrl }}/admin/MstJenisBelanja" class="nav-link"><i class="nav-icon fas fa-th-large nav-icon"></i><p>Jenis Belanja</p></a></li>
|
||||
@endif
|
||||
@if ($role == "superadmin")
|
||||
<li class="nav-header">PENGATURAN</li>
|
||||
|
||||
@@ -39,4 +39,19 @@
|
||||
</div>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
$("#frmInputRealisasi").on("submit",function(e){
|
||||
e.preventDefault();
|
||||
Swal.fire({
|
||||
title: 'Data akan disimpan?',
|
||||
showDenyButton: true,
|
||||
showCancelButton: false,
|
||||
confirmButtonText: 'Ya',
|
||||
denyButtonText: "Tidak",
|
||||
icon: "warning",
|
||||
}).then((result) => {
|
||||
if (result.isConfirmed) {
|
||||
return e.currentTarget.submit();
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@@ -52,40 +52,33 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<div class="row">
|
||||
<div class='col-12'>
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<th>Bulan</th>
|
||||
<th class="text-right">AKB</th>
|
||||
<th class="text-right">Realisasi</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$totalAKB = 0; $totalBKU = 0;
|
||||
foreach(GetBulan() as $key=>$bulan){ ?>
|
||||
<tr>
|
||||
<td>{{ $bulan }}</td>
|
||||
<td class="text-right">{{ separateNumberIndo($vwAKB["v_akb_".substr("00".($key+1),-2)]) }} </td>
|
||||
<td class="text-right">{{ separateNumberIndo($vwAKB["v_bku_".substr("00".($key+1),-2)]) }} </td>
|
||||
</tr>
|
||||
<?php
|
||||
$totalAKB+=floatVal($vwAKB["v_akb_".substr("00".($key+1),-2)]);
|
||||
$totalBKU+=floatVal($vwAKB["v_bku_".substr("00".($key+1),-2)]);
|
||||
} ?>
|
||||
<tr>
|
||||
<td><strong>TOTAL</strong></td>
|
||||
<td class="text-right"><strong>{{ separateNumberIndo($totalAKB) }}</strong></td>
|
||||
<td class="text-right"><strong>{{ separateNumberIndo($totalBKU) }}</strong></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<th>Bulan</th>
|
||||
<th class="text-right">AKB</th>
|
||||
<th class="text-right">Realisasi</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$totalAKB = 0; $totalBKU = 0;
|
||||
foreach(GetBulan() as $key=>$bulan){ ?>
|
||||
<tr>
|
||||
<td>{{ $bulan }}</td>
|
||||
<td class="text-right">{{ separateNumberIndo($vwAKB["v_akb_".substr("00".($key+1),-2)]) }} </td>
|
||||
<td class="text-right">{{ separateNumberIndo($vwAKB["v_bku_".substr("00".($key+1),-2)]) }} </td>
|
||||
</tr>
|
||||
<?php
|
||||
$totalAKB+=floatVal($vwAKB["v_akb_".substr("00".($key+1),-2)]);
|
||||
$totalBKU+=floatVal($vwAKB["v_bku_".substr("00".($key+1),-2)]);
|
||||
} ?>
|
||||
<tr>
|
||||
<td><strong>TOTAL</strong></td>
|
||||
<td class="text-right"><strong>{{ separateNumberIndo($totalAKB) }}</strong></td>
|
||||
<td class="text-right"><strong>{{ separateNumberIndo($totalBKU) }}</strong></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
{{-- <div class="col-6">
|
||||
<strong><i class="fa fa-th-list mr-2"></i> SPD</strong><hr style="margin-bottom: 0 !important;">
|
||||
<table class="table table-sm table-striped">
|
||||
<thead>
|
||||
@@ -96,15 +89,15 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$totalSPD = 0;
|
||||
foreach($vwSPD as $key=>$spd){ ?>
|
||||
//$totalSPD = 0;
|
||||
//foreach($vwSPD as $key=>$spd){ ?>
|
||||
<tr>
|
||||
<td>{{ $key+1 }}</td>
|
||||
<td>{{ $spd->i_spdno_dok }}</td>
|
||||
<td class="text-center">{{ date("d-m-Y",strtotime($spd->d_spdno)) }}</td>
|
||||
<td class="text-right">{{ separateNumberIndo($spd->jml) }}</td>
|
||||
</tr>
|
||||
<?php $totalSPD+=floatVal($spd->jml); } ?>
|
||||
<?php //$totalSPD+=floatVal($spd->jml); } ?>
|
||||
<tr >
|
||||
<td colspan="3"><strong>TOTAL SPD</strong></td>
|
||||
<td class="text-right"><strong>{{ separateNumberIndo($totalSPD) }}</strong></td>
|
||||
@@ -121,23 +114,23 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$totalSP2D = 0;
|
||||
foreach($vwSP2D as $key=>$sp2d){ ?>
|
||||
//$totalSP2D = 0;
|
||||
//foreach($vwSP2D as $key=>$sp2d){ ?>
|
||||
<tr>
|
||||
<td>{{ $key+1 }}</td>
|
||||
<td>{{ $sp2d->i_sp2dno_dok }}</td>
|
||||
<td class="text-center">{{ date("d-m-Y",strtotime($sp2d->d_sp2d_sah)) }}</td>
|
||||
<td class="text-right">{{ separateNumberIndo($sp2d->v_spp) }}</td>
|
||||
</tr>
|
||||
<?php $totalSP2D+=floatVal($sp2d->v_spp); } ?>
|
||||
<?php //$totalSP2D+=floatVal($sp2d->v_spp); } ?>
|
||||
<tr >
|
||||
<td colspan="3"><strong>TOTAL SP2D</strong></td>
|
||||
<td class="text-right"><strong>{{ separateNumberIndo($totalSP2D) }}</strong></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>--}}
|
||||
</div>
|
||||
</div>
|
||||
<?php if (strtoupper($BelanjaRealisasi->jenis_dana) == "DAK" && strtoupper($BelanjaRealisasi->sub_jenis_dana) == "FISIK") { ?>
|
||||
@@ -211,7 +204,7 @@
|
||||
<div class="card-body">
|
||||
<div class="form-group">
|
||||
<label class="col-form-label label-align" for="sk">Jumlah Realisasi</label>
|
||||
<input type="text" class="form-control" name="jml_realisasi" disabled value="{{ separateNumberIndo($totalSP2D) }}">
|
||||
<input type="text" class="form-control" name="jml_realisasi" disabled value="{{ separateNumberIndo($jmlRealisasi) }}">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-form-label label-align" for="sk">Volume Realisasi</label>
|
||||
|
||||
@@ -169,7 +169,10 @@
|
||||
let numStart = info.page;
|
||||
let index = (numStart * dtTable.page.len()) + iDisplayIndex + 1;
|
||||
let btnEdit = {{ !empty(auth()->user()->can('Update DBH Realisasi Pendapatan'))?auth()->user()->can('Update DBH Realisasi Pendapatan'):"false" }} ?"<a class='btn btn-default btn-sm ml-1' href='{{ $baseUrl }}/realisasi-pendapatan/" + aData["id"] + "/edit' title='Ubah'><i class='fa fa-edit'></i></a>":"";
|
||||
btnEdit = aData["rkud_no_sts"] ==""?btnEdit:"";
|
||||
let btnDelete = {{ !empty(auth()->user()->can('Delete DBH Realisasi Pendapatan'))?auth()->user()->can('Delete DBH Realisasi Pendapatan'):"false" }} ?"<button type='submit' class='btn btn-default btn-sm ml-1' title='Hapus'><i class='fa fa-trash'></i></button>":"";
|
||||
btnDelete = aData["rkud_no_sts"] ==""?btnDelete:"";
|
||||
|
||||
$("td:eq(0)", nRow).html(index);
|
||||
$("td:eq(2)", nRow).html(separateNumberIndo(aData["simtrad4_kotor"]));
|
||||
$("td:eq(3)", nRow).html(separateNumberIndo(aData["simtrad4_potongan"]));
|
||||
|
||||
@@ -31,34 +31,34 @@
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-md-2 col-sm-2 label-align" for="rkud_no_sts">No. STS</label>
|
||||
<div class="col-md-10 col-sm-10 ">
|
||||
<input id="rkud_no_sts" name="rkud_no_sts" class="{{ Auth::user()->can("Input STS DBH Realisasi Pendapatan")?"form-control":"form-control-plaintext" }}" value="{{ empty($realisasi_pendapatan->rkud_no_sts)?"-":$realisasi_pendapatan->rkud_no_sts }}" placeholder="" {{ Auth::user()->can("Input STS DBH Realisasi Pendapatan")?"":"disabled" }}></select>
|
||||
<input id="rkud_no_sts" name="rkud_no_sts" class="{{ (Auth::user()->can("Input STS DBH Realisasi Pendapatan") && empty($realisasi_pendapatan->rkud_no_sts))?"form-control":"form-control-plaintext" }}" value="{{ empty($realisasi_pendapatan->rkud_no_sts)?"-":$realisasi_pendapatan->rkud_no_sts }}" placeholder="" {{ (Auth::user()->can("Input STS DBH Realisasi Pendapatan") && empty($realisasi_pendapatan->rkud_no_sts)) ?"":"disabled" }}></select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-md-2 col-sm-2 label-align" for="rkud_tgl">Tanggal</label>
|
||||
<div class="col-md-10 col-sm-10 ">
|
||||
<input id="rkud_tgl" name="rkud_tgl" class="{{ Auth::user()->can("Input STS DBH Realisasi Pendapatan")?"form-control":"form-control-plaintext" }}" value="{{ isset($realisasi_pendapatan->rkud_tgl)?date("Y-m-d",strtotime($realisasi_pendapatan->rkud_tgl)):"-" }}" readonly>
|
||||
<input id="rkud_tgl" name="rkud_tgl" class="{{ (Auth::user()->can("Input STS DBH Realisasi Pendapatan")&& empty($realisasi_pendapatan->rkud_no_sts))?"form-control":"form-control-plaintext" }}" value="{{ isset($realisasi_pendapatan->rkud_tgl)?date("Y-m-d",strtotime($realisasi_pendapatan->rkud_tgl)):"-" }}" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-md-2 col-sm-2 label-align" for="rkud_kode_akun">Kode Akun</label>
|
||||
<div class="col-md-10 col-sm-10 ">
|
||||
<input id="rkud_kode_akun" name="rkud_kode_akun" class="{{ Auth::user()->can("Input STS DBH Realisasi Pendapatan")?"form-control":"form-control-plaintext" }}" value="{{ empty($realisasi_pendapatan->rkud_kode_akun)?"-":$realisasi_pendapatan->rkud_kode_akun }}" readonly>
|
||||
<input id="rkud_kode_akun" name="rkud_kode_akun" class="{{ (Auth::user()->can("Input STS DBH Realisasi Pendapatan")&& empty($realisasi_pendapatan->rkud_no_sts))?"form-control":"form-control-plaintext" }}" value="{{ empty($realisasi_pendapatan->rkud_kode_akun)?"-":$realisasi_pendapatan->rkud_kode_akun }}" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-md-2 col-sm-2 label-align" for="rkud_nama_akun">Nama Akun</label>
|
||||
<div class="col-md-10 col-sm-10 ">
|
||||
<input id="rkud_nama_akun" name="rkud_nama_akun" class="{{ Auth::user()->can("Input STS DBH Realisasi Pendapatan")?"form-control":"form-control-plaintext" }}" value="{{ empty($realisasi_pendapatan->rkud_nama_akun)?"-":$realisasi_pendapatan->rkud_nama_akun }}"readonly>
|
||||
<input id="rkud_nama_akun" name="rkud_nama_akun" class="{{ (Auth::user()->can("Input STS DBH Realisasi Pendapatan")&& empty($realisasi_pendapatan->rkud_no_sts))?"form-control":"form-control-plaintext" }}" value="{{ empty($realisasi_pendapatan->rkud_nama_akun)?"-":$realisasi_pendapatan->rkud_nama_akun }}"readonly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label class="col-form-label col-md-2 col-sm-2 label-align" for="txt_simtrad4_bersih">Jumlah</label>
|
||||
<div class="col-md-10 col-sm-10 ">
|
||||
<input id="rkud_jumlah" name="rkud_jumlah" class="{{ Auth::user()->can("Input STS DBH Realisasi Pendapatan")?"form-control":"form-control-plaintext" }} number-separator-indo" value="{{ separateNumberIndo($realisasi_pendapatan->rkud_jumlah) }}" readonly>
|
||||
<input id="rkud_jumlah" name="rkud_jumlah" class="{{ (Auth::user()->can("Input STS DBH Realisasi Pendapatan")&& empty($realisasi_pendapatan->rkud_no_sts))?"form-control":"form-control-plaintext" }} number-separator-indo" value="{{ separateNumberIndo($realisasi_pendapatan->rkud_jumlah) }}" readonly>
|
||||
</div>
|
||||
</div>
|
||||
<?php if(Auth::user()->can("Input STS DBH Realisasi Pendapatan")){ ?>
|
||||
<?php if(Auth::user()->can("Input STS DBH Realisasi Pendapatan") && empty($realisasi_pendapatan->rkud_no_sts)){ ?>
|
||||
<div class="form-group">
|
||||
<button type="submit" class="btn btn-sm btn-success"><i class="fa fa-save"></i> Simpan</button>
|
||||
</div>
|
||||
@@ -124,13 +124,24 @@
|
||||
|
||||
$("#frmrealisasipendapatan").on("submit",function(e){
|
||||
e.preventDefault();
|
||||
if ($("#rkud_jumlah").val()==$("#txt_simtrad4_bersih").val()){
|
||||
if (getSTS()){
|
||||
return e.currentTarget.submit();
|
||||
Swal.fire({
|
||||
title: 'Data akan disimpan?',
|
||||
showDenyButton: true,
|
||||
showCancelButton: false,
|
||||
confirmButtonText: 'Ya',
|
||||
denyButtonText: "Tidak",
|
||||
icon: "warning",
|
||||
}).then((result) => {
|
||||
if (result.isConfirmed) {
|
||||
if ($("#rkud_jumlah").val()==$("#txt_simtrad4_bersih").val()){
|
||||
if (getSTS()){
|
||||
return e.currentTarget.submit();
|
||||
}
|
||||
}else{
|
||||
Swal.fire("Jumlah pada STS harus sama dengan Rencana !", '', 'error');
|
||||
}
|
||||
}
|
||||
}else{
|
||||
Swal.fire("Jumlah pada STS harus sama dengan Rencana !", '', 'error');
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
$("#detail_realisasi_pendapatan .form-control").removeClass();
|
||||
|
||||
@@ -13,6 +13,7 @@ use App\Http\Controllers\Admin\MstPenggunaController;
|
||||
use App\Http\Controllers\Admin\MappingDbhSkpdController;
|
||||
use App\Http\Controllers\Admin\RolessController;
|
||||
use App\Http\Controllers\Admin\PermissionsController;
|
||||
use App\Http\Controllers\Admin\MstJenisBelanjaController;
|
||||
use App\Http\Controllers\NotifikasiController;
|
||||
|
||||
Route::get('/', [AuthController::class, 'showFormLogin']);
|
||||
@@ -29,6 +30,12 @@ Route::group(['middleware' => 'auth'], function () {
|
||||
|
||||
Route::post('MappingDbhSkpd/datatable', [MappingDbhSkpdController::class,'datatable']);
|
||||
Route::resource('MappingDbhSkpd', MappingDbhSkpdController::class);
|
||||
|
||||
Route::post('MstJenisBelanja/datatable', [MstJenisBelanjaController::class,'datatable']);
|
||||
Route::post('MstJenisBelanja/{id}/datatable-sub', [MstJenisBelanjaController::class,'datatableSubJenisBelanja']);
|
||||
Route::get('MstJenisBelanja/{MstJenisBelanja}/create-sub', [MstJenisBelanjaController::class,'create_sub']);
|
||||
Route::post('MstJenisBelanja/{id}/store-sub', [MstJenisBelanjaController::class,'store_sub']);
|
||||
Route::resource('MstJenisBelanja', MstJenisBelanjaController::class);
|
||||
});
|
||||
|
||||
Route::get('users/change-password/{userId}', [MstPenggunaController::class,'changePass'])->name("users.changepass");
|
||||
|
||||
Reference in New Issue
Block a user