perbaikana perhitungan npw dan nl otomatis, dan perbaikan otorisator
This commit is contained in:
@@ -11,6 +11,12 @@ class LaporanController extends Controller
|
|||||||
/**
|
/**
|
||||||
* Display a listing of the resource.
|
* Display a listing of the resource.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
public function index()
|
||||||
|
{
|
||||||
|
return view('lpj::laporan.index');
|
||||||
|
}
|
||||||
|
|
||||||
public function sederhana_index()
|
public function sederhana_index()
|
||||||
{
|
{
|
||||||
return view('lpj::laporan.sederhana_index');
|
return view('lpj::laporan.sederhana_index');
|
||||||
|
|||||||
@@ -199,7 +199,7 @@ class PenilaiController extends Controller
|
|||||||
|
|
||||||
$permohonan = $this->surveyorController->getPermohonanJaminanId($permohonanId, $documentId, $jaminanId);
|
$permohonan = $this->surveyorController->getPermohonanJaminanId($permohonanId, $documentId, $jaminanId);
|
||||||
$inspeksi = Inspeksi::where('permohonan_id', $permohonanId)->where('dokument_id', $documentId)->first();
|
$inspeksi = Inspeksi::where('permohonan_id', $permohonanId)->where('dokument_id', $documentId)->first();
|
||||||
|
|
||||||
return view('lpj::penilai.components.paparan');
|
return view('lpj::penilai.components.paparan');
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -240,10 +240,10 @@ class PenilaiController extends Controller
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// Apply whereHas to check penilai_id, role, and user_id specifically for 'penilai' role
|
|
||||||
$query->whereHas('penilaian.userPenilai', function ($q) {
|
$query->whereHas('penilaian.userPenilai', function ($q) {
|
||||||
$q->where('role', 'penilai') // Ensure the role is 'penilai'
|
$q->where('role', 'penilai')
|
||||||
->where('user_id', Auth::user()->id); // Ganti dengan Auth::user()->id jika dinamis
|
->where('user_id', Auth::user()->id);
|
||||||
});
|
});
|
||||||
|
|
||||||
// Apply sorting if provided
|
// Apply sorting if provided
|
||||||
@@ -487,7 +487,8 @@ class PenilaiController extends Controller
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function storeLpjSederhanadanStandard(Request $request){
|
public function storeLpjSederhanadanStandard(Request $request)
|
||||||
|
{
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
|
|||||||
@@ -359,7 +359,7 @@ class PenilaianController extends Controller
|
|||||||
'pembatalan' => 'Pembatalan',
|
'pembatalan' => 'Pembatalan',
|
||||||
'sla' => 'SLA',
|
'sla' => 'SLA',
|
||||||
];
|
];
|
||||||
|
|
||||||
$header = $headers[$type] ?? 'Pelaporan';
|
$header = $headers[$type] ?? 'Pelaporan';
|
||||||
|
|
||||||
return view('lpj::penilaian.otorisator.index', compact('header'));
|
return view('lpj::penilaian.otorisator.index', compact('header'));
|
||||||
@@ -380,7 +380,7 @@ class PenilaianController extends Controller
|
|||||||
return view('lpj::penilaian.otorisator.show', compact('permohonan', 'header'));
|
return view('lpj::penilaian.otorisator.show', compact('permohonan', 'header'));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function otorisatorUpdate($id, $context)
|
public function otorisatorUpdate(Request $request, $id, $context)
|
||||||
{
|
{
|
||||||
|
|
||||||
$permohonan = Permohonan::find($id);
|
$permohonan = Permohonan::find($id);
|
||||||
@@ -396,28 +396,30 @@ class PenilaianController extends Controller
|
|||||||
$newStatus = $permohonan->status_bayar === 'sudah_bayar' ? 'belum_bayar' : 'sudah_bayar';
|
$newStatus = $permohonan->status_bayar === 'sudah_bayar' ? 'belum_bayar' : 'sudah_bayar';
|
||||||
|
|
||||||
$permohonan->update([
|
$permohonan->update([
|
||||||
'status_bayar' => $newStatus
|
'status_bayar' => $newStatus,
|
||||||
|
'keterangan' => $request->message
|
||||||
]);
|
]);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'pembatalan':
|
case 'pembatalan':
|
||||||
|
|
||||||
$permohonan->update([
|
$permohonan->update([
|
||||||
'authorized_status' => 1,
|
'status' => 'batal',
|
||||||
|
'keterangan' => $request->message
|
||||||
]);
|
]);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'pelaporan':
|
case 'pelaporan':
|
||||||
|
|
||||||
$permohonan->update([
|
$permohonan->update([
|
||||||
'status' => 'disetujui',
|
'status' => 'proses-laporan',
|
||||||
|
'keterangan' => $request->message
|
||||||
]);
|
]);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'sla':
|
case 'sla':
|
||||||
|
|
||||||
$permohonan->update([
|
$permohonan->update([
|
||||||
'status' => 'order',
|
'status' => 'proses-sla',
|
||||||
|
'keterangan' => $request->message
|
||||||
]);
|
]);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@@ -449,10 +451,10 @@ class PenilaianController extends Controller
|
|||||||
|
|
||||||
// Tentukan status berdasarkan otorisator
|
// Tentukan status berdasarkan otorisator
|
||||||
$status = match ($otorisator) {
|
$status = match ($otorisator) {
|
||||||
'Pelaporan' => 'proses laporan',
|
'Pelaporan' => 'proses-laporan',
|
||||||
'Pembayaran' => 'proses',
|
'Pembayaran' => 'proses',
|
||||||
'Pembatalan' => 'proses',
|
'Pembatalan' => 'batal',
|
||||||
'SLA' => 'proses',
|
'SLA' => 'freeze',
|
||||||
default => '',
|
default => '',
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -477,10 +479,13 @@ class PenilaianController extends Controller
|
|||||||
if (!empty($otorisator)) {
|
if (!empty($otorisator)) {
|
||||||
if ($status == 'proses') {
|
if ($status == 'proses') {
|
||||||
$query->whereIn('status_bayar', ['sudah_bayar', 'belum_bayar']);
|
$query->whereIn('status_bayar', ['sudah_bayar', 'belum_bayar']);
|
||||||
|
} elseif ($status == 'proses-laporan') {
|
||||||
|
$query->whereRaw('LOWER(status) = ?', [strtolower($status)]);
|
||||||
|
} elseif ($status == 'batal') {
|
||||||
|
$query->whereRaw('LOWER(status) = ?', [strtolower($status)]);
|
||||||
|
} elseif ($status == 'freeze') {
|
||||||
|
$query->whereRaw('LOWER(status) = ?', [strtolower($status)]);
|
||||||
}
|
}
|
||||||
// else {
|
|
||||||
// $query->whereRaw('LOWER(status) = ?', [strtolower($status)]);
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Filter berdasarkan region user yang login
|
// Filter berdasarkan region user yang login
|
||||||
|
|||||||
27
module.json
27
module.json
@@ -323,33 +323,6 @@
|
|||||||
"pemohon-eo",
|
"pemohon-eo",
|
||||||
"admin",
|
"admin",
|
||||||
"senior-officer"
|
"senior-officer"
|
||||||
],
|
|
||||||
"sub": [
|
|
||||||
{
|
|
||||||
"title": "Sederhana",
|
|
||||||
"path": "laporan.sederhana",
|
|
||||||
"classes": "",
|
|
||||||
"attributes": [],
|
|
||||||
"permission": "",
|
|
||||||
"roles": [
|
|
||||||
"administrator",
|
|
||||||
"admin"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"title": "Standard",
|
|
||||||
"path": "laporan.standard",
|
|
||||||
"classes": "",
|
|
||||||
"attributes": [],
|
|
||||||
"permission": "",
|
|
||||||
"roles": [
|
|
||||||
"administrator",
|
|
||||||
"pemohon-ao",
|
|
||||||
"pemohon-eo",
|
|
||||||
"admin",
|
|
||||||
"senior-officer"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
96
resources/views/laporan/index.blade.php
Normal file
96
resources/views/laporan/index.blade.php
Normal file
@@ -0,0 +1,96 @@
|
|||||||
|
@extends('layouts.main')
|
||||||
|
|
||||||
|
{{-- @section('breadcrumbs') --}}
|
||||||
|
{{-- {{ Breadcrumbs::render('laporan.index') }} --}}
|
||||||
|
{{-- @endsection --}}
|
||||||
|
|
||||||
|
|
||||||
|
@section('content')
|
||||||
|
<div class="w-full grid gap-5 lg:gap-7.5 mx-auto">
|
||||||
|
|
||||||
|
|
||||||
|
<div class="card card-grid min-w-full" data-datatable="false" data-datatable-page-size="5"
|
||||||
|
data-datatable-state-save="false" id="penilai-table" data-api-url="{{ route('penilai.dataForTables') }}">
|
||||||
|
<div class="card-header py-5 flex-wrap">
|
||||||
|
<h3 class="card-title">
|
||||||
|
Laporan
|
||||||
|
</h3>
|
||||||
|
<div class="flex flex-wrap gap-2 lg:gap-5">
|
||||||
|
<div class="flex">
|
||||||
|
<label class="input input-sm"> <i class="ki-filled ki-magnifier"> </i>
|
||||||
|
<input placeholder="Search Penilai" id="search" type="text" value="">
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
<div class="flex flex-wrap gap-2.5">
|
||||||
|
<div class="h-[24px] border border-r-gray-200"></div>
|
||||||
|
<a class="btn btn-sm btn-light" href="#"> Export to Excel </a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="card-body">
|
||||||
|
<div class="scrollable-x-auto">
|
||||||
|
<table class="table table-auto table-border align-middle text-gray-700 font-medium text-sm"
|
||||||
|
data-datatable-table="true">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th class="w-14">
|
||||||
|
<input class="checkbox checkbox-sm" data-datatable-check="true" type="checkbox" />
|
||||||
|
</th>
|
||||||
|
<th class="min-w-[150px]" data-datatable-column="nomor_registrasi">
|
||||||
|
<span class="sort"> <span class="sort-label"> Nomor Registrasi </span>
|
||||||
|
<span class="sort-icon"> </span> </span>
|
||||||
|
</th>
|
||||||
|
<th class="min-w-[150px]" data-datatable-column="debitur_id">
|
||||||
|
<span class="sort"> <span class="sort-label"> Debitur </span>
|
||||||
|
<span class="sort-icon"> </span> </span>
|
||||||
|
</th>
|
||||||
|
<th class="min-w-[150px]" data-datatable-column="branch_id">
|
||||||
|
<span class="sort"> <span class="sort-label"> Pemohon(Cabang/Direktorat) </span>
|
||||||
|
<span class="sort-icon"> </span> </span>
|
||||||
|
</th>
|
||||||
|
<th class="min-w-[150px]" data-datatable-column="user_id">
|
||||||
|
<span class="sort"> <span class="sort-label"> AO </span>
|
||||||
|
<span class="sort-icon"> </span> </span>
|
||||||
|
</th>
|
||||||
|
<th class="min-w-[150px]" data-datatable-column="tujuan_penilaian_id">
|
||||||
|
<span class="sort"> <span class="sort-label"> Tujuan Penilaian </span>
|
||||||
|
<span class="sort-icon"> </span> </span>
|
||||||
|
</th>
|
||||||
|
<th class="min-w-[150px]" data-datatable-column="jenis_fasilitas_kredit_id">
|
||||||
|
<span class="sort"> <span class="sort-label"> Fasilitas Kredit </span>
|
||||||
|
<span class="sort-icon"> </span> </span>
|
||||||
|
</th>
|
||||||
|
<th class="min-w-[150px]" data-datatable-column="tanggal_survei">
|
||||||
|
<span class="sort"> <span class="sort-label"> Tanggal Survei </span>
|
||||||
|
<span class="sort-icon"> </span> </span>
|
||||||
|
</th>
|
||||||
|
<th class="min-w-[150px]" data-datatable-column="due_date_sla">
|
||||||
|
<span class="sort"> <span class="sort-label"> Due Date SLA </span>
|
||||||
|
<span class="sort-icon"> </span> </span>
|
||||||
|
</th>
|
||||||
|
<th class="min-w-[50px] text-center" data-datatable-column="actions">Action</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
class="card-footer justify-center md:justify-between flex-col md:flex-row gap-3 text-gray-600 text-2sm font-medium">
|
||||||
|
<div class="flex items-center gap-2">
|
||||||
|
Show
|
||||||
|
<select class="select select-sm w-16" data-datatable-size="true" name="perpage"> </select> per
|
||||||
|
page
|
||||||
|
</div>
|
||||||
|
<div class="flex items-center gap-4">
|
||||||
|
<span data-datatable-info="true"> </span>
|
||||||
|
<div class="pagination" data-datatable-pagination="true">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
@endsection
|
||||||
@@ -1,487 +0,0 @@
|
|||||||
@extends('layouts.main')
|
|
||||||
|
|
||||||
@section('breadcrumbs')
|
|
||||||
{{ Breadcrumbs::render('laporan.sederhana.index') }}
|
|
||||||
@endsection
|
|
||||||
|
|
||||||
|
|
||||||
@section('content')
|
|
||||||
<style>
|
|
||||||
.input-group {
|
|
||||||
position: relative;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.left-group {
|
|
||||||
padding-right: 2.5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.right-group {
|
|
||||||
padding-left: 2.5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.input-group .input-unit {
|
|
||||||
position: absolute;
|
|
||||||
top: 50%;
|
|
||||||
transform: translateY(-50%);
|
|
||||||
pointer-events: none;
|
|
||||||
color: #6b7280;
|
|
||||||
}
|
|
||||||
|
|
||||||
.input-group .input-unit.left {
|
|
||||||
left: 0.75rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.input-group .input-unit.right {
|
|
||||||
right: 0.75rem;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<div class="grid">
|
|
||||||
<div class="card card-grid min-w-full" id="debitur-table">
|
|
||||||
<div class="card-header py-5 flex-wrap">
|
|
||||||
<div class="w-full grid gap-5 lg:gap-7.5 mx-auto">
|
|
||||||
<form action="" method="POST" class="grid gap-5">
|
|
||||||
<input type="hidden" name="id" value="">
|
|
||||||
@csrf
|
|
||||||
|
|
||||||
<div class="flex flex-wrap lg:flex-nowrap gap-4">
|
|
||||||
<div class="flex items-center w-full lg:w-1/2 gap-2.5">
|
|
||||||
<label class="form-label max-w-56 lg:w-32">
|
|
||||||
CADEB AN
|
|
||||||
</label>
|
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
|
||||||
<input class="input @error('cadeb') border-danger bg-danger-light @enderror"
|
|
||||||
type="text" name="cadeb" value="">
|
|
||||||
@error('cadeb')
|
|
||||||
<em class="alert text-danger text-sm">{{ $message }}</em>
|
|
||||||
@enderror
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="flex items-center w-full lg:w-1/2 gap-2.5">
|
|
||||||
<label class="form-label max-w-56 lg:w-32">
|
|
||||||
Jenis Aset
|
|
||||||
</label>
|
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
|
||||||
<input class="input @error('aset') border-danger bg-danger-light @enderror"
|
|
||||||
type="text" name="aset" value="">
|
|
||||||
@error('aset')
|
|
||||||
<em class="alert text-danger text-sm">{{ $message }}</em>
|
|
||||||
@enderror
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="flex flex-wrap lg:flex-nowrap gap-4">
|
|
||||||
<div class="flex items-center w-full lg:w-1/2 gap-2.5">
|
|
||||||
<label class="form-label max-w-56 lg:w-32">
|
|
||||||
Fasilitas Kredit
|
|
||||||
</label>
|
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
|
||||||
<input class="input @error('kredit') border-danger bg-danger-light @enderror"
|
|
||||||
type="text" name="kredit" value="">
|
|
||||||
@error('kredit')
|
|
||||||
<em class="alert text-danger text-sm">{{ $message }}</em>
|
|
||||||
@enderror
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="flex items-center w-full lg:w-1/2 gap-2.5">
|
|
||||||
<label class="form-label max-w-56 lg:w-32">
|
|
||||||
Alamat Objek
|
|
||||||
</label>
|
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
|
||||||
<input class="input @error('alamat') border-danger bg-danger-light @enderror"
|
|
||||||
type="text" name="alamat" value="">
|
|
||||||
@error('alamat')
|
|
||||||
<em class="alert text-danger text-sm">{{ $message }}</em>
|
|
||||||
@enderror
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="flex flex-wrap lg:flex-nowrap gap-4">
|
|
||||||
<div class="flex items-center w-full lg:w-1/2 gap-2.5">
|
|
||||||
<label class="form-label max-w-56 lg:w-32">
|
|
||||||
Cabang Pemohon
|
|
||||||
</label>
|
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
|
||||||
<input class="input @error('cabang') border-danger bg-danger-light @enderror"
|
|
||||||
type="text" name="cabang" value="">
|
|
||||||
@error('cabang')
|
|
||||||
<em class="alert text-danger text-sm">{{ $message }}</em>
|
|
||||||
@enderror
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="flex items-center w-full lg:w-1/2 gap-2.5">
|
|
||||||
<label class="form-label max-w-56 lg:w-32">
|
|
||||||
AO
|
|
||||||
</label>
|
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
|
||||||
<input class="input @error('ao') border-danger bg-danger-light @enderror" type="text"
|
|
||||||
name="ao" value="">
|
|
||||||
@error('ao')
|
|
||||||
<em class="alert text-danger text-sm">{{ $message }}</em>
|
|
||||||
@enderror
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<hr>
|
|
||||||
|
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
|
||||||
<label class="form-label max-w-56">
|
|
||||||
Surveyor
|
|
||||||
</label>
|
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
|
||||||
<input class="input @error('surveyor') border-danger bg-danger-light @enderror"
|
|
||||||
type="text" name="surveyor" value="">
|
|
||||||
@error('surveyor')
|
|
||||||
<em class="alert text-danger text-sm">{{ $message }}</em>
|
|
||||||
@enderror
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
|
||||||
<label class="form-label max-w-56">
|
|
||||||
Penilai
|
|
||||||
</label>
|
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
|
||||||
<input class="input @error('penilai') border-danger bg-danger-light @enderror"
|
|
||||||
type="text" name="penilai" value="">
|
|
||||||
@error('penilai')
|
|
||||||
<em class="alert text-danger text-sm">{{ $message }}</em>
|
|
||||||
@enderror
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
|
||||||
<label class="form-label max-w-56">
|
|
||||||
Tanggal Survey
|
|
||||||
</label>
|
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
|
||||||
<input class="input @error('tanggal_survey') border-danger bg-danger-light @enderror"
|
|
||||||
type="date" name="tanggal_survey" value="">
|
|
||||||
@error('tanggal_survey')
|
|
||||||
<em class="alert text-danger text-sm">{{ $message }}</em>
|
|
||||||
@enderror
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="flex flex-wrap lg:flex-nowrap gap-4">
|
|
||||||
<div class="flex items-center w-full lg:w-1/2 gap-2.5">
|
|
||||||
<label class="form-label max-w-56 lg:w-32">
|
|
||||||
Nomor Resume
|
|
||||||
</label>
|
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
|
||||||
<input class="input @error('nomor_resume') border-danger bg-danger-light @enderror"
|
|
||||||
type="number" name="nomor_resume" value="">
|
|
||||||
@error('nomor_resume')
|
|
||||||
<em class="alert text-danger text-sm">{{ $message }}</em>
|
|
||||||
@enderror
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="flex items-center w-full lg:w-1/2 gap-2.5">
|
|
||||||
<label class="form-label max-w-56 lg:w-32">
|
|
||||||
Tanggal Resume
|
|
||||||
</label>
|
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
|
||||||
<input class="input @error('tanggal_resume') border-danger bg-danger-light @enderror"
|
|
||||||
type="date" name="tanggal_resume" value="">
|
|
||||||
@error('tanggal_resume')
|
|
||||||
<em class="alert text-danger text-sm">{{ $message }}</em>
|
|
||||||
@enderror
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<hr>
|
|
||||||
|
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
|
||||||
<label class="form-label max-w-56">
|
|
||||||
Faktor Positif
|
|
||||||
</label>
|
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
|
||||||
<textarea class="textarea @error('faktor_positif') border-danger bg-danger-light @enderror" rows="3"
|
|
||||||
type="number" id="faktor_positif" name="faktor_positif"></textarea>
|
|
||||||
@error('faktor_positif')
|
|
||||||
<em class="alert text-danger text-sm">{{ $message }}</em>
|
|
||||||
@enderror
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
|
||||||
<label class="form-label max-w-56">
|
|
||||||
Faktor Negatif
|
|
||||||
</label>
|
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
|
||||||
<textarea class="textarea @error('faktor_negatif') border-danger bg-danger-light @enderror" rows="3"
|
|
||||||
type="number" id="faktor_negatif" name="faktor_negatif"></textarea>
|
|
||||||
@error('faktor_negatif')
|
|
||||||
<em class="alert text-danger text-sm">{{ $message }}</em>
|
|
||||||
@enderror
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<hr>
|
|
||||||
|
|
||||||
<label class="form-label">Kesimpulan Nilai Pasar</label>
|
|
||||||
|
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
|
||||||
<label class="form-label max-w-56">
|
|
||||||
Sesuai Fisik
|
|
||||||
</label>
|
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
|
||||||
<div class="flex flex-col lg:flex-row gap-2 w-full">
|
|
||||||
<div class="input-group w-full">
|
|
||||||
<input
|
|
||||||
class="input w-full @error('sertifikat') border-danger bg-danger-light @enderror"
|
|
||||||
type="text" name="sertifikat" placeholder="Sertifikat" value="">
|
|
||||||
@error('sertifikat')
|
|
||||||
<em class="alert text-danger text-sm">{{ $message }}</em>
|
|
||||||
@enderror
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="input-group w-full">
|
|
||||||
<input
|
|
||||||
class="left-group input w-full @error('luas_tanah') border-danger bg-danger-light @enderror"
|
|
||||||
type="number" name="luas_tanah" placeholder="Luas tanah" value="">
|
|
||||||
<span class="input-unit right">m²</span>
|
|
||||||
@error('luas_tanah')
|
|
||||||
<em class="alert text-danger text-sm">{{ $message }}</em>
|
|
||||||
@enderror
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="input-group w-full">
|
|
||||||
<input
|
|
||||||
class="left-group input w-full @error('luas_bangunan') border-danger bg-danger-light @enderror"
|
|
||||||
type="number" name="luas_bangunan" placeholder="Luas bangunan"
|
|
||||||
value="">
|
|
||||||
<span class="input-unit right">m²</span>
|
|
||||||
@error('luas_bangunan')
|
|
||||||
<em class="alert text-danger text-sm">{{ $message }}</em>
|
|
||||||
@enderror
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="input-group w-full">
|
|
||||||
<span class="input-unit left">Rp</span>
|
|
||||||
<input
|
|
||||||
class="right-group input w-full pl-8 @error('pasar_wajar') border-danger bg-danger-light @enderror"
|
|
||||||
type="number" name="pasar_wajar" placeholder="Nilai pasar wajar"
|
|
||||||
value="">
|
|
||||||
@error('pasar_wajar')
|
|
||||||
<em class="alert text-danger text-sm">{{ $message }}</em>
|
|
||||||
@enderror
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
|
||||||
<label class="form-label max-w-56">
|
|
||||||
Sesuai IMB
|
|
||||||
</label>
|
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
|
||||||
<div class="flex flex-col lg:flex-row gap-2 w-full">
|
|
||||||
<div class="input-group w-full">
|
|
||||||
<input
|
|
||||||
class="input w-full @error('sertifikat') border-danger bg-danger-light @enderror"
|
|
||||||
type="text" name="sertifikat" placeholder="Sertifikat" value="">
|
|
||||||
@error('sertifikat')
|
|
||||||
<em class="alert text-danger text-sm">{{ $message }}</em>
|
|
||||||
@enderror
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="input-group w-full">
|
|
||||||
<input
|
|
||||||
class="left-group input w-full @error('luas_tanah') border-danger bg-danger-light @enderror"
|
|
||||||
type="number" name="luas_tanah" placeholder="Luas tanah" value="">
|
|
||||||
<span class="input-unit right">m²</span>
|
|
||||||
@error('luas_tanah')
|
|
||||||
<em class="alert text-danger text-sm">{{ $message }}</em>
|
|
||||||
@enderror
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="input-group w-full">
|
|
||||||
<input
|
|
||||||
class="left-group input w-full @error('luas_bangunan') border-danger bg-danger-light @enderror"
|
|
||||||
type="number" name="luas_bangunan" placeholder="Luas bangunan"
|
|
||||||
value="">
|
|
||||||
<span class="input-unit right">m²</span>
|
|
||||||
@error('luas_bangunan')
|
|
||||||
<em class="alert text-danger text-sm">{{ $message }}</em>
|
|
||||||
@enderror
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="input-group w-full">
|
|
||||||
<span class="input-unit left">Rp</span>
|
|
||||||
<input
|
|
||||||
class="right-group input w-full pl-8 @error('pasar_wajar') border-danger bg-danger-light @enderror"
|
|
||||||
type="number" name="pasar_wajar" placeholder="Nilai pasar wajar"
|
|
||||||
value="">
|
|
||||||
@error('pasar_wajar')
|
|
||||||
<em class="alert text-danger text-sm">{{ $message }}</em>
|
|
||||||
@enderror
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
|
||||||
<label class="form-label max-w-56">
|
|
||||||
Asumsi nilai terpotong jalan/GSB
|
|
||||||
</label>
|
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
|
||||||
<div class="flex flex-col lg:flex-row gap-2 w-full">
|
|
||||||
<div class="input-group w-full">
|
|
||||||
<input
|
|
||||||
class="input w-full @error('sertifikat') border-danger bg-danger-light @enderror"
|
|
||||||
type="text" name="sertifikat" placeholder="Sertifikat" value="">
|
|
||||||
@error('sertifikat')
|
|
||||||
<em class="alert text-danger text-sm">{{ $message }}</em>
|
|
||||||
@enderror
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="input-group w-full">
|
|
||||||
<input
|
|
||||||
class="left-group input w-full @error('luas_tanah') border-danger bg-danger-light @enderror"
|
|
||||||
type="number" name="luas_tanah" placeholder="Luas tanah" value="">
|
|
||||||
<span class="input-unit right">m²</span>
|
|
||||||
@error('luas_tanah')
|
|
||||||
<em class="alert text-danger text-sm">{{ $message }}</em>
|
|
||||||
@enderror
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="input-group w-full">
|
|
||||||
<input
|
|
||||||
class="left-group input w-full @error('luas_bangunan') border-danger bg-danger-light @enderror"
|
|
||||||
type="number" name="luas_bangunan" placeholder="Luas bangunan"
|
|
||||||
value="">
|
|
||||||
<span class="input-unit right">m²</span>
|
|
||||||
@error('luas_bangunan')
|
|
||||||
<em class="alert text-danger text-sm">{{ $message }}</em>
|
|
||||||
@enderror
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="input-group w-full">
|
|
||||||
<span class="input-unit left">Rp</span>
|
|
||||||
<input
|
|
||||||
class="right-group input w-full pl-8 @error('pasar_wajar') border-danger bg-danger-light @enderror"
|
|
||||||
type="number" name="pasar_wajar" placeholder="Nilai pasar wajar"
|
|
||||||
value="">
|
|
||||||
@error('pasar_wajar')
|
|
||||||
<em class="alert text-danger text-sm">{{ $message }}</em>
|
|
||||||
@enderror
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<hr>
|
|
||||||
|
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
|
||||||
<label class="form-label max-w-56">
|
|
||||||
Catatan perlu diperhatikan
|
|
||||||
</label>
|
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
|
||||||
<textarea class="textarea @error('catatan') border-danger bg-danger-light @enderror" rows="3" type="number"
|
|
||||||
id="catatan" name="catatan"></textarea>
|
|
||||||
@error('catatan')
|
|
||||||
<em class="alert text-danger text-sm">{{ $message }}</em>
|
|
||||||
@enderror
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<hr>
|
|
||||||
|
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
|
||||||
<label class="form-label max-w-56">
|
|
||||||
DISCLAIMER
|
|
||||||
</label>
|
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
|
||||||
<ol>
|
|
||||||
<li>Laporan Resume ini dikeluarkan dikarenakan belum dilakukannya pembayaran biaya
|
|
||||||
penilaian jaminan</li>
|
|
||||||
<li>Laporan Resume ini tidak bisa dijadikan sebagai dasar pengajuan dan atau pencairan
|
|
||||||
kredit, laporan yang digunakan tetap wajib berupa Laporan Penilaian Jaminan (LPJ)
|
|
||||||
</li>
|
|
||||||
<li>Detail per meter tanah dan bangunan, sarana pelengkap dll akan tercatat di Laporan
|
|
||||||
Penilaian Jaminan (LPJ) nanti</li>
|
|
||||||
<li>Laporan Resume ini hanya digunakan untuk kepentingan internal bagi</li>
|
|
||||||
<li>Laporan resume ini hanya berlaku <span class="text-red-500">14 hari</span> kerja
|
|
||||||
terhitung dari tanggal resume ini dibuat sesuai aturan yang berlaku, apabila lewat
|
|
||||||
maka harus dilakukan order ulang sesuai prosedur yang berlaku</li>
|
|
||||||
<li>Apabila sudah melewati 6 bulan, maka harus penilaian ulang kembali</li>
|
|
||||||
</ol>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<hr>
|
|
||||||
|
|
||||||
<label class="form-label">Salam,</label>
|
|
||||||
|
|
||||||
<div class="flex flex-wrap lg:flex-nowrap gap-4">
|
|
||||||
<div class="flex items-center w-full lg:w-1/2 gap-2.5">
|
|
||||||
<label class="form-label max-w-56 lg:w-32">
|
|
||||||
PENILAI
|
|
||||||
</label>
|
|
||||||
<label class="form-label max-w-56 lg:w-32">
|
|
||||||
SENIOR OFICER
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="flex justify-end">
|
|
||||||
<button type="submit" class="btn btn-primary">
|
|
||||||
Save
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{{-- <form method="POST" action="">
|
|
||||||
<div class="card pb-2.5">
|
|
||||||
<input type="hidden" name="action" value="">
|
|
||||||
|
|
||||||
<div class="card-body grid gap-5">
|
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
|
||||||
<label class="form-label max-w-56">
|
|
||||||
Code
|
|
||||||
</label>
|
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
|
||||||
<input class="input @error('code') border-danger bg-danger-light @enderror" type="text"
|
|
||||||
name="code" value="">
|
|
||||||
@error('code')
|
|
||||||
<em class="alert text-danger text-sm">{{ $message }}</em>
|
|
||||||
@enderror
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
|
||||||
<label class="form-label max-w-56">
|
|
||||||
Name
|
|
||||||
</label>
|
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
|
||||||
<input class="input @error('name') border-danger bg-danger-light @enderror" type="text"
|
|
||||||
name="name" value="">
|
|
||||||
@error('name')
|
|
||||||
<em class="alert text-danger text-sm">{{ $message }}</em>
|
|
||||||
@enderror
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="flex justify-end">
|
|
||||||
<button type="submit" class="btn btn-primary">
|
|
||||||
Save
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</form> --}}
|
|
||||||
</div>
|
|
||||||
@endsection
|
|
||||||
@@ -436,54 +436,115 @@
|
|||||||
<div class="flex grid-col-3 gap-2.5 w-full">
|
<div class="flex grid-col-3 gap-2.5 w-full">
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5 w-full">
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5 w-full">
|
||||||
<label for="province" class="form-label max-w-56">Luas Tanah</label>
|
<label for="province" class="form-label max-w-56">Luas Tanah</label>
|
||||||
<input type="text" class="input w-full" name="luas_tanah"
|
<input type="text" id="luas_tanah" class="input w-full currency-format"
|
||||||
value="{{ old('luas_tanah', $lpjData['luas_tanah'] ?? null) }}">
|
name="luas_tanah"
|
||||||
|
value="{{ old('luas_tanah', $lpjData['luas_tanah'] ?? null) }}"
|
||||||
|
oninput="calculateTotal()">
|
||||||
</div>
|
</div>
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5 w-full">
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5 w-full">
|
||||||
<label for="province" class="">Rp</label>
|
<label for="province" class="">X</label>
|
||||||
<input type="text" class="input w-full" name="nilai_tanah_1"
|
<label class="input">
|
||||||
value="{{ old('nilai_tanah_1', $lpjData['nilai_tanah_1'] ?? null) }}">
|
<i class="">Rp
|
||||||
|
</i>
|
||||||
|
<input type="text" id="nilai_tanah_1" class=" w-full currency-format"
|
||||||
|
name="nilai_tanah_1"
|
||||||
|
value="{{ old('nilai_tanah_1', $lpjData['nilai_tanah_1'] ?? null) }}"
|
||||||
|
oninput="calculateTotal()">
|
||||||
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5 w-full">
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5 w-full">
|
||||||
<label for="province" class="">Rp</label>
|
<label class="input">
|
||||||
<input type="text" class="input w-full" name="nilai_tanah_2"
|
<i class="">Rp
|
||||||
value="{{ old('nilai_tanah_2', $lpjData['nilai_tanah_2'] ?? null) }}">
|
</i>
|
||||||
|
<input id="nilai_tanah_2" type="text" class=" w-full currency-format"
|
||||||
|
name="nilai_tanah_2"
|
||||||
|
value="{{ old('nilai_tanah_2', $lpjData['nilai_tanah_2'] ?? null) }}">
|
||||||
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex grid-col-3 gap-2.5 w-full">
|
<div class="flex grid-col-3 gap-2.5 w-full">
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5 w-full">
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5 w-full">
|
||||||
<label for="province" class="form-label max-w-56">Luas Bangunan</label>
|
<label for="province" class="form-label max-w-56">Luas Bangunan</label>
|
||||||
<input type="text" class="input w-full" name="luas_bangunan"
|
<input type="text" class="input w-full currency-format" id="luas_bangunan" name="luas_bangunan"
|
||||||
value="{{ old('luas_bangunan', $lpjData['luas_bangunan'] ?? null) }}">
|
value="{{ old('luas_bangunan', $lpjData['luas_bangunan'] ?? null) }}"
|
||||||
|
oninput="calculateTotal()">
|
||||||
</div>
|
</div>
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5 w-full">
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5 w-full">
|
||||||
<label for="province" class="">Rp</label>
|
<label for="province" class="">X</label>
|
||||||
<input type="text" class="input w-full" name="nilai_bangunan_1"
|
<label class="input">
|
||||||
value="{{ old('nilai_bangunan_1', $lpjData['nilai_bangunan_1'] ?? null) }}">
|
<i class="">Rp
|
||||||
|
</i>
|
||||||
|
<input type="text" class=" w-full currency-format"
|
||||||
|
id="nilai_bangunan_1"
|
||||||
|
name="nilai_bangunan_1"
|
||||||
|
value="{{ old('nilai_bangunan_1', $lpjData['nilai_bangunan_1'] ?? null) }}"
|
||||||
|
oninput="calculateTotal()">
|
||||||
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5 w-full">
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5 w-full">
|
||||||
<label for="province" class="">Rp</label>
|
<label class="input">
|
||||||
<input type="text" class="input w-full" name="nilai_bangunan_2"
|
<i class="">Rp
|
||||||
value="{{ old('nilai_bangunan_2', $lpjData['nilai_bangunan_2'] ?? null) }}">
|
</i>
|
||||||
|
<input type="text" class=" w-full currency-format"
|
||||||
|
id="nilai_bangunan_2"
|
||||||
|
name="nilai_bangunan_2"
|
||||||
|
value="{{ old('nilai_bangunan_2', $lpjData['nilai_bangunan_2'] ?? null) }}">
|
||||||
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex grid-col-3 gap-2.5 w-full">
|
<div class="flex grid-col-3 gap-2.5 w-full">
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5 w-full">
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5 w-full">
|
||||||
<label for="province" class="form-label max-w-56">Sarana Pelengkap</label>
|
<label for="province" class="form-label max-w-56">Sarana Pelengkap</label>
|
||||||
<input type="text" class="input w-full" name="sarana_pelengkap"
|
<input type="text" class="input w-full currency-format"
|
||||||
value="{{ old('sarana_pelengkap', $lpjData['sarana_pelengkap'] ?? null) }}">
|
id="sarana_pelengkap"
|
||||||
|
name="sarana_pelengkap"
|
||||||
|
value="{{ old('sarana_pelengkap', $lpjData['sarana_pelengkap'] ?? null) }}"
|
||||||
|
oninput="calculateTotal()">
|
||||||
</div>
|
</div>
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5 w-full">
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5 w-full">
|
||||||
<label for="province" class="">Rp</label>
|
|
||||||
<input type="text" class="input w-full" name="nilai_sarana_pelengkap_1"
|
<label for="province" class="">X</label>
|
||||||
value="{{ old('nilai_sarana_pelengkap_1', $lpjData['nilai_sarana_pelengkap_1'] ?? null) }}">
|
<label class="input">
|
||||||
|
<i class="">Rp
|
||||||
|
</i>
|
||||||
|
<input type="text" class=" w-full currency-format"
|
||||||
|
id="nilai_sarana_pelengkap_1"
|
||||||
|
name="nilai_sarana_pelengkap_1"
|
||||||
|
value="{{ old('nilai_sarana_pelengkap_1', $lpjData['nilai_sarana_pelengkap_1'] ?? null) }}"
|
||||||
|
oninput="calculateTotal()">
|
||||||
|
>
|
||||||
|
</label>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5 w-full">
|
<div class="grid gap-5 w-full">
|
||||||
<label for="province" class="">Rp</label>
|
|
||||||
<input type="text" class="input w-full" name="nilai_sarana_pelengkap_2"
|
|
||||||
value="{{ old('nilai_sarana_pelengkap_2', $lpjData['nilai_sarana_pelengkap_2'] ?? null) }}">
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5 w-full">
|
||||||
|
|
||||||
|
<label class="input">
|
||||||
|
<i class="">Rp
|
||||||
|
</i>
|
||||||
|
<input type="text" class="w-full currency-format"
|
||||||
|
id="nilai_sarana_pelengkap_2"
|
||||||
|
name="nilai_sarana_pelengkap_2"
|
||||||
|
value="{{ old('nilai_sarana_pelengkap_2', $lpjData['nilai_sarana_pelengkap_2'] ?? null) }}">
|
||||||
|
</label>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5 w-full">
|
||||||
|
|
||||||
|
<label for="province" class="input">
|
||||||
|
<i class="">Rp
|
||||||
|
</i>
|
||||||
|
<input type="text" class=" w-full currency-format"
|
||||||
|
id="total_nilai_pasar_wajar"
|
||||||
|
name="total_nilai_pasar_wajar"
|
||||||
|
value="{{ old('total_nilai_pasar_wajar', $lpjData['total_nilai_pasar_wajar'] ?? null) }}">
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -495,25 +556,35 @@
|
|||||||
<div class="card-body grid gap-2.5 w-full">
|
<div class="card-body grid gap-2.5 w-full">
|
||||||
<div class="flex grid-col-3 gap-2.5 w-full">
|
<div class="flex grid-col-3 gap-2.5 w-full">
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5 w-full">
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5 w-full">
|
||||||
<input type="text" name="likuidasi" class="input w-full"
|
<input type="text"
|
||||||
value="{{ old('likuidasi', $lpjData['likuidasi'] ?? null) }}">
|
id="likuidasi"
|
||||||
|
name="likuidasi" class="input w-full currency-format"
|
||||||
|
value="{{ old('likuidasi', $lpjData['likuidasi'] ?? null) }}"
|
||||||
|
oninput="calculateTotal()">
|
||||||
</div>
|
</div>
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5 w-full">
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5 w-full">
|
||||||
<label for="province" class="">Rp</label>
|
<label for="province" class="">X</label>
|
||||||
<input type="text" class="input w-full" name="likuidasi_nilai_1"
|
<label class="input">
|
||||||
value="{{ old('likuidasi_nilai_1', $lpjData['likuidasi_nilai_1'] ?? null) }}">
|
<i class="">Rp
|
||||||
|
</i>
|
||||||
|
<input type="text" class=" w-full currency-format"
|
||||||
|
id="likuidasi_nilai_1"
|
||||||
|
name="likuidasi_nilai_1"
|
||||||
|
value="{{ old('likuidasi_nilai_1', $lpjData['likuidasi_nilai_1'] ?? null) }}"
|
||||||
|
oninput="calculateTotal()">
|
||||||
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="grid gap-2.5 w-full">
|
<div class="grid gap-2.5 w-full">
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5 w-full">
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5 w-full">
|
||||||
<label for="province" class="">Rp</label>
|
|
||||||
<input type="text" class="input w-full" name="likuidasi_nilai_2"
|
<label class="input">
|
||||||
value="{{ old('likuidasi_nilai_2', $lpjData['likuidasi_nilai_2'] ?? null) }}">
|
<i class="">Rp
|
||||||
</div>
|
</i>
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5 w-full">
|
<input type="text" class=" w-full currency-format"
|
||||||
<label for="province" class="">Rp</label>
|
name="likuidasi_nilai_2"
|
||||||
<input type="text" class="input w-full" name="likuidasi_nilai_3"
|
value="{{ old('likuidasi_nilai_2', $lpjData['likuidasi_nilai_2'] ?? null) }}">
|
||||||
value="{{ old('likuidasi_nilai_3', $lpjData['likuidasi_nilai_3'] ?? null) }}">
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@@ -535,19 +606,33 @@
|
|||||||
<div class="flex grid-col-3 gap-2.5 w-full">
|
<div class="flex grid-col-3 gap-2.5 w-full">
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5 w-full">
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5 w-full">
|
||||||
<label for="province" class="form-label">Luas Bangunan</label>
|
<label for="province" class="form-label">Luas Bangunan</label>
|
||||||
<input type="text" class="input w-full" name="asuransi_luas_bangunan"
|
<input type="text" class="input w-full currency-format"
|
||||||
value="{{ old('asuransi_luas_bangunan', $lpjData['asuransi_luas_bangunan'] ?? null) }}">
|
id="asuransi_luas_bangunan"
|
||||||
|
name="asuransi_luas_bangunan"
|
||||||
|
value="{{ old('asuransi_luas_bangunan', $lpjData['asuransi_luas_bangunan'] ?? null) }}"
|
||||||
|
oninput="calculateTotal()">
|
||||||
</div>
|
</div>
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5 w-full">
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5 w-full">
|
||||||
<label for="province" class="">Rp</label>
|
<label for="province" class="">X</label>
|
||||||
<input type="text" class="input w-full" name="asuransi_nilai_1"
|
<label class="input">
|
||||||
value="{{ old('asuransi_nilai_1', $lpjData['asuransi_nilai_1'] ?? null) }}">
|
<i class="">Rp
|
||||||
|
</i>
|
||||||
|
<input type="text" class="input w-full currency-format"
|
||||||
|
id="asuransi_nilai_1"
|
||||||
|
name="asuransi_nilai_1"
|
||||||
|
value="{{ old('asuransi_nilai_1', $lpjData['asuransi_nilai_1'] ?? null) }}"
|
||||||
|
oninput="calculateTotal()">
|
||||||
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5 w-full">
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5 w-full">
|
||||||
<label for="province" class="">Rp</label>
|
<label class="input">
|
||||||
<input type="text" class="input w-full" name="asuransi_nilai_2"
|
<i class="">Rp
|
||||||
|
</i>
|
||||||
|
<input type="text" class="input w-full currency-format"
|
||||||
|
name="asuransi_nilai_2"
|
||||||
value="{{ old('asuransi_nilai_2', $lpjData['asuransi_nilai_2'] ?? null) }}">
|
value="{{ old('asuransi_nilai_2', $lpjData['asuransi_nilai_2'] ?? null) }}">
|
||||||
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@@ -565,90 +650,164 @@
|
|||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@include('lpj::surveyor.js.utils')
|
|
||||||
<script type="text/javascript">
|
|
||||||
function saveLpjSederhanadanStandard() {
|
|
||||||
const form = document.getElementById('form-lpj');
|
|
||||||
const formData = new FormData(form);
|
|
||||||
|
|
||||||
const jsonData = {
|
<script type="text/javascript">
|
||||||
luas_tanah: formData.get('luas_tanah'),
|
document.addEventListener('DOMContentLoaded', function() {
|
||||||
nilai_tanah_1: formData.get('nilai_tanah_1'),
|
document.querySelectorAll('.currency-format').forEach(input => {
|
||||||
nilai_tanah_2: formData.get('nilai_tanah_2'),
|
input.addEventListener('input', function() {
|
||||||
luas_bangunan: formData.get('luas_bangunan'),
|
formatCurrency(this);
|
||||||
nilai_bangunan_1: formData.get('nilai_bangunan_1'),
|
|
||||||
nilai_bangunan_2: formData.get('nilai_bangunan_2'),
|
|
||||||
sarana_pelengkap: formData.get('sarana_pelengkap'),
|
|
||||||
nilai_sarana_pelengkap_1: formData.get('nilai_sarana_pelengkap_1'),
|
|
||||||
nilai_sarana_pelengkap_2: formData.get('nilai_sarana_pelengkap_2'),
|
|
||||||
likuidasi: formData.get('likuidasi'),
|
|
||||||
likuidasi_nilai_1: formData.get('likuidasi_nilai_1'),
|
|
||||||
likuidasi_nilai_2: formData.get('likuidasi_nilai_2'),
|
|
||||||
likuidasi_nilai_3: formData.get('likuidasi_nilai_3'),
|
|
||||||
asuransi_luas_bangunan: formData.get('asuransi_luas_bangunan'),
|
|
||||||
asuransi_nilai_1: formData.get('asuransi_nilai_1'),
|
|
||||||
asuransi_nilai_2: formData.get('asuransi_nilai_2')
|
|
||||||
};
|
|
||||||
|
|
||||||
showLoadingSwal('Mengirim data ke server...');
|
|
||||||
|
|
||||||
const urlParams = new URLSearchParams(window.location.search);
|
|
||||||
const permohonanId = {{ $permohonan->id }};
|
|
||||||
const documentId = urlParams.get('documentId');
|
|
||||||
const inspeksiId = urlParams.get('inspeksiId');
|
|
||||||
|
|
||||||
const requestUrl = `{{ route('penilai.storeLpjSederhanadanStandard') }}`;
|
|
||||||
$.ajax({
|
|
||||||
url: requestUrl,
|
|
||||||
type: 'POST',
|
|
||||||
data: JSON.stringify({
|
|
||||||
permohonan_id: permohonanId,
|
|
||||||
document_id: documentId,
|
|
||||||
inspeksi_id: inspeksiId,
|
|
||||||
lpj: jsonData,
|
|
||||||
}),
|
|
||||||
contentType: 'application/json',
|
|
||||||
headers: {
|
|
||||||
'X-CSRF-TOKEN': '{{ csrf_token() }}'
|
|
||||||
},
|
|
||||||
success: function(response) {
|
|
||||||
hideLoadingSwal();
|
|
||||||
if (response.success) {
|
|
||||||
Swal.fire({
|
|
||||||
title: 'Berhasil!',
|
|
||||||
text: response.message,
|
|
||||||
icon: 'success',
|
|
||||||
confirmButtonText: 'OK'
|
|
||||||
}).then((response) => {
|
|
||||||
if (response.isConfirmed) {
|
|
||||||
window.location.href =
|
|
||||||
'{{ route('penilai.show', ['id' => $permohonan->id]) }}';
|
|
||||||
}
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
Swal.fire({
|
|
||||||
title: 'Error!',
|
|
||||||
text: response.message || 'Terjadi kesalahan',
|
|
||||||
icon: 'error',
|
|
||||||
confirmButtonText: 'OK'
|
|
||||||
});
|
|
||||||
}
|
|
||||||
console.log(response);
|
|
||||||
},
|
|
||||||
error: function(xhr, status, error) {
|
|
||||||
let errors = xhr.responseJSON?.errors;
|
|
||||||
$('.alert').text('');
|
|
||||||
if (errors) {
|
|
||||||
$.each(errors, function(key, value) {
|
|
||||||
$(`#error-${key}`).text(value[0]);
|
|
||||||
toastrErrorBuild(value[0]);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
hideLoadingSwal();
|
|
||||||
console.log(errors);
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
}
|
});
|
||||||
</script>
|
|
||||||
|
document.querySelectorAll('.number-format').forEach(input => {
|
||||||
|
input.addEventListener('input', function() {
|
||||||
|
formatNumber(this);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
function calculateTotal() {
|
||||||
|
// Fungsi untuk menghapus format ribuan/koma
|
||||||
|
const parseInput = (value) => parseFloat(value.replace(/[^0-9]/g, '')) || 0;
|
||||||
|
|
||||||
|
// Ambil elemen input dan parse nilainya
|
||||||
|
let luasTanah = parseInput(document.getElementById('luas_tanah').value);
|
||||||
|
let hargaPerMeterTanah = parseInput(document.querySelector('input[name="nilai_tanah_1"]').value);
|
||||||
|
let totalLuasTanah = document.querySelector('input[name="nilai_tanah_2"]');
|
||||||
|
|
||||||
|
let luasBangunan = parseInput(document.getElementById('luas_bangunan').value);
|
||||||
|
let hargaPerMeterBangunan = parseInput(document.querySelector('input[name="nilai_bangunan_1"]').value);
|
||||||
|
let totalLuasBangunan = document.querySelector('input[name="nilai_bangunan_2"]');
|
||||||
|
|
||||||
|
let saranaPelengkap = parseInput(document.getElementById('sarana_pelengkap').value);
|
||||||
|
let hargaPerMeterSarana = parseInput(document.querySelector('input[name="nilai_sarana_pelengkap_1"]').value);
|
||||||
|
let totalLuasSarana = document.querySelector('input[name="nilai_sarana_pelengkap_2"]');
|
||||||
|
|
||||||
|
// Bagian Likuidasi
|
||||||
|
let persentaseLikuidasi = parseInput(document.getElementById('likuidasi').value);
|
||||||
|
let totalNilaiPasarLikuidasi = document.querySelector('input[name="likuidasi_nilai_1"]');
|
||||||
|
let totalLikuidasi = document.querySelector('input[name="likuidasi_nilai_2"]');
|
||||||
|
|
||||||
|
// Bagian Asuransi
|
||||||
|
let luasBangunanAsuransi = parseInput(document.getElementById('asuransi_luas_bangunan').value);
|
||||||
|
let hargaPerMeterAsuransi = parseInput(document.querySelector('input[name="asuransi_nilai_1"]').value);
|
||||||
|
let totalNilaiAsuransi = document.querySelector('input[name="asuransi_nilai_2"]');
|
||||||
|
|
||||||
|
let total = document.querySelector('input[name="total_nilai_pasar_wajar"]');
|
||||||
|
|
||||||
|
// Hitung hasil
|
||||||
|
const hasilTanah = luasTanah * hargaPerMeterTanah;
|
||||||
|
const hasilBangunan = luasBangunan * hargaPerMeterBangunan;
|
||||||
|
const hasilSarana = saranaPelengkap * hargaPerMeterSarana;
|
||||||
|
|
||||||
|
const totalNilaiPasarWajar = hasilTanah + hasilBangunan + hasilSarana;
|
||||||
|
|
||||||
|
// Perhitungan Likuidasi
|
||||||
|
const hasilLikuidasi = (persentaseLikuidasi / 100) * totalNilaiPasarWajar;
|
||||||
|
|
||||||
|
// Perhitungan Asuransi
|
||||||
|
const hasilAsuransi = luasBangunanAsuransi * hargaPerMeterAsuransi;
|
||||||
|
|
||||||
|
// Tampilkan hasil dalam format currency
|
||||||
|
totalLuasTanah.value = formatCurrency(hasilTanah.toString());
|
||||||
|
totalLuasBangunan.value = formatCurrency(hasilBangunan.toString());
|
||||||
|
totalLuasSarana.value = formatCurrency(hasilSarana.toString());
|
||||||
|
total.value = formatCurrency(totalNilaiPasarWajar.toString());
|
||||||
|
|
||||||
|
// Tampilkan nilai likuidasi dan asuransi
|
||||||
|
totalNilaiPasarLikuidasi.value = formatCurrency(totalNilaiPasarWajar.toString());
|
||||||
|
totalNilaiAsuransi.value = formatCurrency(hasilAsuransi.toString());
|
||||||
|
|
||||||
|
// Total likuidasi (total nilai pasar wajar + nilai likuidasi)
|
||||||
|
// const totalPasarWajarDenganLikuidasi = totalNilaiPasarWajar + hasilLikuidasi;
|
||||||
|
totalLikuidasi.value = formatCurrency(hasilLikuidasi.toString());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
function saveLpjSederhanadanStandard() {
|
||||||
|
const form = document.getElementById('form-lpj');
|
||||||
|
const formData = new FormData(form);
|
||||||
|
|
||||||
|
const jsonData = {
|
||||||
|
luas_tanah: formData.get('luas_tanah'),
|
||||||
|
nilai_tanah_1: formData.get('nilai_tanah_1'),
|
||||||
|
nilai_tanah_2: formData.get('nilai_tanah_2'),
|
||||||
|
luas_bangunan: formData.get('luas_bangunan'),
|
||||||
|
nilai_bangunan_1: formData.get('nilai_bangunan_1'),
|
||||||
|
nilai_bangunan_2: formData.get('nilai_bangunan_2'),
|
||||||
|
sarana_pelengkap: formData.get('sarana_pelengkap'),
|
||||||
|
nilai_sarana_pelengkap_1: formData.get('nilai_sarana_pelengkap_1'),
|
||||||
|
nilai_sarana_pelengkap_2: formData.get('nilai_sarana_pelengkap_2'),
|
||||||
|
total_nilai_pasar_wajar: formData.get('total_nilai_pasar_wajar'),
|
||||||
|
likuidasi: formData.get('likuidasi'),
|
||||||
|
likuidasi_nilai_1: formData.get('likuidasi_nilai_1'),
|
||||||
|
likuidasi_nilai_2: formData.get('likuidasi_nilai_2'),
|
||||||
|
asuransi_luas_bangunan: formData.get('asuransi_luas_bangunan'),
|
||||||
|
asuransi_nilai_1: formData.get('asuransi_nilai_1'),
|
||||||
|
asuransi_nilai_2: formData.get('asuransi_nilai_2')
|
||||||
|
};
|
||||||
|
|
||||||
|
showLoadingSwal('Mengirim data ke server...');
|
||||||
|
|
||||||
|
const urlParams = new URLSearchParams(window.location.search);
|
||||||
|
const permohonanId = {{ $permohonan->id }};
|
||||||
|
const documentId = urlParams.get('documentId');
|
||||||
|
const inspeksiId = urlParams.get('inspeksiId');
|
||||||
|
|
||||||
|
const requestUrl = `{{ route('penilai.storeLpjSederhanadanStandard') }}`;
|
||||||
|
$.ajax({
|
||||||
|
url: requestUrl,
|
||||||
|
type: 'POST',
|
||||||
|
data: JSON.stringify({
|
||||||
|
permohonan_id: permohonanId,
|
||||||
|
document_id: documentId,
|
||||||
|
inspeksi_id: inspeksiId,
|
||||||
|
lpj: jsonData,
|
||||||
|
}),
|
||||||
|
contentType: 'application/json',
|
||||||
|
headers: {
|
||||||
|
'X-CSRF-TOKEN': '{{ csrf_token() }}'
|
||||||
|
},
|
||||||
|
success: function(response) {
|
||||||
|
hideLoadingSwal();
|
||||||
|
if (response.success) {
|
||||||
|
Swal.fire({
|
||||||
|
title: 'Berhasil!',
|
||||||
|
text: response.message,
|
||||||
|
icon: 'success',
|
||||||
|
confirmButtonText: 'OK'
|
||||||
|
}).then((response) => {
|
||||||
|
if (response.isConfirmed) {
|
||||||
|
window.location.href =
|
||||||
|
'{{ route('penilai.show', ['id' => $permohonan->id]) }}';
|
||||||
|
}
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
Swal.fire({
|
||||||
|
title: 'Error!',
|
||||||
|
text: response.message || 'Terjadi kesalahan',
|
||||||
|
icon: 'error',
|
||||||
|
confirmButtonText: 'OK'
|
||||||
|
});
|
||||||
|
}
|
||||||
|
console.log(response);
|
||||||
|
},
|
||||||
|
error: function(xhr, status, error) {
|
||||||
|
let errors = xhr.responseJSON?.errors;
|
||||||
|
$('.alert').text('');
|
||||||
|
if (errors) {
|
||||||
|
$.each(errors, function(key, value) {
|
||||||
|
$(`#error-${key}`).text(value[0]);
|
||||||
|
toastrErrorBuild(value[0]);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
hideLoadingSwal();
|
||||||
|
console.log(errors);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
@include('lpj::surveyor.js.utils')
|
||||||
|
|||||||
@@ -5,92 +5,92 @@
|
|||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<div class="w-full grid gap-5 lg:gap-7.5 mx-auto">
|
<div class="w-full grid gap-5 lg:gap-7.5 mx-auto">
|
||||||
|
|
||||||
|
|
||||||
<div class="card card-grid min-w-full" data-datatable="false" data-datatable-page-size="5"
|
<div class="card card-grid min-w-full" data-datatable="false" data-datatable-page-size="5"
|
||||||
data-datatable-state-save="false" id="penilai-table" data-api-url="{{ route('penilai.dataForTables') }}">
|
data-datatable-state-save="false" id="penilai-table" data-api-url="{{ route('penilai.dataForTables') }}">
|
||||||
<div class="card-header py-5 flex-wrap">
|
<div class="card-header py-5 flex-wrap">
|
||||||
<h3 class="card-title">
|
<h3 class="card-title">
|
||||||
Penilai
|
Penilai
|
||||||
</h3>
|
</h3>
|
||||||
<div class="flex flex-wrap gap-2 lg:gap-5">
|
<div class="flex flex-wrap gap-2 lg:gap-5">
|
||||||
<div class="flex">
|
<div class="flex">
|
||||||
<label class="input input-sm"> <i class="ki-filled ki-magnifier"> </i>
|
<label class="input input-sm"> <i class="ki-filled ki-magnifier"> </i>
|
||||||
<input placeholder="Search Penilai" id="search" type="text" value="">
|
<input placeholder="Search Penilai" id="search" type="text" value="">
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-wrap gap-2.5">
|
<div class="flex flex-wrap gap-2.5">
|
||||||
<div class="h-[24px] border border-r-gray-200"></div>
|
<div class="h-[24px] border border-r-gray-200"></div>
|
||||||
<a class="btn btn-sm btn-light" href="#"> Export to Excel </a>
|
<a class="btn btn-sm btn-light" href="#"> Export to Excel </a>
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="card-body">
|
|
||||||
<div class="scrollable-x-auto">
|
|
||||||
<table class="table table-auto table-border align-middle text-gray-700 font-medium text-sm"
|
|
||||||
data-datatable-table="true">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th class="w-14">
|
|
||||||
<input class="checkbox checkbox-sm" data-datatable-check="true" type="checkbox" />
|
|
||||||
</th>
|
|
||||||
<th class="min-w-[150px]" data-datatable-column="nomor_registrasi">
|
|
||||||
<span class="sort"> <span class="sort-label"> Nomor Registrasi </span>
|
|
||||||
<span class="sort-icon"> </span> </span>
|
|
||||||
</th>
|
|
||||||
<th class="min-w-[150px]" data-datatable-column="debitur_id">
|
|
||||||
<span class="sort"> <span class="sort-label"> Debitur </span>
|
|
||||||
<span class="sort-icon"> </span> </span>
|
|
||||||
</th>
|
|
||||||
<th class="min-w-[150px]" data-datatable-column="branch_id">
|
|
||||||
<span class="sort"> <span class="sort-label"> Pemohon(Cabang/Direktorat) </span>
|
|
||||||
<span class="sort-icon"> </span> </span>
|
|
||||||
</th>
|
|
||||||
<th class="min-w-[150px]" data-datatable-column="user_id">
|
|
||||||
<span class="sort"> <span class="sort-label"> AO </span>
|
|
||||||
<span class="sort-icon"> </span> </span>
|
|
||||||
</th>
|
|
||||||
<th class="min-w-[150px]" data-datatable-column="tujuan_penilaian_id">
|
|
||||||
<span class="sort"> <span class="sort-label"> Tujuan Penilaian </span>
|
|
||||||
<span class="sort-icon"> </span> </span>
|
|
||||||
</th>
|
|
||||||
<th class="min-w-[150px]" data-datatable-column="jenis_fasilitas_kredit_id">
|
|
||||||
<span class="sort"> <span class="sort-label"> Fasilitas Kredit </span>
|
|
||||||
<span class="sort-icon"> </span> </span>
|
|
||||||
</th>
|
|
||||||
<th class="min-w-[150px]" data-datatable-column="tanggal_survei">
|
|
||||||
<span class="sort"> <span class="sort-label"> Tanggal Survei </span>
|
|
||||||
<span class="sort-icon"> </span> </span>
|
|
||||||
</th>
|
|
||||||
<th class="min-w-[150px]" data-datatable-column="due_date_sla">
|
|
||||||
<span class="sort"> <span class="sort-label"> Due Date SLA </span>
|
|
||||||
<span class="sort-icon"> </span> </span>
|
|
||||||
</th>
|
|
||||||
<th class="min-w-[50px] text-center" data-datatable-column="actions">Action</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
<div
|
|
||||||
class="card-footer justify-center md:justify-between flex-col md:flex-row gap-3 text-gray-600 text-2sm font-medium">
|
|
||||||
<div class="flex items-center gap-2">
|
|
||||||
Show
|
|
||||||
<select class="select select-sm w-16" data-datatable-size="true" name="perpage"> </select> per
|
|
||||||
page
|
|
||||||
</div>
|
|
||||||
<div class="flex items-center gap-4">
|
|
||||||
<span data-datatable-info="true"> </span>
|
|
||||||
<div class="pagination" data-datatable-pagination="true">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="card-body">
|
||||||
|
<div class="scrollable-x-auto">
|
||||||
|
<table class="table table-auto table-border align-middle text-gray-700 font-medium text-sm"
|
||||||
|
data-datatable-table="true">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th class="w-14">
|
||||||
|
<input class="checkbox checkbox-sm" data-datatable-check="true" type="checkbox" />
|
||||||
|
</th>
|
||||||
|
<th class="min-w-[150px]" data-datatable-column="nomor_registrasi">
|
||||||
|
<span class="sort"> <span class="sort-label"> Nomor Registrasi </span>
|
||||||
|
<span class="sort-icon"> </span> </span>
|
||||||
|
</th>
|
||||||
|
<th class="min-w-[150px]" data-datatable-column="debitur_id">
|
||||||
|
<span class="sort"> <span class="sort-label"> Debitur </span>
|
||||||
|
<span class="sort-icon"> </span> </span>
|
||||||
|
</th>
|
||||||
|
<th class="min-w-[150px]" data-datatable-column="branch_id">
|
||||||
|
<span class="sort"> <span class="sort-label"> Pemohon(Cabang/Direktorat) </span>
|
||||||
|
<span class="sort-icon"> </span> </span>
|
||||||
|
</th>
|
||||||
|
<th class="min-w-[150px]" data-datatable-column="user_id">
|
||||||
|
<span class="sort"> <span class="sort-label"> AO </span>
|
||||||
|
<span class="sort-icon"> </span> </span>
|
||||||
|
</th>
|
||||||
|
<th class="min-w-[150px]" data-datatable-column="tujuan_penilaian_id">
|
||||||
|
<span class="sort"> <span class="sort-label"> Tujuan Penilaian </span>
|
||||||
|
<span class="sort-icon"> </span> </span>
|
||||||
|
</th>
|
||||||
|
<th class="min-w-[150px]" data-datatable-column="jenis_fasilitas_kredit_id">
|
||||||
|
<span class="sort"> <span class="sort-label"> Fasilitas Kredit </span>
|
||||||
|
<span class="sort-icon"> </span> </span>
|
||||||
|
</th>
|
||||||
|
<th class="min-w-[150px]" data-datatable-column="tanggal_survei">
|
||||||
|
<span class="sort"> <span class="sort-label"> Tanggal Survei </span>
|
||||||
|
<span class="sort-icon"> </span> </span>
|
||||||
|
</th>
|
||||||
|
<th class="min-w-[150px]" data-datatable-column="due_date_sla">
|
||||||
|
<span class="sort"> <span class="sort-label"> Due Date SLA </span>
|
||||||
|
<span class="sort-icon"> </span> </span>
|
||||||
|
</th>
|
||||||
|
<th class="min-w-[50px] text-center" data-datatable-column="actions">Action</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
class="card-footer justify-center md:justify-between flex-col md:flex-row gap-3 text-gray-600 text-2sm font-medium">
|
||||||
|
<div class="flex items-center gap-2">
|
||||||
|
Show
|
||||||
|
<select class="select select-sm w-16" data-datatable-size="true" name="perpage"> </select> per
|
||||||
|
page
|
||||||
|
</div>
|
||||||
|
<div class="flex items-center gap-4">
|
||||||
|
<span data-datatable-info="true"> </span>
|
||||||
|
<div class="pagination" data-datatable-pagination="true">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@@ -181,12 +181,22 @@
|
|||||||
actions: {
|
actions: {
|
||||||
title: 'Action',
|
title: 'Action',
|
||||||
render: (item, data) => {
|
render: (item, data) => {
|
||||||
return `
|
|
||||||
|
if (data.status === 'done') {
|
||||||
|
return `
|
||||||
<div class="flex flex-nowrap justify-center gap-1.5">
|
<div class="flex flex-nowrap justify-center gap-1.5">
|
||||||
<a class="btn btn-sm btn-outline btn-info" href="penilai/${data.id}/show">
|
<a class="btn btn-sm btn-outline btn-info" href="penilai/${data.id}/show">
|
||||||
<i class="ki-outline ki-eye"></i>
|
<i class="ki-outline ki-eye"></i>
|
||||||
</a>
|
</a>
|
||||||
</div>`;
|
</div>`;
|
||||||
|
} else {
|
||||||
|
return `<div class="flex flex-nowrap justify-center">
|
||||||
|
<a class="btn btn-sm btn-icon btn-clear btn-success" onclick="showLoadingSwal('Masih Menunggu proses inspeksi dari surveyor...')">
|
||||||
|
<i class="ki-filled ki-watch"></i>
|
||||||
|
</a>
|
||||||
|
</div>`
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -200,4 +210,22 @@
|
|||||||
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
function showLoadingSwal(message, duration = 5000) {
|
||||||
|
Swal.fire({
|
||||||
|
title: message,
|
||||||
|
allowOutsideClick: false,
|
||||||
|
didOpen: () => {
|
||||||
|
Swal.showLoading();
|
||||||
|
},
|
||||||
|
timer: duration, // Durasi dalam milidetik
|
||||||
|
timerProgressBar: true, // Menampilkan progres bar timer
|
||||||
|
}).then((result) => {
|
||||||
|
if (result.dismiss === Swal.DismissReason.timer) {
|
||||||
|
console.log('Dialog loading otomatis ditutup.');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
</script>
|
||||||
@endpush
|
@endpush
|
||||||
|
|||||||
@@ -258,23 +258,17 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="flex justify-end gap-5">
|
<div class="flex justify-end gap-5">
|
||||||
|
|
||||||
<a class="btn btn-success" href="#">
|
|
||||||
REPORT
|
|
||||||
</a>
|
|
||||||
<a class="btn btn-success" href="#">
|
<a class="btn btn-success" href="#">
|
||||||
PRINT OUT
|
PRINT OUT
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
@endforeach
|
@endforeach
|
||||||
<div class="flex justify-start gap-5">
|
<div class="flex justify-start gap-5">
|
||||||
<a class="btn btn-success" onclick="savePenilai()">
|
<a class="btn btn-success" onclick="savePenilai()">
|
||||||
SAVE
|
REPORT
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -200,8 +200,7 @@
|
|||||||
actions: {
|
actions: {
|
||||||
title: 'Status',
|
title: 'Status',
|
||||||
render: (item, data) => {
|
render: (item, data) => {
|
||||||
if (data.status != 'proses laporan' && dataHeader != 'Pelaporan') {
|
return `<div class="flex flex-nowrap justify-center">
|
||||||
return `<div class="flex flex-nowrap justify-center">
|
|
||||||
<a class="btn btn-sm btn-icon btn-clear btn-warning " href="otorisator/show/${data.id}/${dataHeader}">
|
<a class="btn btn-sm btn-icon btn-clear btn-warning " href="otorisator/show/${data.id}/${dataHeader}">
|
||||||
<i class="ki-outline ki-eye"></i>
|
<i class="ki-outline ki-eye"></i>
|
||||||
</a>
|
</a>
|
||||||
@@ -210,14 +209,6 @@
|
|||||||
<i class="ki-filled ki-double-check"></i>
|
<i class="ki-filled ki-double-check"></i>
|
||||||
</a>
|
</a>
|
||||||
</div>`;
|
</div>`;
|
||||||
} else {
|
|
||||||
return `<div class="flex flex-nowrap justify-center">
|
|
||||||
<a class="btn btn-sm btn-icon btn-clear btn-success" onclick="showLoadingSwal('Masih Menunggu proses selesai dari penilai...')">
|
|
||||||
<i class="ki-filled ki-watch"></i>
|
|
||||||
|
|
||||||
</a>
|
|
||||||
</div>`
|
|
||||||
}
|
|
||||||
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@@ -240,6 +231,12 @@
|
|||||||
title: 'Apakah Anda yakin?',
|
title: 'Apakah Anda yakin?',
|
||||||
text: `Untuk melakukan otorisator ${dataHeader}!`,
|
text: `Untuk melakukan otorisator ${dataHeader}!`,
|
||||||
icon: 'warning',
|
icon: 'warning',
|
||||||
|
input: 'textarea', // Menambahkan input textarea
|
||||||
|
inputLabel: 'Keterangan',
|
||||||
|
inputPlaceholder: 'Masukkan keterangan...',
|
||||||
|
inputAttributes: {
|
||||||
|
'aria-label': 'Masukkan keterangan'
|
||||||
|
},
|
||||||
showCancelButton: true,
|
showCancelButton: true,
|
||||||
confirmButtonColor: '#3085d6',
|
confirmButtonColor: '#3085d6',
|
||||||
cancelButtonColor: '#d33',
|
cancelButtonColor: '#d33',
|
||||||
@@ -247,6 +244,7 @@
|
|||||||
cancelButtonText: 'Batal',
|
cancelButtonText: 'Batal',
|
||||||
}).then((result) => {
|
}).then((result) => {
|
||||||
if (result.isConfirmed) {
|
if (result.isConfirmed) {
|
||||||
|
const userMessage = result.value || ''; // Ambil pesan dari textarea
|
||||||
$.ajaxSetup({
|
$.ajaxSetup({
|
||||||
headers: {
|
headers: {
|
||||||
'X-CSRF-TOKEN': '{{ csrf_token() }}'
|
'X-CSRF-TOKEN': '{{ csrf_token() }}'
|
||||||
@@ -255,6 +253,9 @@
|
|||||||
$.ajax({
|
$.ajax({
|
||||||
url: `/otorisator/otorisator/${dataId}/${dataHeader}`,
|
url: `/otorisator/otorisator/${dataId}/${dataHeader}`,
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
|
data: {
|
||||||
|
message: userMessage // Kirim pesan sebagai bagian dari data
|
||||||
|
},
|
||||||
success: (response) => {
|
success: (response) => {
|
||||||
Swal.fire('Berhasil!', 'Data berhasil diotorisasi.', 'success').then(() => {
|
Swal.fire('Berhasil!', 'Data berhasil diotorisasi.', 'success').then(() => {
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
@@ -264,13 +265,14 @@
|
|||||||
error: (error) => {
|
error: (error) => {
|
||||||
console.error('Error:', error);
|
console.error('Error:', error);
|
||||||
Swal.fire('Gagal!', 'Terjadi kesalahan saat melakukan otorisator.',
|
Swal.fire('Gagal!', 'Terjadi kesalahan saat melakukan otorisator.',
|
||||||
'error');
|
'error');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function showLoadingSwal(message, duration = 5000) {
|
function showLoadingSwal(message, duration = 5000) {
|
||||||
Swal.fire({
|
Swal.fire({
|
||||||
title: message,
|
title: message,
|
||||||
|
|||||||
@@ -26,13 +26,18 @@
|
|||||||
|
|
||||||
@push('scripts')
|
@push('scripts')
|
||||||
<script>
|
<script>
|
||||||
function otorisatorData(dataId) {
|
function otorisatorData(dataId) {
|
||||||
const dataHeader = {!! json_encode($header ?? '') !!};
|
const dataHeader = @json($header);
|
||||||
|
|
||||||
Swal.fire({
|
Swal.fire({
|
||||||
title: 'Apakah Anda yakin?',
|
title: 'Apakah Anda yakin?',
|
||||||
text: `Untuk melakukan otorisator ${dataHeader}!`,
|
text: `Untuk melakukan otorisator ${dataHeader}!`,
|
||||||
icon: 'warning',
|
icon: 'warning',
|
||||||
|
input: 'textarea',
|
||||||
|
inputLabel: 'Keterangan',
|
||||||
|
inputPlaceholder: 'Masukkan keterangan...',
|
||||||
|
inputAttributes: {
|
||||||
|
'aria-label': 'Masukkan keterangan'
|
||||||
|
},
|
||||||
showCancelButton: true,
|
showCancelButton: true,
|
||||||
confirmButtonColor: '#3085d6',
|
confirmButtonColor: '#3085d6',
|
||||||
cancelButtonColor: '#d33',
|
cancelButtonColor: '#d33',
|
||||||
@@ -40,6 +45,7 @@
|
|||||||
cancelButtonText: 'Batal',
|
cancelButtonText: 'Batal',
|
||||||
}).then((result) => {
|
}).then((result) => {
|
||||||
if (result.isConfirmed) {
|
if (result.isConfirmed) {
|
||||||
|
const userMessage = result.value || ''; // Ambil pesan dari textarea
|
||||||
$.ajaxSetup({
|
$.ajaxSetup({
|
||||||
headers: {
|
headers: {
|
||||||
'X-CSRF-TOKEN': '{{ csrf_token() }}'
|
'X-CSRF-TOKEN': '{{ csrf_token() }}'
|
||||||
@@ -48,6 +54,9 @@
|
|||||||
$.ajax({
|
$.ajax({
|
||||||
url: `/otorisator/otorisator/${dataId}/${dataHeader}`,
|
url: `/otorisator/otorisator/${dataId}/${dataHeader}`,
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
|
data: {
|
||||||
|
message: userMessage
|
||||||
|
},
|
||||||
success: (response) => {
|
success: (response) => {
|
||||||
Swal.fire('Berhasil!', 'Data berhasil diotorisasi.', 'success').then(() => {
|
Swal.fire('Berhasil!', 'Data berhasil diotorisasi.', 'success').then(() => {
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
@@ -57,7 +66,7 @@
|
|||||||
error: (error) => {
|
error: (error) => {
|
||||||
console.error('Error:', error);
|
console.error('Error:', error);
|
||||||
Swal.fire('Gagal!', 'Terjadi kesalahan saat melakukan otorisator.',
|
Swal.fire('Gagal!', 'Terjadi kesalahan saat melakukan otorisator.',
|
||||||
'error');
|
'error');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -348,11 +348,8 @@ Route::middleware(['auth'])->group(function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
Route::resource('debitur', DebitureController::class);
|
Route::resource('debitur', DebitureController::class);
|
||||||
|
Route::resource('laporan', LaporanController::class);
|
||||||
|
|
||||||
Route::name('laporan.')->prefix('laporan')->group(function () {
|
|
||||||
Route::get('sederhana', [LaporanController::class, 'sederhana_index'])->name('sederhana.index');
|
|
||||||
Route::get('standard', [LaporanController::class, 'standard_index'])->name('standard.index');
|
|
||||||
});
|
|
||||||
|
|
||||||
Route::name('resume.')->prefix('resume')->group(function () {
|
Route::name('resume.')->prefix('resume')->group(function () {
|
||||||
Route::get('/', [ResumeController::class, 'index'])->name('index');
|
Route::get('/', [ResumeController::class, 'index'])->name('index');
|
||||||
|
|||||||
Reference in New Issue
Block a user