Develop Notifikasi
This commit is contained in:
@@ -7,6 +7,8 @@ use Illuminate\Foundation\Bus\DispatchesJobs;
|
|||||||
use Illuminate\Foundation\Validation\ValidatesRequests;
|
use Illuminate\Foundation\Validation\ValidatesRequests;
|
||||||
use Illuminate\Routing\Controller as BaseController;
|
use Illuminate\Routing\Controller as BaseController;
|
||||||
use View;
|
use View;
|
||||||
|
use App\Models\Notifikasi;
|
||||||
|
use Illuminate\Support\Facades\Auth;
|
||||||
|
|
||||||
class Controller extends BaseController
|
class Controller extends BaseController
|
||||||
{
|
{
|
||||||
@@ -25,4 +27,27 @@ class Controller extends BaseController
|
|||||||
View::share ( 'sitesubTitle' , $name );
|
View::share ( 'sitesubTitle' , $name );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function sendNotif($roleFrom, $roleTo, $userId=[], $message, $url, $jenis, $unik)
|
||||||
|
{
|
||||||
|
foreach($userId as $rowUserId){
|
||||||
|
$notif = new Notifikasi;
|
||||||
|
$notif["role_from"]=$roleFrom;
|
||||||
|
$notif["role_to"]=$roleTo;
|
||||||
|
$notif["userid"]=$rowUserId;
|
||||||
|
$notif["message"]=$message;
|
||||||
|
$notif["url"]=$url;
|
||||||
|
$notif["is_read"]=0;
|
||||||
|
$notif["jenis"]=$jenis;
|
||||||
|
$notif["id_unik"]=$unik;
|
||||||
|
$notif->save();
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function readNotif($idUnik)
|
||||||
|
{
|
||||||
|
$notif = Notifikasi::where(["id_unik"=>$idUnik, "userid"=>Auth::user()->id])->firstOrNew();
|
||||||
|
$notif->update(["is_read"=>1]);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,27 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
|
use App\Http\Controllers\Controller;
|
||||||
|
use App\Models\Notifikasi;
|
||||||
|
use Illuminate\Http\Request;
|
||||||
|
use Illuminate\Support\Facades\Auth;
|
||||||
|
|
||||||
|
class NotifikasiController extends Controller
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Display a listing of the resource.
|
||||||
|
*
|
||||||
|
* @return \Illuminate\Http\Response
|
||||||
|
*/
|
||||||
|
public function index()
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getNotif(Request $request)
|
||||||
|
{
|
||||||
|
$notif = Notifikasi::where(["userid"=>Auth::user()->id,"is_read"=>0])->get();
|
||||||
|
return response()->json($notif);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -9,6 +9,7 @@ use Illuminate\Support\Facades\Auth;
|
|||||||
use Maatwebsite\Excel\Facades\Excel;
|
use Maatwebsite\Excel\Facades\Excel;
|
||||||
use App\Models\DbhPendapatanRealisasi;
|
use App\Models\DbhPendapatanRealisasi;
|
||||||
use App\Models\Sps_pendapatan;
|
use App\Models\Sps_pendapatan;
|
||||||
|
use App\Models\User;
|
||||||
|
|
||||||
class RealisasiPendapatanController extends Controller
|
class RealisasiPendapatanController extends Controller
|
||||||
{
|
{
|
||||||
@@ -50,14 +51,20 @@ class RealisasiPendapatanController extends Controller
|
|||||||
$data["simtrad4_bersih"] = replaceMoney($req["txt_simtrad4_bersih"]);
|
$data["simtrad4_bersih"] = replaceMoney($req["txt_simtrad4_bersih"]);
|
||||||
$data["simtrad4_sp2d_bun"] = $req["txt_simtrad4_sp2d_bun"];
|
$data["simtrad4_sp2d_bun"] = $req["txt_simtrad4_sp2d_bun"];
|
||||||
$data["created_by"] = Auth::user()->id;
|
$data["created_by"] = Auth::user()->id;
|
||||||
//var_dump($data); exit;
|
|
||||||
DbhPendapatanRealisasi::create($data);
|
|
||||||
DB::commit();
|
|
||||||
|
|
||||||
|
$DbhPendapatanRealisasi = DbhPendapatanRealisasi::create($data);
|
||||||
|
|
||||||
|
// SEND NOTIF
|
||||||
|
$userBendahara = User::where("role_name","bendahara")->get()->toArray();
|
||||||
|
$userBendahara = array_column($userBendahara,"id");
|
||||||
|
$url = "/realisasi-pendapatan/".$DbhPendapatanRealisasi->id;
|
||||||
|
$message = "Realisasi Pendapatan telah dibuat oleh Bidang Anggaran dengan No. SP2D BUN ".$req["txt_simtrad4_sp2d_bun"];
|
||||||
|
$this->sendNotif("anggaran", "bendahara", $userBendahara, $message, $url, "Realisasi Pendapatan", $DbhPendapatanRealisasi->id);
|
||||||
|
|
||||||
|
DB::commit();
|
||||||
return redirect()->route('realisasi-pendapatan.index')
|
return redirect()->route('realisasi-pendapatan.index')
|
||||||
->with('success','Realisasi Pendapatan berhasil dibuat.');
|
->with('success','Realisasi Pendapatan berhasil dibuat.');
|
||||||
}catch(\Exception $e){
|
}catch(\Exception $e){
|
||||||
|
|
||||||
DB::rollBack();
|
DB::rollBack();
|
||||||
return redirect()->route('realisasi-pendapatan.create')
|
return redirect()->route('realisasi-pendapatan.create')
|
||||||
->with('error',$e->getMessage());
|
->with('error',$e->getMessage());
|
||||||
@@ -156,6 +163,7 @@ class RealisasiPendapatanController extends Controller
|
|||||||
// if (!Auth::user()->can("Lihat SKPP")){
|
// if (!Auth::user()->can("Lihat SKPP")){
|
||||||
// abort(403, 'Youre not allowed to visit this page!');
|
// abort(403, 'Youre not allowed to visit this page!');
|
||||||
// }
|
// }
|
||||||
|
$this->readNotif($realisasi_pendapatan->id);
|
||||||
$this->setSubtitle("Detail Data");
|
$this->setSubtitle("Detail Data");
|
||||||
return view('realisasi_pendapatan.show',compact("realisasi_pendapatan"));
|
return view('realisasi_pendapatan.show',compact("realisasi_pendapatan"));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,396 +0,0 @@
|
|||||||
<?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;
|
|
||||||
|
|
||||||
class SalurdanaController extends Controller
|
|
||||||
{
|
|
||||||
public function __construct(){
|
|
||||||
$this->siteTitle = "Data Salur Dana";
|
|
||||||
parent::__construct();
|
|
||||||
}
|
|
||||||
|
|
||||||
public function index()
|
|
||||||
{
|
|
||||||
return view('salurdana.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('salurdana.create');
|
|
||||||
}
|
|
||||||
|
|
||||||
public function store(Request $request)
|
|
||||||
{
|
|
||||||
try{
|
|
||||||
$date = date("Ymd");
|
|
||||||
DB::beginTransaction();
|
|
||||||
|
|
||||||
$req = $request->all();
|
|
||||||
// var_dump($req); exit;
|
|
||||||
$data = $this->setInputData($req);
|
|
||||||
$noUrut = date("ymd")."00001";
|
|
||||||
$cekNoUrut = TxSkpp::select(["id_pen"])
|
|
||||||
->whereRaw("date(created_at)='".date("Y-m-d")."'")
|
|
||||||
->orderBy("created_at","DESC")
|
|
||||||
->first();
|
|
||||||
|
|
||||||
if ($cekNoUrut){
|
|
||||||
$noUrut = substr($cekNoUrut["id_pen"], -5) + 1;
|
|
||||||
$noUrut = date("ymd").substr("00000".$noUrut, -5);
|
|
||||||
}
|
|
||||||
|
|
||||||
$data["id_pen"] = $noUrut;
|
|
||||||
$data["no_skpp"] = $noUrut."/SKPP/073.521";
|
|
||||||
$data["created_by"] = Auth::user()->id;
|
|
||||||
|
|
||||||
$cekData = TxSkpp::where("nip", $data["nip"])
|
|
||||||
->orWhere("nrk", $data["nrk"])
|
|
||||||
->first();
|
|
||||||
|
|
||||||
if ($cekData){
|
|
||||||
throw new \Exception("Data dengan NIP ".$data["nip"]." Sudah ada");
|
|
||||||
}
|
|
||||||
|
|
||||||
$TSkpp = TxSkpp::create($data);
|
|
||||||
DB::commit();
|
|
||||||
|
|
||||||
return redirect()->route('tx-salurdana.index')
|
|
||||||
->with('success','SKPP berhasil dibuat.');
|
|
||||||
}catch(\Exception $e){
|
|
||||||
|
|
||||||
DB::rollBack();
|
|
||||||
return redirect()->route('tx-salurdana.index')
|
|
||||||
->with('error',$e->getMessage());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
protected function setInputData($req){
|
|
||||||
$dinas = MstUnit::where("N_OPD", $req["personal"]["nama_dinas"])->first();
|
|
||||||
|
|
||||||
$data["nama"]=$req["personal"]["nama"];
|
|
||||||
$data["nip"]=$req["personal"]["nip"];
|
|
||||||
$data["nrk"]=$req["personal"]["nrk"];
|
|
||||||
$data["golongan"]=$req["personal"]["golongan_id"];
|
|
||||||
$data["status_pegawai"]=$req["personal"]["status_kepegawaian"];
|
|
||||||
$data["id_unit"]=isset($dinas["I_ID"])?$dinas["I_ID"]:0;
|
|
||||||
$data["dinas"]=$req["personal"]["nama_dinas"];
|
|
||||||
$data["tugas"]=$req["personal"]["tempat_tugas"];
|
|
||||||
$data["tgl_akhir"]=ConvertIndoDate($req["personal"]["penerimaan_gaji_akhir"]);
|
|
||||||
$data["id_kep"]=$req["keputusan"]["keputusan_id"];
|
|
||||||
$data["no_pen"]=$req["keputusan"]["nomor"];
|
|
||||||
$data["tgl_pen"]=ConvertIndoDate($req["keputusan"]["tgl"]);
|
|
||||||
$data["id_hak"]=$req["keputusan"]["hak_id"];
|
|
||||||
$data["tgl_tmt"]=ConvertIndoDate($req["keputusan"]["tmt"]);
|
|
||||||
$data["keterangan"]=$req["keputusan"]["keterangan_kantor"];
|
|
||||||
$data["nama_kantor1"]=$req["keputusan"]["nama_kantor1"];
|
|
||||||
$data["nama_kantor2"]=$req["keputusan"]["nama_kantor2"];
|
|
||||||
$data["wilayah"]=$req["keputusan"]["wilayah_kantor"];
|
|
||||||
$data["ga_pok"]=replaceMoney($req["rincian_gaji"]["gaji_pokok"]);
|
|
||||||
$data["t_issum"]=replaceMoney($req["rincian_gaji"]["tunjangan_suami_istri"]);
|
|
||||||
$data["t_anak"]=replaceMoney($req["rincian_gaji"]["tunjangan_anak"]);
|
|
||||||
$data["t_lain"]=replaceMoney($req["rincian_gaji"]["tunjangan_lain"]);
|
|
||||||
$data["t_jab"]=replaceMoney($req["rincian_gaji"]["tunjangan_jabatan"]);
|
|
||||||
$data["t_beras"]=replaceMoney($req["rincian_gaji"]["tunjangan_beras"]);
|
|
||||||
$data["tpph"]=replaceMoney($req["rincian_gaji"]["tunjangan_pph"]);
|
|
||||||
$data["bulat"]=replaceMoney($req["rincian_gaji"]["pembulatan"]);
|
|
||||||
$data["p_beras"]=replaceMoney($req["rincian_gaji"]["potongan_beras"]);
|
|
||||||
$data["iuran"]=replaceMoney($req["rincian_gaji"]["potongan_iuran_pfk"]);
|
|
||||||
$data["ppph"]=replaceMoney($req["rincian_gaji"]["potongan_pph"]);
|
|
||||||
$data["lain_2"]=replaceMoney($req["rincian_gaji"]["potongan_lain"]);
|
|
||||||
$data["potong"]=replaceMoney($req["rincian_gaji"]["total_potongan"]); // Total Seluruh potongan
|
|
||||||
$data["gaber"]=replaceMoney($req["rincian_gaji"]["total_gaji_bersih"]); // Total gaji bersih
|
|
||||||
$data["u_gaji1"]=null; // Hutang Gaji 1 date
|
|
||||||
$data["u_gaji2"]=null; // Hutang Gaji 2 date
|
|
||||||
$data["jml_u_gaji"]=0; // Total Hutang Gaji
|
|
||||||
$data["u_beras1"]=null; // Hutang Beras 1 date
|
|
||||||
$data["u_beras2"]=null; // Hutang Beras 2 date
|
|
||||||
$data["jml_u_beras"]=0; // Total Hutang Beras
|
|
||||||
$data["id_kan"]=$req["personal_kepala"]["kantor"];
|
|
||||||
$data["status_id"]=1;
|
|
||||||
$data["id_kpkd"]=$req["id_kpkd"];
|
|
||||||
$data["total_utang"]=replaceMoney($req["rincian_utang"]["total"]);
|
|
||||||
$data["total_utang_angsur"]=replaceMoney($req["rincian_utang"]["angsur"]);
|
|
||||||
$data["total_utang_sisa"]=replaceMoney($req["rincian_utang"]["sisa_utang"]);
|
|
||||||
|
|
||||||
$family = isset($req["family"])?$req["family"]:null;
|
|
||||||
TxKeluarga::where("nip",$data["nip"])->delete();
|
|
||||||
if ($family){
|
|
||||||
foreach($family["nama"] as $key=>$itemFamilyName){
|
|
||||||
if ($itemFamilyName){
|
|
||||||
$dataFamily["nip"] = $data["nip"];
|
|
||||||
$dataFamily["nama"] = $itemFamilyName;
|
|
||||||
$dataFamily["tgl_lahir"] = $family["tgl_lahir"][$key]?ConvertIndoDate($family["tgl_lahir"][$key]):null;
|
|
||||||
$dataFamily["hubungan"] = $family["hubungan"][$key];
|
|
||||||
TxKeluarga::create($dataFamily);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$debt = $req["debt"];
|
|
||||||
if ($debt){
|
|
||||||
TxSkppUtang::where("nip",$data["nip"])->delete();
|
|
||||||
foreach($debt["deskripsi"] as $key=>$itemDebt){
|
|
||||||
if ($itemDebt){
|
|
||||||
$dataDebt["nip"] = $data["nip"];
|
|
||||||
$dataDebt["uraian"] = $itemDebt;
|
|
||||||
$dataDebt["jumlah"] = $debt["jumlah"][$key]?replaceMoney($debt["jumlah"][$key]):0;
|
|
||||||
TxSkppUtang::create($dataDebt);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return $data;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function show(TxSkpp $TxSkpp)
|
|
||||||
{
|
|
||||||
if (!Auth::user()->can("Lihat SKPP")){
|
|
||||||
abort(403, 'Youre not allowed to visit this page!');
|
|
||||||
}
|
|
||||||
$this->setSubtitle("Detail Data");
|
|
||||||
$txSkpp = TxSkpp::where("id", $TxSkpp->id)->with(["mst_golongan","mst_utang","mst_keputusan","mst_hak","mst_kantor"])->first();
|
|
||||||
$txSkppHst = TxSkppHst::where("tx_skpp_id", $TxSkpp->id)->with(["mst_golongan","mst_keputusan","mst_hak","mst_kantor"])->orderBy("created_at","DESC")->get();
|
|
||||||
return view('salurdana.show',compact("txSkpp","txSkppHst"));
|
|
||||||
}
|
|
||||||
|
|
||||||
public function edit(TxSkpp $txSkpp)
|
|
||||||
{
|
|
||||||
if (!Auth::user()->can("Ubah SKPP")){
|
|
||||||
abort(403, 'Youre not allowed to visit this page!');
|
|
||||||
}
|
|
||||||
$this->setSubtitle("Ubah Data");
|
|
||||||
$f_edit = "edit";
|
|
||||||
return view('salurdana.edit',compact("txSkpp","f_edit"));
|
|
||||||
}
|
|
||||||
|
|
||||||
public function update(Request $request, TxSkpp $txSkpp)
|
|
||||||
{
|
|
||||||
try{
|
|
||||||
|
|
||||||
DB::beginTransaction();
|
|
||||||
|
|
||||||
$req = $request->all();
|
|
||||||
$data = $this->setInputData($req);
|
|
||||||
$data["updated_by"] = Auth::user()->id;
|
|
||||||
$txSkpp->update($data);
|
|
||||||
|
|
||||||
DB::commit();
|
|
||||||
|
|
||||||
return redirect()->route('tx-salurdana.index')
|
|
||||||
->with('success','SKPP berhasil diubah.');
|
|
||||||
}catch(Throwable $e){
|
|
||||||
|
|
||||||
DB::rollBack();
|
|
||||||
return redirect()->route('tx-salurdana.index')
|
|
||||||
->with('error','SKPP gagal diubah!');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public function revisi($id)
|
|
||||||
{
|
|
||||||
if (!Auth::user()->can("Ubah SKPP")){
|
|
||||||
abort(403, 'Youre not allowed to visit this page!');
|
|
||||||
}
|
|
||||||
$txSkpp = TxSkpp::where("id", $id)->first();
|
|
||||||
$this->setSubtitle("Revisi Data");
|
|
||||||
$f_edit = "revisi";
|
|
||||||
return view('salurdana.edit',compact("txSkpp","f_edit"));
|
|
||||||
}
|
|
||||||
|
|
||||||
public function revisiStore(Request $request, $id)
|
|
||||||
{
|
|
||||||
try{
|
|
||||||
|
|
||||||
DB::beginTransaction();
|
|
||||||
|
|
||||||
$txSkpp = TxSkpp::where("id", $id)->first();
|
|
||||||
$txtSkppRevisi = $txSkpp->toArray();
|
|
||||||
$txtSkppRevisi["tx_skpp_id"]=$txtSkppRevisi["id"];
|
|
||||||
unset($txtSkppRevisi["id"]);
|
|
||||||
TxSkppHst::create($txtSkppRevisi);
|
|
||||||
|
|
||||||
$req = $request->all();
|
|
||||||
$revisiNo = intval($txSkpp->f_revisi) + 1;
|
|
||||||
$data = $this->setInputData($req);
|
|
||||||
$data["f_revisi"]=$revisiNo;
|
|
||||||
$data["tgl_cetak"]=null;
|
|
||||||
$data["no_skpp"]="R".$revisiNo."/".$txSkpp->id_pen."/SKPP/073.521";
|
|
||||||
$data["revisi_remarks"]=$req["personal"]["alasan_revisi"];
|
|
||||||
$data["revised_at"] = date("Y-m-d H:i");
|
|
||||||
$data["revised_by"] = Auth::user()->id;
|
|
||||||
$txSkpp->update($data);
|
|
||||||
|
|
||||||
DB::commit();
|
|
||||||
|
|
||||||
return redirect()->route('tx-salurdana.index')
|
|
||||||
->with('success','SKPP berhasil direvisi.');
|
|
||||||
}catch(Throwable $e){
|
|
||||||
|
|
||||||
DB::rollBack();
|
|
||||||
return redirect()->route('tx-salurdana.index')
|
|
||||||
->with('error','SKPP gagal direvisi!');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public function destroy(TxSkpp $txSkpp)
|
|
||||||
{
|
|
||||||
try{
|
|
||||||
DB::beginTransaction();
|
|
||||||
// $txSkpp->delete();
|
|
||||||
$txSkpp->update(["f_deleted"=>1,"deleted_at"=>date("Y-m-d H:i"), "deleted_by"=>Auth::user()->id]);
|
|
||||||
// TxKeluarga::where("nip",$txSkpp["nip"])->delete();
|
|
||||||
// TxSkppUtang::where("nip",$txSkpp["nip"])->delete();
|
|
||||||
DB::commit();
|
|
||||||
return redirect()->route('tx-salurdana.index')
|
|
||||||
->with('success','SKPP berhasil dihapus!');
|
|
||||||
|
|
||||||
}catch(Throwable $e){
|
|
||||||
|
|
||||||
DB::rollBack();
|
|
||||||
return redirect()->route('tx-salurdana.index')
|
|
||||||
->with('error','SKPP gagal di hapus.');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public function datatable(Request $request)
|
|
||||||
{
|
|
||||||
$post = $request->all();
|
|
||||||
$offset = $post["start"];
|
|
||||||
$limit = $post["length"];
|
|
||||||
$src = $post["src"];
|
|
||||||
$srcdate1 = $post["srcDate1"];
|
|
||||||
$srcdate2 = $post["srcDate2"];
|
|
||||||
$statusCetak = $post["statusCetak"];
|
|
||||||
$jenisTgl = $post["jenisTgl"];
|
|
||||||
|
|
||||||
$data = []; $dataFilter=0;
|
|
||||||
$select = DB::raw("id,no_skpp,CONVERT(created_at, DATE) AS tgldibuat,CONVERT(tgl_cetak, DATE) AS tgldicetak,no_pen,nrk,nip,nama,tgl_cetak,f_migrasi_data");
|
|
||||||
if ($src){
|
|
||||||
$data = TxSkpp::select($select)
|
|
||||||
->where("nrk","like","%$src%")
|
|
||||||
->orWhere("nip","like","%$src%")
|
|
||||||
->orWhere("nama","like","%$src%")
|
|
||||||
->orWhere("no_pen","like","%$src%")
|
|
||||||
->orWhere("no_skpp","like","$src%");
|
|
||||||
|
|
||||||
}else{
|
|
||||||
$data = TxSkpp::select($select);
|
|
||||||
}
|
|
||||||
|
|
||||||
$data->whereNull("f_deleted");
|
|
||||||
|
|
||||||
if ($srcdate1 && $srcdate2){
|
|
||||||
$data->whereDate($jenisTgl, ">=", ConvertIndoDate($srcdate1));
|
|
||||||
$data->whereDate($jenisTgl, "<=", ConvertIndoDate($srcdate2));
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($statusCetak){
|
|
||||||
if ($statusCetak == "sudah"){
|
|
||||||
$data->whereNotNull("tgl_cetak");
|
|
||||||
}else{
|
|
||||||
$data->whereNull("tgl_cetak");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$dataFilter = $data->count();
|
|
||||||
$dataTotal = TxSkpp::count();
|
|
||||||
|
|
||||||
return response()->json([
|
|
||||||
"recordsTotal" => $dataTotal,
|
|
||||||
"recordsFiltered" => $dataFilter,
|
|
||||||
"data"=> $data->orderBy("created_at","DESC")->skip($offset)->take($limit)->get()
|
|
||||||
]);
|
|
||||||
}
|
|
||||||
|
|
||||||
function updateTerbilang($idSKPP, $val){
|
|
||||||
TxTerbilang::where("tx_skpp_id",$idSKPP)->delete();
|
|
||||||
return TxTerbilang::create(["tx_skpp_id"=>$idSKPP, "description"=>terbilang($val)]);
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getPegawai(Request $request){
|
|
||||||
// NRK = 178998 181188 181199
|
|
||||||
// $NRK = "181199";
|
|
||||||
$response = Http::withHeaders(
|
|
||||||
['Authorization' => 'Basic ' . base64_encode(env("SOA_PEGAWAI_USER").":".env("SOA_PEGAWAI_PASSWORD"))])
|
|
||||||
->accept('application/json')
|
|
||||||
->get(env("SOA_PEGAWAI")."?nrk=".$request->NRK);
|
|
||||||
$getData = $response->json();
|
|
||||||
if (count($getData["results"])>0){
|
|
||||||
$PEG = $getData["results"][0];
|
|
||||||
$iuranPFK = doubleval($PEG["POTONGAN_THT"]) + doubleval($PEG["POTONGAN_TASPEN"]) + doubleval($PEG["POTONGAN_ASKES_GAJI"]);
|
|
||||||
$tunjanganLain = doubleval($PEG["TUNJANGAN_LAIN"]) + doubleval($PEG["TUNJANGAN_FUNGSIONAL"]);
|
|
||||||
return response()->json([
|
|
||||||
"THBL" => $PEG["THBL"],
|
|
||||||
"NRK"=>$PEG["NRK"],
|
|
||||||
"NAMA"=>$PEG["NAMA"],
|
|
||||||
"NIP"=>$PEG["NIP"],
|
|
||||||
"GOLONGAN"=>$PEG["GOLONGAN"],
|
|
||||||
"PANGKAT"=>$PEG["PANGKAT"],
|
|
||||||
"STATUS"=>$PEG["STATUS"],
|
|
||||||
"PERANGKAT_DAERAH"=>$PEG["PERANGKAT_DAERAH"],
|
|
||||||
"UNIT_KERJA"=>$PEG["UNIT_KERJA"],
|
|
||||||
"GAPOK"=>separateNumberIndo($PEG["GAPOK"]),
|
|
||||||
"NAMA_PASANGAN"=>$PEG["NAMA_PASANGAN"],
|
|
||||||
"TUNJANGAN_ISTRI_SUAMI"=>separateNumberIndo($PEG["TUNJANGAN_ISTRI_SUAMI"]),
|
|
||||||
"TANGGAL_LAHIR_PASANGAN"=>$PEG["TANGGAL_LAHIR_PASANGAN"] == "" ? "":date("d/m/Y",strtotime($PEG["TANGGAL_LAHIR_PASANGAN"])),
|
|
||||||
"ANAKTUNJANG1"=>$PEG["ANAKTUNJANG1"],
|
|
||||||
"TGLAHIRANAK1"=>$PEG["TGLAHIRANAK1"] == "" ? "": date("d/m/Y",strtotime($PEG["TGLAHIRANAK1"])),
|
|
||||||
"ANAKTUNJANG2"=>$PEG["ANAKTUNJANG2"],
|
|
||||||
"TGLAHIRANAK2"=>$PEG["TGLAHIRANAK2"] == "" ? "": date("d/m/Y",strtotime($PEG["TGLAHIRANAK2"])),
|
|
||||||
"ANAKTUNJANG3"=>$PEG["ANAKTUNJANG3"],
|
|
||||||
"TGLAHIRANAK3"=>$PEG["TGLAHIRANAK3"] == "" ? "": date("d/m/Y",strtotime($PEG["TGLAHIRANAK3"])),
|
|
||||||
"TUNJANGAN_ANAK"=>separateNumberIndo($PEG["TUNJANGAN_ANAK"]),
|
|
||||||
"TUNJANGAN_JABATAN"=>separateNumberIndo($PEG["TUNJANGAN_JABATAN"]),
|
|
||||||
"TUNJANGAN_LAIN"=>separateNumberIndo($tunjanganLain),
|
|
||||||
"TUNJANGAN_BERAS"=>separateNumberIndo($PEG["TUNJANGAN_BERAS"]),
|
|
||||||
"TUNJANGAN_PPH"=>0,
|
|
||||||
"PEMBULATAN"=>separateNumberIndo($PEG["PEMBULATAN"]),
|
|
||||||
"IURAN_PFK"=>separateNumberIndo($iuranPFK),
|
|
||||||
"POTONGAN_BERAS"=>0,
|
|
||||||
"POTONGAN_PPH"=>0,
|
|
||||||
"POTONGAN_LAIN"=>0
|
|
||||||
]);
|
|
||||||
}
|
|
||||||
|
|
||||||
return [];
|
|
||||||
}
|
|
||||||
|
|
||||||
public function printData(Request $request)
|
|
||||||
{
|
|
||||||
$req = $request->all();
|
|
||||||
|
|
||||||
DB::beginTransaction();
|
|
||||||
|
|
||||||
$txSkpp = txSkpp::where("id",$req["id_skpp"])->first();
|
|
||||||
$txSkpp->update(["tgl_cetak"=>date("Y-m-d")]);
|
|
||||||
$this->updateTerbilang($req["id_skpp"], $txSkpp->gaber);
|
|
||||||
|
|
||||||
DB::commit();
|
|
||||||
|
|
||||||
$params = [
|
|
||||||
"ParamId"=>$req["id_skpp"],
|
|
||||||
"serverLocation"=>public_path()
|
|
||||||
];
|
|
||||||
|
|
||||||
$fileReport = reportProceed("skpp","skpp", $params);
|
|
||||||
return response()->file($fileReport);
|
|
||||||
}
|
|
||||||
|
|
||||||
public function exportHst(Request $request, $id)
|
|
||||||
{
|
|
||||||
$req = $request->all();
|
|
||||||
return Excel::download(new SkppHstExport($id),'skpp_hst.xlsx');
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
<?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 Notifikasi extends Eloquent
|
||||||
|
{
|
||||||
|
use HasFactory;
|
||||||
|
use Uuids;
|
||||||
|
protected $connection = 'Samasa';
|
||||||
|
protected $table = 'SAMASA.notifikasi';
|
||||||
|
protected $fillable = [
|
||||||
|
"role_from",
|
||||||
|
"role_to",
|
||||||
|
"userid",
|
||||||
|
"message",
|
||||||
|
"url",
|
||||||
|
"is_read",
|
||||||
|
"jenis",
|
||||||
|
"id_unik"
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -22,6 +22,7 @@ class CreateNotifikasiTable extends Migration
|
|||||||
$table->text("url");
|
$table->text("url");
|
||||||
$table->boolean("is_read");
|
$table->boolean("is_read");
|
||||||
$table->string("jenis", 50);
|
$table->string("jenis", 50);
|
||||||
|
$table->string("id_unik",50);
|
||||||
$table->timestamps();
|
$table->timestamps();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+33
@@ -343,3 +343,36 @@ $(currentLink).closest(".has-treeview").addClass("menu-open active");
|
|||||||
$($(currentLink).closest(".has-treeview")).children("a.nav-link").addClass("active");
|
$($(currentLink).closest(".has-treeview")).children("a.nav-link").addClass("active");
|
||||||
$($(currentLink).closest(".nav-treeview")).closest("li.nav-item").addClass("menu-open");
|
$($(currentLink).closest(".nav-treeview")).closest("li.nav-item").addClass("menu-open");
|
||||||
$($(currentLink).closest(".nav-treeview")).parentsUntil(".nav-sidebar > .nav-treeview").addClass('menu-open');
|
$($(currentLink).closest(".nav-treeview")).parentsUntil(".nav-sidebar > .nav-treeview").addClass('menu-open');
|
||||||
|
$("#span_count_notif").hide();
|
||||||
|
refreshNotif = ()=>{
|
||||||
|
$.ajax({
|
||||||
|
url: "/notif/get-notif",
|
||||||
|
headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') },
|
||||||
|
type: "json",
|
||||||
|
method: "POST",
|
||||||
|
success: function(data){
|
||||||
|
$("#span_count_notif").hide();
|
||||||
|
if (data.length>0){
|
||||||
|
$("#span_count_notif").html(data.length);
|
||||||
|
$("#span_count_notif").show();
|
||||||
|
$listElm = "";
|
||||||
|
$.each(data, function(x,y){
|
||||||
|
$listElm = `<a href="`+y.url+`" class="dropdown-item">
|
||||||
|
<div class="media">
|
||||||
|
<div class="media-body">
|
||||||
|
<h3 class="dropdown-item-title"><strong>`+ y.jenis +`</strong>
|
||||||
|
<span class="float-right text-sm text-danger"></span>
|
||||||
|
</h3>
|
||||||
|
<p class="text-sm">`+y.message+`</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
<div class="dropdown-divider"></div>`;
|
||||||
|
});
|
||||||
|
$listElm += `<a href="/notif" class="dropdown-item dropdown-footer">Lihat semua Notifikasi</a>`;
|
||||||
|
$("#list_notif").html($listElm);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
refreshNotif();
|
||||||
@@ -13,32 +13,14 @@
|
|||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<ul class="navbar-nav ml-auto">
|
<ul class="navbar-nav ml-auto">
|
||||||
{{-- <li class="nav-item dropdown">
|
<li class="nav-item dropdown">
|
||||||
<a class="nav-link pr-4" data-toggle="dropdown" href="#">
|
<a class="nav-link" data-toggle="dropdown" href="#">
|
||||||
<i class="far fa-bell"></i>
|
<i class="far fa-bell"></i>
|
||||||
<span class="badge badge-danger navbar-badge">15</span>
|
<span id="span_count_notif" class="badge badge-danger navbar-badge">0</span>
|
||||||
</a>
|
</a>
|
||||||
<div class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
|
<div id="list_notif" class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
|
||||||
<span class="dropdown-item dropdown-header">15 Notifications</span>
|
|
||||||
<div class="dropdown-divider"></div>
|
|
||||||
<a href="#" class="dropdown-item">
|
|
||||||
<i class="fas fa-envelope mr-2"></i> 4 new messages
|
|
||||||
<span class="float-right text-muted text-sm">3 mins</span>
|
|
||||||
</a>
|
|
||||||
<div class="dropdown-divider"></div>
|
|
||||||
<a href="#" class="dropdown-item">
|
|
||||||
<i class="fas fa-users mr-2"></i> 8 friend requests
|
|
||||||
<span class="float-right text-muted text-sm">12 hours</span>
|
|
||||||
</a>
|
|
||||||
<div class="dropdown-divider"></div>
|
|
||||||
<a href="#" class="dropdown-item">
|
|
||||||
<i class="fas fa-file mr-2"></i> 3 new reports
|
|
||||||
<span class="float-right text-muted text-sm">2 days</span>
|
|
||||||
</a>
|
|
||||||
<div class="dropdown-divider"></div>
|
|
||||||
<a href="#" class="dropdown-item dropdown-footer">See All Notifications</a>
|
|
||||||
</div>
|
</div>
|
||||||
</li> --}}
|
</li>
|
||||||
<li class="nav-item dropdown">
|
<li class="nav-item dropdown">
|
||||||
<a class="nav-link" data-toggle="dropdown" href="#">
|
<a class="nav-link" data-toggle="dropdown" href="#">
|
||||||
<i class="fa fa-user mr-2"></i>{{ Auth::user()->name." | ".$role }}</span>
|
<i class="fa fa-user mr-2"></i>{{ Auth::user()->name." | ".$role }}</span>
|
||||||
|
|||||||
@@ -1,24 +0,0 @@
|
|||||||
@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('salur-dana.index') }}'"><i class="fa fa-arrow-left"></i> Kembali</button>
|
|
||||||
{{-- @endif --}}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@stop
|
|
||||||
<form id="frmSalurdana" action="{{ route('salur-dana.store') }}" method="POST" autocomplete="off">
|
|
||||||
@csrf
|
|
||||||
@include('salurdana.form')
|
|
||||||
@endsection
|
|
||||||
@@ -1,104 +0,0 @@
|
|||||||
@php
|
|
||||||
$siteBreadcumb = [
|
|
||||||
["url"=>"/tx-skpp","label"=>$siteTitle],
|
|
||||||
["url"=>"/salur-dana/create","label"=>$sitesubTitle]
|
|
||||||
];
|
|
||||||
@endphp
|
|
||||||
|
|
||||||
@extends('layouts.app')
|
|
||||||
|
|
||||||
@section('content')
|
|
||||||
<div class="x_title">
|
|
||||||
<h2><i class="fa fa-edit"></i> @php echo $sitesubTitle; @endphp<small>{{ $txSkpp->no_skpp }}</small></h2>
|
|
||||||
<ul class="nav navbar-right panel_toolbox">
|
|
||||||
<li><button class="btn btn-sm btn-secondary" onclick="location.href='{{ route('salur-dana.index') }}'"><i class="fa fa-arrow-left"></i> Kembali</button></li>
|
|
||||||
</ul>
|
|
||||||
<div class="clearfix"></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<form id="frmSKPP" action="{{ $f_edit == "edit" ? route('salur-dana.update',$txSkpp->id):route('salur-dana.revisi',$txSkpp->id) }}" method="POST" autocomplete="off">
|
|
||||||
@csrf
|
|
||||||
@method('PUT')
|
|
||||||
@include('skpp.form')
|
|
||||||
@endsection
|
|
||||||
|
|
||||||
@section('scripts2')
|
|
||||||
<script type="text/javascript">
|
|
||||||
$(document).ready(function(){
|
|
||||||
$("#txt_nrk").prop("disabled", true);
|
|
||||||
$("#nama_pegawai").html("{{ $txSkpp->no_skpp }}");
|
|
||||||
$("#opt_golongan").val({{ $txSkpp->golongan }});
|
|
||||||
$("#opt_golongan").change();
|
|
||||||
$("#opt_kantor").val({{ $txSkpp->id_kan }});
|
|
||||||
$("#opt_kantor").change();
|
|
||||||
|
|
||||||
@php if ($txSkpp->id_unit){ @endphp
|
|
||||||
let $newOption = $("<option selected='selected'></option>").val({{ $txSkpp->id_unit }}).text("{{ $txSkpp->dinas }}")
|
|
||||||
$("#opt_dinas").append($newOption).trigger('change');
|
|
||||||
@php } @endphp
|
|
||||||
$("#nama_dinas").val("{{ $txSkpp->dinas }}");
|
|
||||||
|
|
||||||
$("#opt_keputusan").val("{{$txSkpp->id_kep}}");
|
|
||||||
$("#txt_keputusan_nomor").val("{{$txSkpp->no_pen}}");
|
|
||||||
$("#tgl_keputusan").val("{{ date('d/m/Y',strtotime($txSkpp->tgl_pen)) }}");
|
|
||||||
$("#opt_hak").val({{ $txSkpp->id_hak }});
|
|
||||||
$("#tgl_tmt").val("{{ date('d/m/Y',strtotime($txSkpp->tgl_tmt)) }}");
|
|
||||||
|
|
||||||
$("#txt_nama_kantor1").val("{{ $txSkpp->nama_kantor1 }}");
|
|
||||||
$("#txt_nama_kantor2").val("{{ $txSkpp->nama_kantor2 }}");
|
|
||||||
$("#txt_wilayah_kantor").val("{{ $txSkpp->wilayah }}");
|
|
||||||
$("#txt_keterangan_kantor").val("{{ $txSkpp->keterangan }}");
|
|
||||||
$("#id_kpkd").val("{{ $txSkpp->id_kpkd }}");
|
|
||||||
// console.log("{{ $txSkpp->id_kpkd }}");
|
|
||||||
|
|
||||||
$("#rincian_gaji_pokok").val("{{ separateNumberIndo($txSkpp->ga_pok) }}");
|
|
||||||
$("#rincian_tunjangan_suami_istri").val("{{ separateNumberIndo($txSkpp->t_issum) }}");
|
|
||||||
$("#rincian_tunjangan_anak").val("{{ separateNumberIndo($txSkpp->t_anak) }}");
|
|
||||||
$("#rincian_tunjangan_lain").val("{{ separateNumberIndo($txSkpp->t_lain) }}");
|
|
||||||
$("#rincian_tunjangan_jabatan").val("{{ separateNumberIndo($txSkpp->t_jab) }}");
|
|
||||||
$("#rincian_tunjangan_beras").val("{{ separateNumberIndo($txSkpp->t_beras) }}");
|
|
||||||
$("#rincian_tunjangan_pph").val("{{ separateNumberIndo($txSkpp->tpph) }}");
|
|
||||||
$("#rincian_pembulatan").val("{{ separateNumberIndo($txSkpp->bulat) }}");
|
|
||||||
$("#rincian_potongan_beras").val("{{ separateNumberIndo($txSkpp->p_beras) }}");
|
|
||||||
$("#rincian_potongan_iuran_pfk").val("{{ separateNumberIndo($txSkpp->iuran) }}");
|
|
||||||
$("#rincian_potongan_pph").val("{{ separateNumberIndo($txSkpp->ppph) }}");
|
|
||||||
$("#rincian_potongan_lain").val("{{ separateNumberIndo($txSkpp->lain_2) }}");
|
|
||||||
|
|
||||||
@php
|
|
||||||
if(count($txSkpp->mst_keluarga)>0){
|
|
||||||
echo "$('#tbl_family tbody').empty();";
|
|
||||||
$trData = "";
|
|
||||||
foreach($txSkpp->mst_keluarga as $row_keluarga){
|
|
||||||
$trData.='<tr><td><input type="text" name="family[nama][]" placeholder="Nama" class="form-control" value="'.$row_keluarga->nama.'"></td>';
|
|
||||||
$trData.='<td><input type="text" name="family[tgl_lahir][]" placeholder="Tanggal Lahir" class="form-control indo_date" value="'.date("d/m/Y",strtotime($row_keluarga->tgl_lahir)).'"></td>';
|
|
||||||
$trData.='<td><input type="text" name="family[hubungan][]" placeholder="Hubungan Keluarga" class="form-control" value="'.$row_keluarga->hubungan.'"></td>';
|
|
||||||
$trData.='<td><button class="btn_minus" type="button"><i class="fa fa-minus"></i></button></td></tr>';
|
|
||||||
}
|
|
||||||
echo "$('#tbl_family tbody').append('".$trData."');";
|
|
||||||
}else{
|
|
||||||
// echo "$('#tbl_family tbody').append('<tr><td colspan=4 class=\'text-center\'>Data tidak ditemukan!</td></tr>');";
|
|
||||||
}
|
|
||||||
|
|
||||||
@endphp
|
|
||||||
calculate();
|
|
||||||
|
|
||||||
@php
|
|
||||||
if(count($txSkpp->mst_utang)>0){
|
|
||||||
echo "$('#tbl_debt tbody').empty();";
|
|
||||||
$trData = "";
|
|
||||||
foreach($txSkpp->mst_utang as $row_utang){
|
|
||||||
$trData.='<tr><td><input type="text" name="debt[deskripsi][]" placeholder="Uraian" class="form-control uraian_debt" value="'.$row_utang->uraian.'"></td>';
|
|
||||||
$trData.='<td><input type="text" name="debt[jumlah][]" placeholder="Jumlah" class="form-control number-separator-indo calculate_field_debt" value="'.separateNumberIndo($row_utang->jumlah).'"></td>';
|
|
||||||
$trData.='<td><button class="btn_minus_debt" type="button"><i class="fa fa-minus"></i></button></td></tr>';
|
|
||||||
}
|
|
||||||
echo "$('#rincian_utang_angsur').val('".separateNumberIndo($txSkpp->total_utang_angsur)."');";
|
|
||||||
echo "$('#tbl_debt tbody').append('".$trData."');";
|
|
||||||
}else{
|
|
||||||
// echo "$('#tbl_family tbody').append('<tr><td colspan=4 class=\'text-center\'>Data tidak ditemukan!</td></tr>');";
|
|
||||||
}
|
|
||||||
|
|
||||||
@endphp
|
|
||||||
calculateDebt();
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
@endsection
|
|
||||||
@@ -1,118 +0,0 @@
|
|||||||
<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="tgl_salur">Tanggal Salur Dana <span class="required">*</span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<div class="input-group date" id="id_tgl_salur" data-target-input="nearest">
|
|
||||||
<input id="tgl_salur" type="text" name="tgl_salur" class="form-control indo_date" required data-target="#id_tgl_salur">
|
|
||||||
<div class="input-group-append" data-target="#tgl_salur" data-toggle="datetimepicker">
|
|
||||||
<div class="input-group-text"><i class="fa fa-calendar"></i></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="opt_dinas">SKPD <span class="required">*</span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<select id="opt_dinas" name="personal[dinas]" class="form-control skpd_search"></select>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="card">
|
|
||||||
<div class="card-header">
|
|
||||||
<h3 class="card-title">Rincian Salur Dana</h3>
|
|
||||||
<div class="card-tools"></div>
|
|
||||||
</div>
|
|
||||||
<!-- /.card-header -->
|
|
||||||
<div class="card-body p-0">
|
|
||||||
<table class="table">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th style="width: 10px">#</th>
|
|
||||||
<th>Sub Kegiatan</th>
|
|
||||||
<th>Rinci Sub Kegiatan</th>
|
|
||||||
<th>Jumlah</th>
|
|
||||||
<th style="width: 40px">Aksi</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<td></td>
|
|
||||||
<td><select name="sk[]" style="width:100%" class="form-control sk_search"></select></td>
|
|
||||||
<td><select name="rsk[]" style="width:100%" class="form-control rsk_search"></select></td>
|
|
||||||
<td width="20%"><input type="number" class="form-control"></select></td>
|
|
||||||
<td><span class="badge bg-danger"></span></td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<button type="submit" class="btn btn-sm btn-success">Simpan Data</button>
|
|
||||||
@section('scripts')
|
|
||||||
<script type="text/javascript">
|
|
||||||
$(document).ready(function(){
|
|
||||||
// $.ajax({
|
|
||||||
// url: '/golongan-list',
|
|
||||||
// async: false,
|
|
||||||
// headers: {
|
|
||||||
// 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
|
|
||||||
// },
|
|
||||||
// type: "POST",
|
|
||||||
// dataType: 'json',
|
|
||||||
// success: function (data) {
|
|
||||||
// $('#opt_golongan').empty().append('<option value=""></option>')
|
|
||||||
// $.each(data, function(i,x){
|
|
||||||
// $('#opt_golongan').append($('<option>', {
|
|
||||||
// value: x.id,
|
|
||||||
// text : x.nama_golongan
|
|
||||||
// }));
|
|
||||||
// });
|
|
||||||
// mstGolongan = data;
|
|
||||||
// },
|
|
||||||
// });
|
|
||||||
|
|
||||||
$('.sk_search').select2({
|
|
||||||
placeholder: 'Pilih Sub Kegiatan',
|
|
||||||
ajax: {
|
|
||||||
url: '/item-search-sk',
|
|
||||||
dataType: 'json',
|
|
||||||
delay: 250,
|
|
||||||
processResults: function (data) {
|
|
||||||
return {
|
|
||||||
results: $.map(data, function (item) {
|
|
||||||
return {
|
|
||||||
text: item.name,
|
|
||||||
id: item.id
|
|
||||||
}
|
|
||||||
})
|
|
||||||
};
|
|
||||||
},
|
|
||||||
cache: true
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
$('.rsk_search').select2({
|
|
||||||
placeholder: 'Pilih Rinci Sub Kegiatan',
|
|
||||||
ajax: {
|
|
||||||
url: '/item-search-rsk',
|
|
||||||
dataType: 'json',
|
|
||||||
delay: 250,
|
|
||||||
processResults: function (data) {
|
|
||||||
return {
|
|
||||||
results: $.map(data, function (item) {
|
|
||||||
return {
|
|
||||||
text: item.name,
|
|
||||||
id: item.id
|
|
||||||
}
|
|
||||||
})
|
|
||||||
};
|
|
||||||
},
|
|
||||||
cache: true
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
@endsection
|
|
||||||
@@ -1,48 +0,0 @@
|
|||||||
<div class="table-responsive">
|
|
||||||
<button type="button" class="btn btn-sm btn-success btn_plus_debt">Tambah Data</button>
|
|
||||||
<table id="tbl_debt" class="table table-striped jambo_table bulk_action" style="width:100%;">
|
|
||||||
<thead>
|
|
||||||
<tr class="headings">
|
|
||||||
<th>Uraian Utang</th>
|
|
||||||
<th>Jumlah Utang</th>
|
|
||||||
<th>Aksi</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<td><input type="text" name="debt[deskripsi][]" placeholder="Uraian" class="form-control uraian_debt"></td>
|
|
||||||
<td><input type="text" name="debt[jumlah][]" placeholder="Jumlah" class="form-control number-separator-indo calculate_field_debt" value="0"></td>
|
|
||||||
<td><button class="btn_minus_debt" type="button"><i class="fa fa-minus"></i></button></td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-5 offset-7">
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="rincian_utang_total">Jumlah Utang
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" id="rincian_utang_total" name="rincian_utang[total]" value=0 disabled class="form-control number-separator-indo" >
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-5 offset-7">
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="rincian_utang_angsur">Jumlah Utang yang sudah diangsur
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" id="rincian_utang_angsur" name="rincian_utang[angsur]" value="0" class="form-control number-separator-indo" >
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-5 offset-7">
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="rincian_utang_angsur">Sisa Utang
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" id="sisa_utang" name="rincian_utang[sisa_utang]" value="0" class="form-control number-separator-indo" disabled>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
<div class="table-responsive">
|
|
||||||
<button type="button" class="btn btn-sm btn-success btn_plus">Tambah Data</button>
|
|
||||||
<table id="tbl_family" class="table table-striped jambo_table bulk_action" style="width:100%;">
|
|
||||||
<thead>
|
|
||||||
<tr class="headings">
|
|
||||||
<!-- <th><input type="checkbox" id="check-all" class="flat"></th> -->
|
|
||||||
<th>Nama</th>
|
|
||||||
<th>Tgl Lahir</th>
|
|
||||||
<th>Hubungan Keluarga</th>
|
|
||||||
<th>Aksi</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<!-- <td class="a-center"><input type="checkbox" class="flat" name="table_records"></td> -->
|
|
||||||
<td><input type="text" name="family[nama][]" placeholder="Nama" class="form-control family_name"></td>
|
|
||||||
<td><input type="text" name="family[tgl_lahir][]" placeholder="Tanggal Lahir" class="form-control indo_date family_birth_date"></td>
|
|
||||||
<td><input type="text" name="family[hubungan][]" placeholder="Hubungan Keluarga" class="form-control family_spouse"></td>
|
|
||||||
<td><button class="btn_minus" type="button"><i class="fa fa-minus"></i></button></td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
@@ -1,109 +0,0 @@
|
|||||||
<div class="row justify-content-center">
|
|
||||||
<div class="col-6">
|
|
||||||
<span class="section">Personal Info</span>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="txt_nrk">NRK <span class="required">*</span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" id="txt_nrk" name="personal[nrk]" required="required" class="form-control " value="{{ isset($txSkpp)?$txSkpp->nrk:'' }}">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="txt_nama">Nama <span class="required">*</span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" id="txt_nama" name="personal[nama]" required="required" class="form-control" readonly value="{{ isset($txSkpp)?$txSkpp->nama:'' }}">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="txt_nip">NIP <span class="required">*</span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" id="txt_nip" name="personal[nip]" required="required" class="form-control " readonly value="{{ isset($txSkpp)?$txSkpp->nip:'' }}">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="opt_golongan">Golongan <span class="required">*</span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<select id="opt_golongan" name="personal[golongan_id]" class="form-control" disabled></select>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="txt_pangkat">Pangkat <span class="required">*</span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" id="txt_pangkat" name="personal[pangkat]" readonly required="required" class="form-control uppercase">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="txt_status_kepegawaian">Status Kepegawaian
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" id="txt_status_kepegawaian" name="personal[status_kepegawaian]" class="form-control " value="{{ isset($txSkpp)?$txSkpp->status_pegawai:'' }}" readonly>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="opt_dinas">Dinas <span class="required">*</span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<!-- <select id="opt_dinas" name="personal[dinas]" class="form-control skpd_search"></select> -->
|
|
||||||
<input type="text" id="nama_dinas" name="personal[nama_dinas]" class="form-control uppercase" readonly>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="opt_tempat_tugas">Tempat tugas <span class="required">*</span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input id="opt_tempat_tugas" name="personal[tempat_tugas]" data-provide="typeahead" autocomplete="off" class="form-control typeahead uppercase" value="{{ isset($txSkpp)?$txSkpp->tugas:'' }}" readonly>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="txt_penerimaan_gaji_akhir">Penerimaan Gaji Terakhir <span class="required">*</span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<div class="input-group date">
|
|
||||||
<input type="text" name="personal[penerimaan_gaji_akhir]" required class="form-control indo_date" value="{{ isset($txSkpp)?date('d/m/Y',strtotime($txSkpp->tgl_akhir)):'' }}">
|
|
||||||
<div class="input-group-append">
|
|
||||||
<div class="input-group-text"><i class="fa fa-calendar"></i></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-6">
|
|
||||||
<span class="section">Kepala Kantor</span>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="opt_kantor">Kantor <span class="required">*</span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<select id="opt_kantor" name="personal_kepala[kantor]" class="form-control" required></select>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="txt_area">Area <span class="required">*</span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" id="txt_area" name="personal_kepala[area]" class="form-control " required readonly>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<span class="section">BPKD Perbendaharaan</span>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="opt_kantor">Nama <span class="required">*</span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<select id="id_kpkd" name="id_kpkd" class="form-control" required></select>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@php if(isset($f_edit) && $f_edit == "revisi"){ @endphp
|
|
||||||
<span class="section">Alasan Revisi</span>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="opt_kantor">Keterangan <span class="required">*</span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<textarea id="txt_alasan_revisi" name="personal[alasan_revisi]" class="form-control" required></textarea>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@php } @endphp
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@@ -1,116 +0,0 @@
|
|||||||
<div class="row justify-content-center">
|
|
||||||
<div class="col-6">
|
|
||||||
<span class="section">Penerimaan Gaji Kotor</span>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="rincian_gaji_pokok">Gaji Pokok <span class="required">*</span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" id="rincian_gaji_pokok" name="rincian_gaji[gaji_pokok]" required value="0" class="form-control number-separator-indo calculate_field">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="rincian_tunjangan_suami_istri">Tunjangan Istri/Suami <span class="required">*</span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" id="rincian_tunjangan_suami_istri" name="rincian_gaji[tunjangan_suami_istri]" value="0" required class="form-control number-separator-indo calculate_field" >
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="rincian_tunjangan_anak">Tunjangan Anak <span class="required">*</span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" id="rincian_tunjangan_anak" name="rincian_gaji[tunjangan_anak]" required value="0" class="form-control number-separator-indo calculate_field" >
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="rincian_tunjangan_lain">Tunjangan Lain-lain <span class="required">*</span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" id="rincian_tunjangan_lain" name="rincian_gaji[tunjangan_lain]" required value="0" class="form-control number-separator-indo calculate_field" >
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="rincian_tunjangan_jabatan">Tunjangan Jabatan <span class="required">*</span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" id="rincian_tunjangan_jabatan" name="rincian_gaji[tunjangan_jabatan]" required value="0" class="form-control number-separator-indo calculate_field" >
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="rincian_tunjangan_beras">Tunjangan Beras <span class="required">*</span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" id="rincian_tunjangan_beras" name="rincian_gaji[tunjangan_beras]" required value="0" class="form-control number-separator-indo calculate_field" >
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="rincian_tunjangan_pph">Tunjangan PPH <span class="required">*</span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" id="rincian_tunjangan_pph" name="rincian_gaji[tunjangan_pph]" required value="0" class="form-control number-separator-indo calculate_field" >
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="rincian_pembulatan">Pembulatan <span class="required">*</span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" id="rincian_pembulatan" name="rincian_gaji[pembulatan]" required value="0" class="form-control number-separator-indo calculate_field" >
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="rincian_pembulatan">Total Gaji Kotor<span class="required">*</span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" id="rincian_total_gaji_kotor" name="rincian_gaji[gaji_kotor]" required value="0" class="form-control number-separator-indo" readonly>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-6">
|
|
||||||
<span class="section">Potongan</span>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="rincian_potongan_beras">Potongan Beras <span class="required">*</span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" id="rincian_potongan_beras" name="rincian_gaji[potongan_beras]" required value="0" class="form-control number-separator-indo calculate_field">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="rincian_potongan_iuran_pfk">Iuran PFK <span class="required">*</span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" id="rincian_potongan_iuran_pfk" name="rincian_gaji[potongan_iuran_pfk]" required value="0" class="form-control number-separator-indo calculate_field" >
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="rincian_potongan_pph">Potongan PPH <span class="required">*</span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" id="rincian_potongan_pph" name="rincian_gaji[potongan_pph]" required value="0" class="form-control number-separator-indo calculate_field" >
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="rincian_potongan_lain">Lain-lain <span class="required">*</span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" id="rincian_potongan_lain" name="rincian_gaji[potongan_lain]" required value="0" class="form-control number-separator-indo calculate_field" >
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="rincian_pembulatan">Total Potongan<span class="required">*</span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" id="rincian_total_potongan" name="rincian_gaji[total_potongan]" required value="0" class="form-control number-separator-indo" readonly>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-12 pt-3"><hr></div>
|
|
||||||
<div class="col-3 offset-9">
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-5 col-sm-5 label-align" for="rincian_pembulatan">Total Gaji Bersih <span class="required">*</span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-7 col-sm-7 ">
|
|
||||||
<input type="text" id="rincian_total_gaji_bersih" name="rincian_gaji[total_gaji_bersih]" value="0" class="form-control-plaintext h3 number-separator-indo" readonly>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@@ -1,81 +0,0 @@
|
|||||||
<div class="row justify-content-center">
|
|
||||||
<div class="col-6">
|
|
||||||
<span class="section">Berdasarkan Keputusan</span>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="opt_keputusan">Keputusan <span class="required">*</span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<select id="opt_keputusan" name="keputusan[keputusan_id]" class="form-control" required></select>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="txt_keputusan_nomor">Nomor <span class="required">*</span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" id="txt_keputusan_nomor" name="keputusan[nomor]" class="form-control " required>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="txt_keputusan_tgl">Tanggal <span class="required">*</span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<div class="input-group date" id="txt_keputusan_tgl" data-target-input="nearest">
|
|
||||||
<input id="tgl_keputusan" type="text" name="keputusan[tgl]" class="form-control indo_date" required data-target="#txt_keputusan_tgl">
|
|
||||||
<div class="input-group-append" data-target="#txt_keputusan_tgl" data-toggle="datetimepicker">
|
|
||||||
<div class="input-group-text"><i class="fa fa-calendar"></i></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="opt_hak">Hak <span class="required">*</span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<select id="opt_hak" name="keputusan[hak_id]" class="form-control" required></select>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="txt_tmt">T.M.T <span class="required">*</span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<div class="input-group date" id="txt_tmt" data-target-input="nearest">
|
|
||||||
<input id="tgl_tmt" type="text" name="keputusan[tmt]" class="form-control indo_date" required data-target="#txt_tmt">
|
|
||||||
<div class="input-group-append" data-target="#txt_tmt" data-toggle="datetimepicker">
|
|
||||||
<div class="input-group-text"><i class="fa fa-calendar"></i></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-6">
|
|
||||||
<span class="section">* Diisi bila Hak Pensiun pindah Tugas</span>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="txt_nama_kantor">Nama Kantor 1
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" id="txt_nama_kantor1" name="keputusan[nama_kantor1]" class="form-control ">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="txt_nama_kantor">Nama Kantor 2
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" id="txt_nama_kantor2" name="keputusan[nama_kantor2]" class="form-control ">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="txt_wilayah_kantor">Wilayah
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" id="txt_wilayah_kantor" name="keputusan[wilayah_kantor]" class="form-control ">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="txt_keterangan_kantor">Keterangan
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" id="txt_keterangan_kantor" name="keputusan[keterangan_kantor]" class="form-control ">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@@ -1,173 +0,0 @@
|
|||||||
@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">
|
|
||||||
<!-- Theme style -->
|
|
||||||
<link rel="stylesheet" href="/AdminLTE-3.2.0/dist/css/adminlte.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('salur-dana.create') }}'"><i class="fa fa-edit"></i> Tambah Data</button>
|
|
||||||
{{-- @endif --}}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@stop
|
|
||||||
|
|
||||||
@section('content')
|
|
||||||
<form class="form-inline" 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>
|
|
||||||
<input type="text" class="form-control form-control-sm" id="srcDate">
|
|
||||||
</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 nowrap" style="width: 100%;">
|
|
||||||
<thead>
|
|
||||||
<tr class="headings">
|
|
||||||
<th>No</th>
|
|
||||||
<th>Tgl Salur</th>
|
|
||||||
<th>SKPD</th>
|
|
||||||
<th>Jumlah</th>
|
|
||||||
<th></th>
|
|
||||||
{{-- <th class="text-center">Action</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 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 = "/salur-dana/" + data["id"];
|
|
||||||
});
|
|
||||||
|
|
||||||
$("#srcDate").daterangepicker({
|
|
||||||
autoUpdateInput: false,
|
|
||||||
showDropdowns: true,
|
|
||||||
minYear: 1990,
|
|
||||||
locale: {
|
|
||||||
format: 'DD/MM/YYYY',
|
|
||||||
cancelLabel: 'Clear'
|
|
||||||
},
|
|
||||||
drops: "down",
|
|
||||||
}, function(start, end, label) {
|
|
||||||
srcDate1 = start.format("DD/MM/YYYY");
|
|
||||||
srcDate2 = end.format("DD/MM/YYYY");
|
|
||||||
$("#srcDate").val(srcDate1 + " - " + srcDate2);
|
|
||||||
});
|
|
||||||
|
|
||||||
$("#srcDate").on('cancel.daterangepicker', function(ev, picker) {
|
|
||||||
$(this).val("");
|
|
||||||
});
|
|
||||||
|
|
||||||
$("#src").keyup(function(e){
|
|
||||||
if (e.keyCode == 13){
|
|
||||||
$("#btn_cari").click();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
$("#btn_cari").on("click",function(){
|
|
||||||
dtTable.draw();
|
|
||||||
});
|
|
||||||
|
|
||||||
var dtTable = $('#dtTableSKPP').DataTable( {
|
|
||||||
"processing": true,
|
|
||||||
"serverSide": true,
|
|
||||||
"ordering": false,
|
|
||||||
"ajax": {
|
|
||||||
url: "/salur-dana/datatable",
|
|
||||||
type: "POST",
|
|
||||||
headers: {
|
|
||||||
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
|
|
||||||
},
|
|
||||||
data: function (d) {
|
|
||||||
d.jenisTgl = $("#jenisTgl").val(),
|
|
||||||
d.srcDate1 = srcDate1,
|
|
||||||
d.srcDate2 = srcDate2,
|
|
||||||
d.src = $("#src").val(),
|
|
||||||
d.statusCetak = $("#status_cetak").val()
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"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,"width":50 },
|
|
||||||
{ "data": "no_skpp","width":200 },
|
|
||||||
{ "data": "no_pen","width":200 },
|
|
||||||
{ "data": "nrk","width":100 },
|
|
||||||
{ "data": "nip","width":200 },
|
|
||||||
{ "data": "nama", "class":"text-nowrap" },
|
|
||||||
{ "data": "tgldibuat", "width":100, "class":"text-nowrap" },
|
|
||||||
{ "data": "tgldicetak", "width":100, "class":"text-nowrap" },
|
|
||||||
{ "data": "f_migrasi_data", "width":50, "class":"text-nowrap" },
|
|
||||||
//{ "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;
|
|
||||||
let btnRevEdit = aData["tgl_cetak"] == "" ? `<a class="btn btn-default btn-sm" href="/salur-dana/`+aData["id"]+`/edit"><i class="fa fa-edit"></i></a>`:`<a class="btn btn-default btn-sm" href="/salur-dana/`+aData["id"]+`/revisi"><i class="fa fa-refresh"></i></a>`;
|
|
||||||
|
|
||||||
$("td:eq(0)", nRow).html(index);
|
|
||||||
$("td:eq(6)", nRow).html(setIndoDate(aData["tgldibuat"]));
|
|
||||||
$("td:eq(7)", nRow).html(setIndoDate(aData["tgldicetak"]));
|
|
||||||
$("td:eq(8)", nRow).html(aData["f_migrasi_data"]==1?"m":"");
|
|
||||||
|
|
||||||
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
|
|
||||||
"initComplete": function (settings, json) {
|
|
||||||
$("#dtTableSKPP").wrap("<div style='overflow:auto; width:100%;position:relative;'></div>");
|
|
||||||
},
|
|
||||||
});
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
@endsection
|
|
||||||
@@ -1,562 +0,0 @@
|
|||||||
@php
|
|
||||||
$siteBreadcumb = [
|
|
||||||
["url"=>"/tx-skpp","label"=>$siteTitle],
|
|
||||||
["url"=>"/salur-dana/create","label"=>$sitesubTitle]
|
|
||||||
];
|
|
||||||
$role = Auth::user()->getRoleNames();
|
|
||||||
$role = $role[0];
|
|
||||||
@endphp
|
|
||||||
|
|
||||||
@extends('layouts.app')
|
|
||||||
|
|
||||||
@section('styles')
|
|
||||||
<link href="cdn.datatables.net/1.10.20/css/jquery.dataTables.min.css">
|
|
||||||
@endsection
|
|
||||||
|
|
||||||
@section('content')
|
|
||||||
<div class="x_title">
|
|
||||||
<h2><i class="fa fa-bullseye"></i> @php echo $sitesubTitle; @endphp <small>{{ $txSkpp->no_skpp }} <span style="color:red;">{{ intval($txSkpp->f_revisi) > 0 ? "REVISI":"" }}</span></small></h2>
|
|
||||||
<ul class="nav navbar-right panel_toolbox">
|
|
||||||
<li>
|
|
||||||
<button class="btn btn-secondary btn-sm" onclick="location.href='{{ route('salur-dana.index') }}'" style="float:left;"><i class="fa fa-arrow-left"></i> Kembali</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<button class="btn btn-sm btn-primary" onclick="location.href='/salur-dana/{{ $txSkpp->id }}/download_hst'" title="Download Revisi"><i class="fa fa-download"></i></button>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
@if ($txSkpp->tgl_cetak == "")
|
|
||||||
@if(auth()->user()->can('Tambah SKPP'))
|
|
||||||
<button class="btn btn-warning btn-sm" onclick="location.href='/salur-dana/{{ $txSkpp->id }}/edit'" style="float:left" title="Ubah"><i class="fa fa-edit"></i></button>
|
|
||||||
@endif
|
|
||||||
@if(auth()->user()->can('Hapus SKPP') && $txSkpp->f_revisi == 0 && $role != "admin")
|
|
||||||
<form class="form-delete" action="/salur-dana/{{ $txSkpp->id }}" style="float:left" method="POST">
|
|
||||||
@csrf
|
|
||||||
@method("DELETE")
|
|
||||||
<button type="submit" class="btn btn-danger btn-sm" title="Hapus"title="Hapus"><i class="fa fa-trash"></i></button>
|
|
||||||
</form>
|
|
||||||
@endif
|
|
||||||
@else
|
|
||||||
@if(auth()->user()->can('Ubah SKPP'))
|
|
||||||
<button class="btn btn-warning btn-sm" onclick="location.href='/salur-dana/{{ $txSkpp->id }}/revisi'" style="float:left" title="Revisi"><i class="fa fa-refresh"></i></a>
|
|
||||||
@endif
|
|
||||||
@endif
|
|
||||||
@if($role == "admin")
|
|
||||||
<form class="form-delete" action="/salur-dana/{{ $txSkpp->id }}" style="float:left" method="POST">
|
|
||||||
@csrf
|
|
||||||
@method("DELETE")
|
|
||||||
<button type="submit" class="btn btn-danger btn-sm" title="Hapus"title="Hapus"><i class="fa fa-trash"></i></button>
|
|
||||||
</form>
|
|
||||||
@endif
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<form id="frmSKPPPrint" action="/salur-dana/print" style="float:left" method="POST" target="_blank">
|
|
||||||
@csrf
|
|
||||||
<input type="hidden" name="id_skpp" value="{{ $txSkpp->id }}">
|
|
||||||
@if(auth()->user()->can('Cetak SKPP'))
|
|
||||||
<button id="btn_cetak" type="submit" class="btn btn-success btn-sm" title="Cetak"><i class="fa fa-print"></i></button>
|
|
||||||
@endif
|
|
||||||
</form>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<div class="clearfix"></div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-6">
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="txt_nrk" >NRK <span class="required"></span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" id="txt_nrk" name="personal[nrk]" value="{{$txSkpp->nrk}}" disabled required="required" 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_nama">Nama <span class="required"></span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" id="txt_nama" name="personal[nama]" required="required" disabled class="form-control-plaintext" value="{{$txSkpp->nama}}">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="txt_nip">NIP <span class="required"></span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" id="txt_nip" name="personal[nip]" required="required" disabled class="form-control-plaintext" value="{{$txSkpp->nip}}">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="opt_golongan">Golongan <span class="required"></span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" id="opt_golongan" name="personal[golongan_id]" disabled class="form-control-plaintext uppercase" value="{{$txSkpp->mst_golongan->nama_golongan}}"></select>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="txt_pangkat">Pangkat <span class="required"></span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" id="txt_pangkat" name="personal[pangkat]" disabled class="form-control-plaintext uppercase form-control-plaintext" value="{{$txSkpp->mst_golongan->nama_pangkat}}">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="txt_status_kepegawaian">Status Kepegawaian
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" id="txt_status_kepegawaian" disabled name="personal[status_kepegawaian]" class="form-control-plaintext" value="{{$txSkpp->status_pegawai==''?'-':$txSkpp->status_pegawai}}">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="opt_dinas">Dinas <span class="required"></span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" id="nama_dinas" name="personal[nama_dinas]" disabled class="uppercase form-control-plaintext" value="{{$txSkpp->dinas==''?'-':$txSkpp->dinas}}">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="opt_tempat_tugas">Tempat tugas <span class="required"></span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input id="opt_tempat_tugas" name="personal[tempat_tugas]" disabled value="{{$txSkpp->tugas}}" 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_penerimaan_gaji_akhir">Penerimaan Gaji Terakhir <span class="required"></span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" name="personal[penerimaan_gaji_akhir]" disabled class="indo_date form-control-plaintext uppercase" value="{{ SetToIndoDate($txSkpp->tgl_akhir,true) }}">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="txt_penerimaan_gaji_akhir">Tgl Dibuat <span class="required"></span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" class="indo_date form-control-plaintext uppercase" disabled value="{{ SetToIndoDate($txSkpp->created_at,false,true) }}">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="opt_kantor">Dibuat Oleh <span class="required"></span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" disabled class="form-control-plaintext uppercase" value="{{$txSkpp->user->name}}">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-6">
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="txt_penerimaan_gaji_akhir">Tgl Dicetak <span class="required"></span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" name="personal[penerimaan_gaji_akhir]" disabled class="indo_date form-control-plaintext uppercase" value="{{ SetToIndoDate($txSkpp->tgl_cetak,false,true) }}">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@if ($txSkpp->f_revisi > 0)
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="txt_penerimaan_gaji_akhir">Tgl Direvisi <span class="required"></span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" name="personal[penerimaan_gaji_akhir]" disabled class="indo_date form-control-plaintext uppercase" value="{{ SetToIndoDate($txSkpp->revised_at,false,true) }}">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="opt_kantor">Direvisi Oleh <span class="required"></span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" disabled class="form-control-plaintext uppercase" value="{{$txSkpp->user_revisi->name}}">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
<span class="section mt-4">Kepala Kantor</span>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="opt_kantor">Kantor <span class="required"></span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" id="opt_kantor" name="personal_kepala[kantor]" disabled class="form-control-plaintext" value="{{$txSkpp->mst_kantor->nama_kantor}}">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="txt_area">Area <span class="required"></span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" id="txt_area" name="personal_kepala[area]" disabled class="form-control-plaintext" value="{{$txSkpp->mst_kantor->wilayah}}">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<span class="section mt-4">BPKD Perbendaharaan</span>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="opt_kantor">Nama <span class="required"></span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" disabled class="form-control-plaintext" value="{{$txSkpp->mst_kpkd->nama}}">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@if ($txSkpp->f_revisi > 0)
|
|
||||||
<span class="section mt-4">Alasan Revisi</span>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="opt_kantor">Keterangan <span class="required"></span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" disabled class="form-control-plaintext" value="{{$txSkpp->revisi_remarks}}">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@endif
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<ul class="nav nav-tabs bar_tabs mt-5" id="myTab" role="tablist">
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link active" id="family-tab" data-toggle="tab" href="#family" role="tab" aria-controls="family" aria-selected="false"><i class="fa fa-users"></i> Data Keluarga</a>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link" id="keputusan-tab" data-toggle="tab" href="#keputusan" role="tab" aria-controls="keputusan" aria-selected="false"><i class="fa fa-institution"></i> Keputusan</a>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link" id="gaji-tab" data-toggle="tab" href="#gaji" role="tab" aria-controls="gaji" aria-selected="false"><i class="fa fa-money"></i> Rincian Gaji</a>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link" id="utang-tab" data-toggle="tab" href="#utang" role="tab" aria-controls="utang" aria-selected="false"><i class="fa fa-money"></i> Rincian Utang</a>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link" id="revisi-tab" data-toggle="tab" href="#hst" role="tab" aria-controls="hst" aria-selected="false"><i class="fa fa-refresh"></i> Revisi Data</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
<div class="tab-content" id="myTabContent">
|
|
||||||
<div class="tab-pane fade show active p-3" id="family" role="tabpanel" aria-labelledby="family-tab">
|
|
||||||
<table id="tbl_family" class="table table-striped jambo_table" style="width:100%;">
|
|
||||||
<thead>
|
|
||||||
<tr class="headings">
|
|
||||||
<th>No</th>
|
|
||||||
<th>Nama</th>
|
|
||||||
<th>Tgl Lahir</th>
|
|
||||||
<th>Hubungan Keluarga</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
@php
|
|
||||||
if(count($txSkpp->mst_keluarga)>0){
|
|
||||||
foreach($txSkpp->mst_keluarga as $key=>$row_keluarga){
|
|
||||||
$no = $key+1;
|
|
||||||
echo "<tr>
|
|
||||||
<td width=10>".$no."</td>
|
|
||||||
<td>".$row_keluarga->nama."</td>
|
|
||||||
<td>".SetToIndoDate($row_keluarga->tgl_lahir,false,true)."</td>
|
|
||||||
<td>".$row_keluarga->hubungan."</td>
|
|
||||||
</tr>";
|
|
||||||
}
|
|
||||||
}else{
|
|
||||||
echo "<tr><td colspan=4 class='text-center'>Data tidak ditemukan!</td></tr>";
|
|
||||||
}
|
|
||||||
|
|
||||||
@endphp
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
<div class="tab-pane fade p-3" id="keputusan" role="tabpanel" aria-labelledby="keputusan-tab">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-6">
|
|
||||||
<span class="section">Surat Keputusan</span>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="opt_keputusan">Keputusan <span class="required"></span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" id="opt_keputusan" name="keputusan[keputusan_id]" disabled class="form-control-plaintext" value="{{$txSkpp->mst_keputusan->nama_keputusan}}">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="txt_keputusan_nomor">Nomor <span class="required"></span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" id="txt_keputusan_nomor" name="keputusan[nomor]" disabled class="form-control-plaintext" value="{{ $txSkpp->no_pen == "" ? "-" : $txSkpp->no_pen }}">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="txt_keputusan_tgl">Tanggal <span class="required"></span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" name="keputusan[tgl]" class="form-control-plaintext" disabled value="{{ $txSkpp->tgl_pen == "" ? "-" : SetToIndoDate($txSkpp->tgl_pen, false, true) }}">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="opt_hak">Hak <span class="required"></span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" id="opt_hak" name="keputusan[hak_id]" disabled class="form-control-plaintext" value="{{$txSkpp->mst_hak->nama_hak == "" ? "-" : $txSkpp->mst_hak->nama_hak }}"></select>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="txt_tmt">T.M.T <span class="required"></span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" name="keputusan[tmt]" class="form-control-plaintext indo_date" disabled value="{{ $txSkpp->tgl_tmt == "" ? "-" : SetToIndoDate($txSkpp->tgl_tmt,false,true) }}">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-6">
|
|
||||||
<span class="section">Hak Pensiun Pindah Tugas</span>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="txt_nama_kantor">Nama Kantor 1
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" id="txt_nama_kantor1" name="keputusan[nama_kantor1]" disabled class="form-control-plaintext " value="{{ $txSkpp->nama_kantor1 == '' ? '-':$txSkpp->nama_kantor1 }}">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="txt_nama_kantor">Nama Kantor 2
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" id="txt_nama_kantor2" name="keputusan[nama_kantor2]" disabled class="form-control-plaintext" value="{{ $txSkpp->nama_kantor2 == '' ? '-':$txSkpp->nama_kantor2 }}">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="txt_wilayah_kantor">Wilayah
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" id="txt_wilayah_kantor" name="keputusan[wilayah_kantor]" disabled class="form-control-plaintext " value="{{ $txSkpp->wilayah == '' ? '-':$txSkpp->wilayah }}">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="txt_keterangan_kantor">Keterangan
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<textarea id="txt_keterangan_kantor" style="padding: 0;" rows=5 name="keputusan[keterangan_kantor]" disabled class="form-control-plaintext ">{{ $txSkpp->keterangan == '' ? '-':$txSkpp->keterangan }}</textarea>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="tab-pane fade p-3" id="gaji" role="tabpanel" aria-labelledby="gaji-tab">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-12">
|
|
||||||
<div class="row justify-content-center">
|
|
||||||
<div class="col-6">
|
|
||||||
<span class="section">Penerimaan Gaji Kotor</span>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="rincian_gaji_pokok">Gaji Pokok <span class="required"></span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" id="rincian_gaji_pokok" name="rincian_gaji[gaji_pokok]" disabled class="form-control-plaintext text-right" value="{{separateNumberIndo($txSkpp->ga_pok)}}">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="rincian_tunjangan_suami_istri">Tunjangan Istri/Suami <span class="required"></span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" id="rincian_tunjangan_suami_istri" disabled name="rincian_gaji[tunjangan_suami_istri]" class="form-control-plaintext text-right" value="{{separateNumberIndo($txSkpp->t_issum)}}">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="rincian_tunjangan_anak">Tunjangan Anak <span class="required"></span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" id="rincian_tunjangan_anak" disabled name="rincian_gaji[tunjangan_anak]" class="form-control-plaintext text-right" value="{{separateNumberIndo($txSkpp->t_anak)}}" >
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="rincian_tunjangan_lain">Tunjangan Lain-lain <span class="required"></span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" id="rincian_tunjangan_lain" disabled name="rincian_gaji[tunjangan_lain]" class="form-control-plaintext text-right" value="{{separateNumberIndo($txSkpp->t_lain)}}" >
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="rincian_tunjangan_jabatan">Tunjangan Jabatan <span class="required"></span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" id="rincian_tunjangan_jabatan" disabled name="rincian_gaji[tunjangan_jabatan]" class="form-control-plaintext text-right" value="{{separateNumberIndo($txSkpp->t_jab)}}">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="rincian_tunjangan_beras">Tunjangan Beras <span class="required"></span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" id="rincian_tunjangan_beras" disabled name="rincian_gaji[tunjangan_beras]" class="form-control-plaintext text-right" value="{{separateNumberIndo($txSkpp->t_beras)}}" >
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="rincian_tunjangan_pph">Tunjangan PPH <span class="required"></span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" id="rincian_tunjangan_pph" disabled name="rincian_gaji[tunjangan_pph]" class="form-control-plaintext text-right" value="{{separateNumberIndo($txSkpp->tpph)}}">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="rincian_pembulatan">Pembulatan <span class="required"></span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" id="rincian_pembulatan" disabled name="rincian_gaji[pembulatan]" class="form-control-plaintext text-right" value="{{separateNumberIndo($txSkpp->bulat)}}">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="rincian_pembulatan">Total Gaji Kotor
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" id="rincian_total_gaji_kotor" disabled name="rincian_gaji[gaji_kotor]" class="form-control-plaintext text-right" readonly>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-6">
|
|
||||||
<span class="section">Potongan</span>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="rincian_potongan_beras">Potongan Beras <span class="required"></span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" id="rincian_potongan_beras" disabled name="rincian_gaji[potongan_beras]" class="form-control-plaintext text-right" value="{{separateNumberIndo($txSkpp->p_beras)}}">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="rincian_potongan_iuran_pfk">Iuran PFK <span class="required"></span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" id="rincian_potongan_iuran_pfk" disabled name="rincian_gaji[potongan_iuran_pfk]" class="form-control-plaintext text-right" value="{{separateNumberIndo($txSkpp->iuran)}}">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="rincian_potongan_pph">Potongan PPH <span class="required"></span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" id="rincian_potongan_pph" disabled name="rincian_gaji[potongan_pph]" class="form-control-plaintext text-right" value="{{separateNumberIndo($txSkpp->ppph)}}">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="rincian_potongan_lain">Lain-lain <span class="required"></span>
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" id="rincian_potongan_lain" disabled name="rincian_gaji[potongan_lain]" class="form-control-plaintext text-right" value="{{separateNumberIndo($txSkpp->lain_2)}}">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-3 col-sm-3 label-align" for="rincian_pembulatan">Total Potongan
|
|
||||||
</label>
|
|
||||||
<div class="col-md-9 col-sm-9 ">
|
|
||||||
<input type="text" id="rincian_total_potongan" disabled name="rincian_gaji[total_potongan]" class="form-control-plaintext text-right" readonly>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-12 pt-3"><hr></div>
|
|
||||||
<div class="col-4 offset-8">
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-6 col-sm-6 label-align" for="rincian_pembulatan">Total Gaji Bersih
|
|
||||||
</label>
|
|
||||||
<div class="col-md-6 col-sm-6 ">
|
|
||||||
<input type="text" id="rincian_total_gaji_bersih" disabled name="rincian_gaji[total_gaji_bersih]" class="form-control-plaintext h3 number-separator-indo" readonly>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="tab-pane fade p-3" id="utang" role="tabpanel" aria-labelledby="utang-tab">
|
|
||||||
<table id="tbl_utang" class="table table-striped jambo_table" style="width:100%;">
|
|
||||||
<thead>
|
|
||||||
<tr class="headings">
|
|
||||||
<th>No</th>
|
|
||||||
<th>Uraian</th>
|
|
||||||
<th>Jumlah</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
@php
|
|
||||||
if(count($txSkpp->mst_utang)>0){
|
|
||||||
foreach($txSkpp->mst_utang as $key=>$row_utang){
|
|
||||||
$no = $key+1;
|
|
||||||
echo "<tr>
|
|
||||||
<td width=10>".$no."</td>
|
|
||||||
<td>".$row_utang->uraian."</td>
|
|
||||||
<td align='right'>".number_format($row_utang->jumlah)."</td>
|
|
||||||
</tr>";
|
|
||||||
}
|
|
||||||
}else{
|
|
||||||
echo "<tr><td colspan=4 class='text-center'>Data tidak ditemukan!</td></tr>";
|
|
||||||
}
|
|
||||||
|
|
||||||
@endphp
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
<div class="col-5 offset-7">
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-4 col-sm-4 label-align" for="rincian_utang_total">Jumlah Utang
|
|
||||||
</label>
|
|
||||||
<div class="col-md-8 col-sm-8 ">
|
|
||||||
<input type="text" id="rincian_utang_total" name="rincian_utang[total]" value={{ number_format($txSkpp->total_utang) }} class="form-control-plaintext text-right" >
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-5 offset-7">
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-4 col-sm-4 label-align" for="rincian_utang_angsur">Jumlah Utang yang sudah diangsur
|
|
||||||
</label>
|
|
||||||
<div class="col-md-8 col-sm-8 ">
|
|
||||||
<input type="text" id="rincian_utang_angsur" name="rincian_utang[angsur]" value={{ number_format($txSkpp->total_utang_angsur) }} class="form-control-plaintext text-right" >
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-5 offset-7">
|
|
||||||
<div class="form-group row">
|
|
||||||
<label class="col-form-label col-md-4 col-sm-4 label-align" for="rincian_utang_angsur">Sisa Utang
|
|
||||||
</label>
|
|
||||||
<div class="col-md-8 col-sm-8 ">
|
|
||||||
<input type="text" id="sisa_utang" name="rincian_utang[sisa_utang]" value={{ number_format($txSkpp->total_utang_sisa) }} class="form-control-plaintext text-right">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="tab-pane fade p-3" id="hst" role="tabpanel" aria-labelledby="hst-tab">
|
|
||||||
<div class="table-responsive">
|
|
||||||
<table id="tbl_revisi" class="table table-striped jambo_table" style="width:100%;">
|
|
||||||
<thead>
|
|
||||||
<tr class="headings">
|
|
||||||
<th>No</th>
|
|
||||||
<th>Nomor SKPP</th>
|
|
||||||
<th>Tgl Dibuat</th>
|
|
||||||
<th>Gaji Pokok</th>
|
|
||||||
<th>Tunjangan Istri/Suami</th>
|
|
||||||
<th>Tunjangan Anak</th>
|
|
||||||
<th>Tunjangan Lain</th>
|
|
||||||
<th>Tunjangan Jabatan</th>
|
|
||||||
<th>Tunjangan Beras</th>
|
|
||||||
<th>Tunjangan PPH</th>
|
|
||||||
<th>Pembulatan</th>
|
|
||||||
<th>Potongan Beras</th>
|
|
||||||
<th>Iuran PFK</th>
|
|
||||||
<th>Potongan PPH</th>
|
|
||||||
<th>Potongan Lain</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
@php
|
|
||||||
if(count($txSkppHst)>0){
|
|
||||||
foreach($txSkppHst as $key=>$row_hst){
|
|
||||||
$no = $key+1;
|
|
||||||
echo "<tr>
|
|
||||||
<td class='text-left'>".$no."</td>
|
|
||||||
<td class='text-left'>".$row_hst->no_skpp."</td>
|
|
||||||
<td class='text-left'>".date("d/m/Y",strtotime($row_hst->created_at))."</td>
|
|
||||||
<td class='text-right'>".number_format($row_hst->ga_pok)."</td>
|
|
||||||
<td class='text-right'>".number_format($row_hst->t_issum)."</td>
|
|
||||||
<td class='text-right'>".number_format($row_hst->t_anak)."</td>
|
|
||||||
<td class='text-right'>".number_format($row_hst->t_lain)."</td>
|
|
||||||
<td class='text-right'>".number_format($row_hst->t_jab)."</td>
|
|
||||||
<td class='text-right'>".number_format($row_hst->t_beras)."</td>
|
|
||||||
<td class='text-right'>".number_format($row_hst->tpph)."</td>
|
|
||||||
<td class='text-right'>".number_format($row_hst->bulat)."</td>
|
|
||||||
<td class='text-right'>".number_format($row_hst->p_beras)."</td>
|
|
||||||
<td class='text-right'>".number_format($row_hst->iuran)."</td>
|
|
||||||
<td class='text-right'>".number_format($row_hst->ppph)."</td>
|
|
||||||
<td class='text-right'>".number_format($row_hst->lain_2)."</td>
|
|
||||||
</tr>";
|
|
||||||
}
|
|
||||||
}else{
|
|
||||||
echo "<tr><td colspan=15 class='text-center'>Data tidak ditemukan!</td></tr>";
|
|
||||||
}
|
|
||||||
@endphp
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@endsection
|
|
||||||
@section('scripts2')
|
|
||||||
<script type="text/javascript">
|
|
||||||
$(document).ready(function(){
|
|
||||||
calculate();
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
@endsection
|
|
||||||
+3
-9
@@ -5,7 +5,6 @@ use App\Http\Controllers\AuthController;
|
|||||||
use App\Http\Controllers\HomeController;
|
use App\Http\Controllers\HomeController;
|
||||||
use App\Http\Controllers\SkpdController;
|
use App\Http\Controllers\SkpdController;
|
||||||
use App\Http\Controllers\ItemSearchController;
|
use App\Http\Controllers\ItemSearchController;
|
||||||
use App\Http\Controllers\SalurdanaController;
|
|
||||||
use App\Http\Controllers\JadwalSalurdanaController;
|
use App\Http\Controllers\JadwalSalurdanaController;
|
||||||
use App\Http\Controllers\RealisasiPendapatanController;
|
use App\Http\Controllers\RealisasiPendapatanController;
|
||||||
use App\Http\Controllers\RealisasiBelanjaController;
|
use App\Http\Controllers\RealisasiBelanjaController;
|
||||||
@@ -13,6 +12,7 @@ use App\Http\Controllers\LaporanController;
|
|||||||
use App\Http\Controllers\Admin\MstPenggunaController;
|
use App\Http\Controllers\Admin\MstPenggunaController;
|
||||||
use App\Http\Controllers\Admin\RolessController;
|
use App\Http\Controllers\Admin\RolessController;
|
||||||
use App\Http\Controllers\Admin\PermissionsController;
|
use App\Http\Controllers\Admin\PermissionsController;
|
||||||
|
use App\Http\Controllers\NotifikasiController;
|
||||||
|
|
||||||
Route::get('/', [AuthController::class, 'showFormLogin']);
|
Route::get('/', [AuthController::class, 'showFormLogin']);
|
||||||
Route::get('login', [AuthController::class, 'showFormLogin'])->name('login');
|
Route::get('login', [AuthController::class, 'showFormLogin'])->name('login');
|
||||||
@@ -60,14 +60,6 @@ Route::group(['middleware' => 'auth'], function () {
|
|||||||
Route::post('realisasi-belanja/{id}/inputRealisasi', [RealisasiBelanjaController::class,'inputRealisasi']);
|
Route::post('realisasi-belanja/{id}/inputRealisasi', [RealisasiBelanjaController::class,'inputRealisasi']);
|
||||||
Route::resource('realisasi-belanja', RealisasiBelanjaController::class);
|
Route::resource('realisasi-belanja', RealisasiBelanjaController::class);
|
||||||
|
|
||||||
Route::resource('salur-dana', SalurdanaController::class);
|
|
||||||
Route::group(['prefix' => 'salur-dana'], function () {
|
|
||||||
Route::post('/datatable', [SalurdanaController::class,'datatable']);
|
|
||||||
Route::group(['middleware' => ['permission:Cetak SKPP']], function () {
|
|
||||||
Route::post('/print', [SalurdanaController::class,'printData']);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
Route::get('home', [HomeController::class, 'index'])->name('home');
|
Route::get('home', [HomeController::class, 'index'])->name('home');
|
||||||
Route::get('skpd-search', [ItemSearchController::class,'skpd']);
|
Route::get('skpd-search', [ItemSearchController::class,'skpd']);
|
||||||
Route::get('item-search-prog', [ItemSearchController::class,'prog']);
|
Route::get('item-search-prog', [ItemSearchController::class,'prog']);
|
||||||
@@ -78,4 +70,6 @@ Route::group(['middleware' => 'auth'], function () {
|
|||||||
Route::get('item-search-sts', [ItemSearchController::class,'sts']);
|
Route::get('item-search-sts', [ItemSearchController::class,'sts']);
|
||||||
Route::post('role-list', [MstPenggunaController::class,'roleList']);
|
Route::post('role-list', [MstPenggunaController::class,'roleList']);
|
||||||
Route::get('logout', [AuthController::class, 'logout'])->name('logout');
|
Route::get('logout', [AuthController::class, 'logout'])->name('logout');
|
||||||
|
|
||||||
|
Route::post('notif/get-notif', [NotifikasiController::class, 'getNotif']);
|
||||||
});
|
});
|
||||||
Reference in New Issue
Block a user