Merge branch 'staging' into feature/senior-officer
This commit is contained in:
46
app/Exports/JenisLaporanExport.php
Normal file
46
app/Exports/JenisLaporanExport.php
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Modules\Lpj\Exports;
|
||||||
|
|
||||||
|
use Maatwebsite\Excel\Concerns\FromCollection;
|
||||||
|
use Maatwebsite\Excel\Concerns\WithColumnFormatting;
|
||||||
|
use Maatwebsite\Excel\Concerns\WithHeadings;
|
||||||
|
use Maatwebsite\Excel\Concerns\WithMapping;
|
||||||
|
use Modules\Lpj\Models\JenisLaporan;
|
||||||
|
use PhpOffice\PhpSpreadsheet\Style\NumberFormat;
|
||||||
|
|
||||||
|
class JenisLaporanExport implements WithColumnFormatting, WithHeadings, FromCollection, withMapping
|
||||||
|
{
|
||||||
|
public function collection()
|
||||||
|
{
|
||||||
|
return JenisLaporan::all();
|
||||||
|
}
|
||||||
|
|
||||||
|
public function map($row): array
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
$row->id,
|
||||||
|
$row->code,
|
||||||
|
$row->name,
|
||||||
|
$row->created_at
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
public function headings(): array
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
'ID',
|
||||||
|
'Code',
|
||||||
|
'Name',
|
||||||
|
'Created At'
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
public function columnFormats(): array
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
'A' => NumberFormat::FORMAT_NUMBER,
|
||||||
|
'D' => NumberFormat::FORMAT_DATE_DATETIME
|
||||||
|
];
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -53,7 +53,7 @@ class KJPPExport implements WithColumnFormatting, WithHeadings, FromCollection,
|
|||||||
'ID',
|
'ID',
|
||||||
'Code',
|
'Code',
|
||||||
'Name',
|
'Name',
|
||||||
'Jenis Kantor / Cabang',
|
'Jenis Kantor',
|
||||||
'Nomor Ijin Usaha',
|
'Nomor Ijin Usaha',
|
||||||
'Province Code',
|
'Province Code',
|
||||||
'City Code',
|
'City Code',
|
||||||
|
|||||||
63
app/Exports/PenawaranTenderExport.php
Normal file
63
app/Exports/PenawaranTenderExport.php
Normal file
@@ -0,0 +1,63 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Modules\Lpj\Exports;
|
||||||
|
|
||||||
|
use Maatwebsite\Excel\Concerns\FromCollection;
|
||||||
|
use Maatwebsite\Excel\Concerns\WithColumnFormatting;
|
||||||
|
use Maatwebsite\Excel\Concerns\WithHeadings;
|
||||||
|
use Maatwebsite\Excel\Concerns\WithMapping;
|
||||||
|
use Modules\Lpj\Models\PenawaranTender;
|
||||||
|
use PhpOffice\PhpSpreadsheet\Style\NumberFormat;
|
||||||
|
|
||||||
|
class PenawaranTenderExport implements WithColumnFormatting, WithHeadings, FromCollection, withMapping
|
||||||
|
{
|
||||||
|
public function collection()
|
||||||
|
{
|
||||||
|
return PenawaranTender::all();
|
||||||
|
}
|
||||||
|
|
||||||
|
public function map($row): array
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
$row->id,
|
||||||
|
$row->code,
|
||||||
|
$row->nama_kjpp_sebelumnya,
|
||||||
|
$row->biaya_kjpp_sebelumnya,
|
||||||
|
$row->tanggal_penilaian_sebelumnya,
|
||||||
|
$row->nomor_registrasi,
|
||||||
|
$row->tujuan_penilaian_kjpp_id,
|
||||||
|
$row->jenis_laporan_id,
|
||||||
|
$row->start_date,
|
||||||
|
$row->end_date,
|
||||||
|
$row->catatan,
|
||||||
|
$row->created_at
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
public function headings(): array
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
'ID',
|
||||||
|
'Nomor Penawaran',
|
||||||
|
'Nama KJPP Sebelumnya',
|
||||||
|
'Biaya KJPP Sebelumnya',
|
||||||
|
'Tanggal Penilaian Sebelumnya',
|
||||||
|
'Nomor Registrasi',
|
||||||
|
'Tujuan Penilaian KJPP ID',
|
||||||
|
'Jenis Laporan ID',
|
||||||
|
'Start Date',
|
||||||
|
'End Date',
|
||||||
|
'Catatan',
|
||||||
|
'Created At'
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
public function columnFormats(): array
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
'A' => NumberFormat::FORMAT_NUMBER,
|
||||||
|
'B' => NumberFormat::FORMAT_NUMBER,
|
||||||
|
'E' => NumberFormat::FORMAT_DATE_DATETIME
|
||||||
|
];
|
||||||
|
}
|
||||||
|
}
|
||||||
46
app/Exports/TujuanPenilaianKJPPExport.php
Normal file
46
app/Exports/TujuanPenilaianKJPPExport.php
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Modules\Lpj\Exports;
|
||||||
|
|
||||||
|
use Maatwebsite\Excel\Concerns\FromCollection;
|
||||||
|
use Maatwebsite\Excel\Concerns\WithColumnFormatting;
|
||||||
|
use Maatwebsite\Excel\Concerns\WithHeadings;
|
||||||
|
use Maatwebsite\Excel\Concerns\WithMapping;
|
||||||
|
use Modules\Lpj\Models\TujuanPenilaianKJPP;
|
||||||
|
use PhpOffice\PhpSpreadsheet\Style\NumberFormat;
|
||||||
|
|
||||||
|
class TujuanPenilaianKJPPExport implements WithColumnFormatting, WithHeadings, FromCollection, withMapping
|
||||||
|
{
|
||||||
|
public function collection()
|
||||||
|
{
|
||||||
|
return TujuanPenilaianKJPP::all();
|
||||||
|
}
|
||||||
|
|
||||||
|
public function map($row): array
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
$row->id,
|
||||||
|
$row->code,
|
||||||
|
$row->name,
|
||||||
|
$row->created_at
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
public function headings(): array
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
'ID',
|
||||||
|
'Code',
|
||||||
|
'Name',
|
||||||
|
'Created At'
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
public function columnFormats(): array
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
'A' => NumberFormat::FORMAT_NUMBER,
|
||||||
|
'D' => NumberFormat::FORMAT_DATE_DATETIME
|
||||||
|
];
|
||||||
|
}
|
||||||
|
}
|
||||||
200
app/Http/Controllers/AuthorizationController.php
Normal file
200
app/Http/Controllers/AuthorizationController.php
Normal file
@@ -0,0 +1,200 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Modules\Lpj\Http\Controllers;
|
||||||
|
|
||||||
|
use App\Http\Controllers\Controller;
|
||||||
|
use Exception;
|
||||||
|
use Illuminate\Http\Request;
|
||||||
|
use Maatwebsite\Excel\Facades\Excel;
|
||||||
|
use Modules\Lpj\Exports\BranchExport;
|
||||||
|
use Modules\Lpj\Http\Requests\BranchRequest;
|
||||||
|
use Illuminate\Support\Facades\DB;
|
||||||
|
|
||||||
|
use Modules\Lpj\Models\Permohonan;
|
||||||
|
|
||||||
|
class AuthorizationController extends Controller
|
||||||
|
{
|
||||||
|
public $user;
|
||||||
|
|
||||||
|
public function index()
|
||||||
|
{// dd('hai');
|
||||||
|
// return view('lpj::branch.index');
|
||||||
|
// $permohonan = Permohonan::find(2);
|
||||||
|
// dd($permohonan->get());
|
||||||
|
return view('lpj::authorization.index');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function store(BranchRequest $request)
|
||||||
|
{
|
||||||
|
$validate = $request->validated();
|
||||||
|
|
||||||
|
if ($validate) {
|
||||||
|
try {
|
||||||
|
// Save to database
|
||||||
|
Branch::create($validate);
|
||||||
|
return redirect()
|
||||||
|
->route('basicdata.branch.index')
|
||||||
|
->with('success', 'Branch created successfully');
|
||||||
|
} catch (Exception $e) {
|
||||||
|
return redirect()
|
||||||
|
->route('basicdata.branch.create')
|
||||||
|
->with('error', 'Failed to create branch');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public function create()
|
||||||
|
{
|
||||||
|
return view('lpj::branch.create');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function edit($id)
|
||||||
|
{
|
||||||
|
$branch = Branch::find($id);
|
||||||
|
return view('lpj::branch.create', compact('branch'));
|
||||||
|
}
|
||||||
|
|
||||||
|
public function update(BranchRequest $request, $id)
|
||||||
|
{
|
||||||
|
$validate = $request->validated();
|
||||||
|
|
||||||
|
if ($validate) {
|
||||||
|
try {
|
||||||
|
// Update in database
|
||||||
|
$branch = Branch::find($id);
|
||||||
|
$branch->update($validate);
|
||||||
|
return redirect()
|
||||||
|
->route('basicdata.branch.index')
|
||||||
|
->with('success', 'Branch updated successfully');
|
||||||
|
} catch (Exception $e) {
|
||||||
|
return redirect()
|
||||||
|
->route('basicdata.branch.edit', $id)
|
||||||
|
->with('error', 'Failed to update branch');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public function destroy($id)
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
// Delete from database
|
||||||
|
$branch = Branch::find($id);
|
||||||
|
$branch->delete();
|
||||||
|
|
||||||
|
echo json_encode(['success' => true, 'message' => 'Branch deleted successfully']);
|
||||||
|
} catch (Exception $e) {
|
||||||
|
echo json_encode(['success' => false, 'message' => 'Failed to delete branch']);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public function dataForDatatables(Request $request)
|
||||||
|
{
|
||||||
|
// if (is_null($this->user) || !$this->user->can('branch.view')) {
|
||||||
|
//abort(403, 'Sorry! You are not allowed to view users.');
|
||||||
|
// }
|
||||||
|
|
||||||
|
// Retrieve data from the database
|
||||||
|
$query = Permohonan::query();
|
||||||
|
// Get the total count of records
|
||||||
|
$totalRecords = $query->count();
|
||||||
|
|
||||||
|
// Apply pagination if provided
|
||||||
|
if ($request->has('page') && $request->has('size')) {
|
||||||
|
$page = $request->get('page');
|
||||||
|
$size = $request->get('size');
|
||||||
|
$offset = ($page - 1) * $size; // Calculate the offset
|
||||||
|
|
||||||
|
$query->skip($offset)->take($size);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Get the filtered count of records
|
||||||
|
$filteredRecords = $query->count();
|
||||||
|
|
||||||
|
// Get the data for the current page
|
||||||
|
// $data = $query->get();
|
||||||
|
$data = $query->select('permohonan.id', 'permohonan.nomor_registrasi'
|
||||||
|
, 'branches.name AS branche_name'
|
||||||
|
, 'debitures.name AS debiture_name'
|
||||||
|
// , 'tujuan_penilaian.name AS debiture_name'
|
||||||
|
, DB::raw("CONCAT(tujuan_penilaian.code,' - ', tujuan_penilaian.name) AS nama_tujuan_penilaian")
|
||||||
|
, 'users.name AS account_officer')
|
||||||
|
->leftJoin('branches', 'branches.id', '=', 'permohonan.branch_id')
|
||||||
|
->leftJoin('debitures', 'debitures.id', '=', 'permohonan.debiture_id')
|
||||||
|
->leftJoin('tujuan_penilaian', 'tujuan_penilaian.id', '=', 'permohonan.tujuan_penilaian_id')
|
||||||
|
->leftJoin('users', 'users.id', '=', 'permohonan.user_id')
|
||||||
|
->get();
|
||||||
|
// Calculate the page count
|
||||||
|
$pageCount = ceil($totalRecords / $request->get('size'));
|
||||||
|
|
||||||
|
// Calculate the current page number
|
||||||
|
$currentPage = 0 + 1;
|
||||||
|
|
||||||
|
// Return the response data as a JSON object
|
||||||
|
return response()->json([
|
||||||
|
'draw' => $request->get('draw'),
|
||||||
|
'recordsTotal' => $totalRecords,
|
||||||
|
'recordsFiltered' => $filteredRecords,
|
||||||
|
'pageCount' => $pageCount,
|
||||||
|
'page' => $currentPage,
|
||||||
|
'totalCount' => $totalRecords,
|
||||||
|
'data' => $data,
|
||||||
|
]);
|
||||||
|
/*
|
||||||
|
// Apply search filter if provided
|
||||||
|
if ($request->has('search') && !empty($request->get('search'))) {
|
||||||
|
$search = $request->get('search');
|
||||||
|
$query->where(function ($q) use ($search) {
|
||||||
|
$q->where('code', 'LIKE', "%$search%");
|
||||||
|
$q->orWhere('name', 'LIKE', "%$search%");
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// Apply sorting if provided
|
||||||
|
if ($request->has('sortOrder') && !empty($request->get('sortOrder'))) {
|
||||||
|
$order = $request->get('sortOrder');
|
||||||
|
$column = $request->get('sortField');
|
||||||
|
$query->orderBy($column, $order);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Get the total count of records
|
||||||
|
$totalRecords = $query->count();
|
||||||
|
|
||||||
|
// Apply pagination if provided
|
||||||
|
if ($request->has('page') && $request->has('size')) {
|
||||||
|
$page = $request->get('page');
|
||||||
|
$size = $request->get('size');
|
||||||
|
$offset = ($page - 1) * $size; // Calculate the offset
|
||||||
|
|
||||||
|
$query->skip($offset)->take($size);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Get the filtered count of records
|
||||||
|
$filteredRecords = $query->count();
|
||||||
|
|
||||||
|
// Get the data for the current page
|
||||||
|
$data = $query->get();
|
||||||
|
|
||||||
|
// Calculate the page count
|
||||||
|
$pageCount = ceil($totalRecords / $request->get('size'));
|
||||||
|
|
||||||
|
// Calculate the current page number
|
||||||
|
$currentPage = 0 + 1;
|
||||||
|
|
||||||
|
// Return the response data as a JSON object
|
||||||
|
return response()->json([
|
||||||
|
'draw' => $request->get('draw'),
|
||||||
|
'recordsTotal' => $totalRecords,
|
||||||
|
'recordsFiltered' => $filteredRecords,
|
||||||
|
'pageCount' => $pageCount,
|
||||||
|
'page' => $currentPage,
|
||||||
|
'totalCount' => $totalRecords,
|
||||||
|
'data' => $data,
|
||||||
|
]);
|
||||||
|
*/
|
||||||
|
}
|
||||||
|
|
||||||
|
public function export()
|
||||||
|
{
|
||||||
|
return Excel::download(new BranchExport, 'branch.xlsx');
|
||||||
|
}
|
||||||
|
}
|
||||||
174
app/Http/Controllers/JenisLaporanController.php
Normal file
174
app/Http/Controllers/JenisLaporanController.php
Normal file
@@ -0,0 +1,174 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Modules\Lpj\Http\Controllers;
|
||||||
|
|
||||||
|
use Illuminate\Http\Request;
|
||||||
|
use App\Http\Controllers\Controller;
|
||||||
|
use Maatwebsite\Excel\Facades\Excel;
|
||||||
|
use Modules\Lpj\Models\JenisLaporan;
|
||||||
|
use Modules\Lpj\Exports\JenisLaporanExport;
|
||||||
|
use Modules\Lpj\Http\Requests\JenisLaporanRequest;
|
||||||
|
use Throwable;
|
||||||
|
|
||||||
|
class JenisLaporanController extends Controller
|
||||||
|
{
|
||||||
|
public $user;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Display a listing of the resource.
|
||||||
|
*/
|
||||||
|
public function index()
|
||||||
|
{
|
||||||
|
return view('lpj::jenis_laporan.index');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Show the form for creating a new resource.
|
||||||
|
*/
|
||||||
|
public function create()
|
||||||
|
{
|
||||||
|
return view('lpj::jenis_laporan.create');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Store a newly created resource in storage.
|
||||||
|
*/
|
||||||
|
public function store(JenisLaporanRequest $request)
|
||||||
|
{
|
||||||
|
$validate = $request->validated();
|
||||||
|
|
||||||
|
if ($validate) {
|
||||||
|
try {
|
||||||
|
JenisLaporan::create($validate);
|
||||||
|
return redirect()
|
||||||
|
->route('basicdata.jenis_laporan.index')
|
||||||
|
->with('success', 'Jenis Laporan created successfully');
|
||||||
|
} catch (Throwable $e) {
|
||||||
|
return redirect()
|
||||||
|
->route('basicdata.jenis_laporan.create')
|
||||||
|
->with('success', 'Failed to create Jenis Laporan: ' . $e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Show the specified resource.
|
||||||
|
*/
|
||||||
|
public function show($id)
|
||||||
|
{
|
||||||
|
// return view('lpj::show');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Show the form for editing the specified resource.
|
||||||
|
*/
|
||||||
|
public function edit($id)
|
||||||
|
{
|
||||||
|
$jenisLaporan = JenisLaporan::find($id);
|
||||||
|
return view('lpj::jenis_laporan.create', compact('jenisLaporan'));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update the specified resource in storage.
|
||||||
|
*/
|
||||||
|
public function update(JenisLaporanRequest $request, $id)
|
||||||
|
{
|
||||||
|
$validate = $request->validated();
|
||||||
|
|
||||||
|
if ($validate) {
|
||||||
|
try {
|
||||||
|
$jenisLaporan = JenisLaporan::find($id);
|
||||||
|
$jenisLaporan->update($validate);
|
||||||
|
return redirect()
|
||||||
|
->route('basicdata.jenis_laporan.index')
|
||||||
|
->with('success', 'Jenis Laporan updated successfully');
|
||||||
|
} catch (Throwable $e) {
|
||||||
|
return redirect()
|
||||||
|
->route('basicdata.jenis_laporan.edit', $id)
|
||||||
|
->with('success', 'Failed to update Jenis Laporan: ' . $e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove the specified resource from storage.
|
||||||
|
*/
|
||||||
|
public function destroy($id)
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
// Delete from database
|
||||||
|
$jenisLaporan = JenisLaporan::find($id);
|
||||||
|
$jenisLaporan->delete();
|
||||||
|
|
||||||
|
echo json_encode(['success' => true, 'message' => 'Jenis Laporan deleted successfully']);
|
||||||
|
} catch (Throwable $e) {
|
||||||
|
echo json_encode(['success' => false, 'message' => 'Failed to delete jenis Laporan']);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public function dataForDatatables(Request $request)
|
||||||
|
{
|
||||||
|
if (is_null($this->user) || !$this->user->can('jenis_jaminan.view')) {
|
||||||
|
//abort(403, 'Sorry! You are not allowed to view users.');
|
||||||
|
}
|
||||||
|
|
||||||
|
// Retrieve data from the database
|
||||||
|
$query = JenisLaporan::query();
|
||||||
|
|
||||||
|
// Apply search filter if provided
|
||||||
|
if ($request->has('search') && !empty($request->get('search'))) {
|
||||||
|
$search = $request->get('search');
|
||||||
|
$query->where(function ($q) use ($search) {
|
||||||
|
$q->where('code', 'LIKE', "%$search%");
|
||||||
|
$q->orWhere('name', 'LIKE', "%$search%");
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// Apply sorting if provided
|
||||||
|
if ($request->has('sortOrder') && !empty($request->get('sortOrder'))) {
|
||||||
|
$order = $request->get('sortOrder');
|
||||||
|
$column = $request->get('sortField');
|
||||||
|
$query->orderBy($column, $order);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Get the total count of records
|
||||||
|
$totalRecords = $query->count();
|
||||||
|
|
||||||
|
// Apply pagination if provided
|
||||||
|
if ($request->has('page') && $request->has('size')) {
|
||||||
|
$page = $request->get('page');
|
||||||
|
$size = $request->get('size');
|
||||||
|
$offset = ($page - 1) * $size; // Calculate the offset
|
||||||
|
|
||||||
|
$query->skip($offset)->take($size);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Get the filtered count of records
|
||||||
|
$filteredRecords = $query->count();
|
||||||
|
|
||||||
|
// Get the data for the current page
|
||||||
|
$data = $query->get();
|
||||||
|
|
||||||
|
// Calculate the page count
|
||||||
|
$pageCount = ceil($totalRecords / $request->get('size'));
|
||||||
|
|
||||||
|
// Calculate the current page number
|
||||||
|
$currentPage = 0 + 1;
|
||||||
|
|
||||||
|
// Return the response data as a JSON object
|
||||||
|
return response()->json([
|
||||||
|
'draw' => $request->get('draw'),
|
||||||
|
'recordsTotal' => $totalRecords,
|
||||||
|
'recordsFiltered' => $filteredRecords,
|
||||||
|
'pageCount' => $pageCount,
|
||||||
|
'page' => $currentPage,
|
||||||
|
'totalCount' => $totalRecords,
|
||||||
|
'data' => $data,
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function export()
|
||||||
|
{
|
||||||
|
return Excel::download(new JenisLaporanExport, 'jenis_laporan.xlsx');
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -40,7 +40,15 @@ class KJPPController extends Controller
|
|||||||
$jenis_aset = JenisJaminan::all();
|
$jenis_aset = JenisJaminan::all();
|
||||||
$provinces = Province::all();
|
$provinces = Province::all();
|
||||||
|
|
||||||
return view('lpj::kjpp.create', compact('branch', 'ijin_usaha', 'jenis_aset', 'provinces'));
|
// Generate KJPP Number
|
||||||
|
$lastKjpp = KJPP::orderBy('code', 'desc')->first();
|
||||||
|
$nextNumber = $lastKjpp ? intval(substr($lastKjpp->code, 1, 6)) + 1 : 1;
|
||||||
|
$kjppNumber = 'K' . str_pad($nextNumber, 6, '0', STR_PAD_LEFT);
|
||||||
|
|
||||||
|
// Combine KJPP number with branch code
|
||||||
|
$fullKjppNumber = $kjppNumber;
|
||||||
|
|
||||||
|
return view('lpj::kjpp.create', compact('branch', 'ijin_usaha', 'jenis_aset', 'provinces', 'fullKjppNumber'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -62,6 +70,9 @@ class KJPPController extends Controller
|
|||||||
Storage::copy('public/test/default.pdf', 'public/uploads_pdf/' . $filename);
|
Storage::copy('public/test/default.pdf', 'public/uploads_pdf/' . $filename);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$validated['ijin_usaha_id'] = json_encode($request->input('ijin_usaha_id'));
|
||||||
|
$validated['jenis_aset_id'] = json_encode($request->input('jenis_aset_id'));
|
||||||
|
|
||||||
// Tambahkan nama file ke data yang divalidasi
|
// Tambahkan nama file ke data yang divalidasi
|
||||||
$validated['attachment'] = $filename;
|
$validated['attachment'] = $filename;
|
||||||
|
|
||||||
@@ -127,7 +138,10 @@ class KJPPController extends Controller
|
|||||||
if ($file !== null) {
|
if ($file !== null) {
|
||||||
// Jika ada file dari database maka hapus file yang lama ke file yang baru
|
// Jika ada file dari database maka hapus file yang lama ke file yang baru
|
||||||
$kjpp = KJPP::find($id);
|
$kjpp = KJPP::find($id);
|
||||||
// Storage::delete('public/uploads_pdf/' . $kjpp->attachment);
|
// Jika filenya ada default.pdf jangan dihapus
|
||||||
|
if ($kjpp->attachment !== 'default.pdf') {
|
||||||
|
Storage::delete('public/uploads_pdf/' . $kjpp->attachment);
|
||||||
|
}
|
||||||
// Simpan file yang diunggah
|
// Simpan file yang diunggah
|
||||||
$file->storeAs('public/uploads_pdf', $filename);
|
$file->storeAs('public/uploads_pdf', $filename);
|
||||||
$validated['attachment'] = $filename;
|
$validated['attachment'] = $filename;
|
||||||
|
|||||||
271
app/Http/Controllers/RegistrasiController.php
Normal file
271
app/Http/Controllers/RegistrasiController.php
Normal file
@@ -0,0 +1,271 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Modules\Lpj\Http\Controllers;
|
||||||
|
|
||||||
|
use App\Http\Controllers\Controller;
|
||||||
|
use Exception;
|
||||||
|
use Illuminate\Http\Request;
|
||||||
|
use Maatwebsite\Excel\Facades\Excel;
|
||||||
|
// use Modules\Location\Models\City;
|
||||||
|
// use Modules\Location\Models\District;
|
||||||
|
// use Modules\Location\Models\Province;
|
||||||
|
// use Modules\Location\Models\Village;
|
||||||
|
// use Modules\Lpj\Exports\DebitureExport;
|
||||||
|
// use Modules\Lpj\Http\Requests\DebitureRequest;
|
||||||
|
// use Modules\Lpj\Http\Requests\DokumenJaminanRequest;
|
||||||
|
// use Modules\Lpj\Models\Branch;
|
||||||
|
// use Modules\Lpj\Models\Debiture;
|
||||||
|
// use Modules\Lpj\Models\DokumenJaminan;
|
||||||
|
// use Modules\Lpj\Models\JenisJaminan;
|
||||||
|
// use Modules\Lpj\Models\JenisLegalitasJaminan;
|
||||||
|
// use Modules\Lpj\Models\PemilikJaminan;
|
||||||
|
use Modules\Lpj\Models\Permohonan;
|
||||||
|
use Modules\Lpj\Models\JenisPenilaian;
|
||||||
|
use Modules\Lpj\Models\Regions;
|
||||||
|
use Illuminate\Http\JsonResponse;
|
||||||
|
use Illuminate\Support\Facades\Validator;
|
||||||
|
use Illuminate\Support\Facades\Auth;
|
||||||
|
|
||||||
|
|
||||||
|
class RegistrasiController extends Controller
|
||||||
|
{
|
||||||
|
public $user;
|
||||||
|
|
||||||
|
public function index()
|
||||||
|
{
|
||||||
|
return view('lpj::registrasi.index');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function dataForDatatables(Request $request)
|
||||||
|
{
|
||||||
|
if (is_null($this->user) || !$this->user->can('debitur.view')) {
|
||||||
|
//abort(403, 'Sorry! You are not allowed to view users.');
|
||||||
|
}
|
||||||
|
|
||||||
|
// Retrieve data from the database
|
||||||
|
$query = Permohonan::query()->where('status','=','preregister');
|
||||||
|
|
||||||
|
// Apply search filter if provided
|
||||||
|
if ($request->has('search') && !empty($request->get('search'))) {
|
||||||
|
$search = $request->get('search');
|
||||||
|
$query->where(function ($q) use ($search) {
|
||||||
|
$q->where('nomor_registrasi', 'LIKE', '%' . $search . '%');
|
||||||
|
$q->orWhere('tanggal_permohonan', 'LIKE', '%' . $search . '%');
|
||||||
|
$q->orWhereRelation('user', 'name', 'LIKE', '%' . $search . '%');
|
||||||
|
$q->orWhereRelation('debiture', 'name', 'LIKE', '%' . $search . '%');
|
||||||
|
$q->orWhereRelation('tujuanPenilaian', 'name', 'LIKE', '%' . $search . '%');
|
||||||
|
$q->orWhereRelation('branch', 'name', 'LIKE', '%' . $search . '%');
|
||||||
|
$q->orWhere('status', 'LIKE', '%' . $search . '%');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// Apply sorting if provided
|
||||||
|
if ($request->has('sortOrder') && !empty($request->get('sortOrder'))) {
|
||||||
|
$order = $request->get('sortOrder');
|
||||||
|
$column = $request->get('sortField');
|
||||||
|
$query->orderBy($column, $order);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Get the total count of records
|
||||||
|
$totalRecords = $query->count();
|
||||||
|
|
||||||
|
// Apply pagination if provided
|
||||||
|
if ($request->has('page') && $request->has('size')) {
|
||||||
|
$page = $request->get('page');
|
||||||
|
$size = $request->get('size');
|
||||||
|
$offset = ($page - 1) * $size; // Calculate the offset
|
||||||
|
|
||||||
|
$query->skip($offset)->take($size);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Get the filtered count of records
|
||||||
|
$filteredRecords = $query->count();
|
||||||
|
|
||||||
|
// Get the data for the current page
|
||||||
|
$data = $query->with(['user', 'debiture', 'branch', 'tujuanPenilaian'])->get();
|
||||||
|
|
||||||
|
// Calculate the page count
|
||||||
|
$pageCount = ceil($totalRecords / $request->get('size'));
|
||||||
|
|
||||||
|
// Calculate the current page number
|
||||||
|
$currentPage = 0 + 1;
|
||||||
|
|
||||||
|
// Return the response data as a JSON object
|
||||||
|
return response()->json([
|
||||||
|
'draw' => $request->get('draw'),
|
||||||
|
'recordsTotal' => $totalRecords,
|
||||||
|
'recordsFiltered' => $filteredRecords,
|
||||||
|
'pageCount' => $pageCount,
|
||||||
|
'page' => $currentPage,
|
||||||
|
'totalCount' => $totalRecords,
|
||||||
|
'data' => $data,
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function edit($id)
|
||||||
|
{
|
||||||
|
return view('lpj::registrasi.edit', compact('id'));
|
||||||
|
}
|
||||||
|
|
||||||
|
public function setData(Request $request): JsonResponse
|
||||||
|
{
|
||||||
|
$data = array();
|
||||||
|
$datas = array();
|
||||||
|
|
||||||
|
if (request()->ajax()) {
|
||||||
|
$id = $request->id;
|
||||||
|
$datas = Permohonan::findOrFail($id);
|
||||||
|
$data['status'] = 'success';
|
||||||
|
if ($datas) {
|
||||||
|
$jenisPenilaians=null;
|
||||||
|
$regions=null;
|
||||||
|
$regions=Regions::pluck('name', 'id');
|
||||||
|
$jenisPenilaians=JenisPenilaian::pluck('name', 'id');
|
||||||
|
|
||||||
|
$data['regions'] = $regions;
|
||||||
|
$data['jenisPenilaians'] = $jenisPenilaians;
|
||||||
|
$data['datas'] = $datas;
|
||||||
|
$data['message'] = 'data successfully found';
|
||||||
|
} else {
|
||||||
|
$data['datas'] = null;
|
||||||
|
$data['message'] = 'data not found';
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
$data['status'] = 'error';
|
||||||
|
$data['message'] = 'no ajax request';
|
||||||
|
}
|
||||||
|
|
||||||
|
return response()->json($data);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function update(Request $request, $id): JsonResponse
|
||||||
|
{
|
||||||
|
// init
|
||||||
|
$data = array();
|
||||||
|
$dataku = array();
|
||||||
|
$tindakan = null;
|
||||||
|
if (request()->ajax()) {
|
||||||
|
$validator = RegistrasiController::rulesEditnya($request, $id);
|
||||||
|
|
||||||
|
if ($validator['fails']) {
|
||||||
|
$data['message'] = $validator['errors'];
|
||||||
|
$data['status'] = 'error';
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
|
||||||
|
$tindakan=$request->tindakan;
|
||||||
|
$dataku = ['registrasi_by' => Auth::id(),
|
||||||
|
'registrasi_at' => now()
|
||||||
|
];
|
||||||
|
|
||||||
|
if($tindakan==0)
|
||||||
|
{
|
||||||
|
$dataku['jenis_penilaian_id'] =$request->jenis_penilaian;
|
||||||
|
$dataku['region_id'] =$request->region;
|
||||||
|
$dataku['status'] = 'registered';
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$dataku['registrasi_catatan'] =$request->catatan;
|
||||||
|
$dataku['status'] = 'revisi';
|
||||||
|
}
|
||||||
|
|
||||||
|
$data['dataku'] =$dataku;
|
||||||
|
|
||||||
|
$modal = Permohonan::find($id);
|
||||||
|
|
||||||
|
$modal->update($dataku);
|
||||||
|
//
|
||||||
|
$data['status'] = 'success';
|
||||||
|
$data['message'] = 'Regitrasi '.$modal->nomor_registrasi.' successfully';
|
||||||
|
} catch (Exception $e) {
|
||||||
|
|
||||||
|
$data['status'] = 'error';
|
||||||
|
$data['message'] = 'Jenis Fasilitas Kredit updated failed.';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
$data['status'] = 'error';
|
||||||
|
$data['message'] = 'no ajax request';
|
||||||
|
}
|
||||||
|
|
||||||
|
return response()->json($data);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public function rulesEditnya($request, $id)
|
||||||
|
{
|
||||||
|
$tindakan=null;
|
||||||
|
$jenis_penilaian=null;
|
||||||
|
$validate_catatan='';
|
||||||
|
$tindakan=$request->tindakan;
|
||||||
|
$jenis_penilaian=$request->jenis_penilaian;
|
||||||
|
|
||||||
|
$validateIt = [
|
||||||
|
// 'name' diambil dari definisi parameter yang di kirim pada POST Data
|
||||||
|
'tindakan' => 'required',
|
||||||
|
];
|
||||||
|
|
||||||
|
$messageIt = [
|
||||||
|
'tindakan.required' => 'Silahkan pilih Tindakan'
|
||||||
|
];
|
||||||
|
|
||||||
|
if($tindakan==0)
|
||||||
|
{
|
||||||
|
$validateIt['jenis_penilaian'] = ['required'];
|
||||||
|
$messageIt ['jenis_penilaian.required']= 'Silahkan pilih Jenis Penilaian';
|
||||||
|
|
||||||
|
// INTERNAL
|
||||||
|
if(1==$jenis_penilaian)
|
||||||
|
{
|
||||||
|
$validateIt['region'] = ['required'];
|
||||||
|
$messageIt ['region.required']= 'Silahkan pilih Region';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
elseif($tindakan==1)
|
||||||
|
{
|
||||||
|
$validateIt['catatan'] = ['required'];
|
||||||
|
$messageIt ['catatan.required']= 'Silahkan isi Catatan';
|
||||||
|
}
|
||||||
|
|
||||||
|
$validator = Validator::make($request->all(), $validateIt, $messageIt);
|
||||||
|
|
||||||
|
$data['fails'] = $validator->fails();
|
||||||
|
$data['errors'] = $validator->errors();
|
||||||
|
|
||||||
|
return $data;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function show($id)
|
||||||
|
{
|
||||||
|
$permohonan = Permohonan::find($id);
|
||||||
|
return view('lpj::registrasi.show', compact('id','permohonan'));
|
||||||
|
}
|
||||||
|
|
||||||
|
public function showData(Request $request): JsonResponse
|
||||||
|
{
|
||||||
|
$data = array();
|
||||||
|
$datas = array();
|
||||||
|
|
||||||
|
if (request()->ajax()) {
|
||||||
|
$id = $request->id;
|
||||||
|
$datas = Permohonan::findOrFail($id);
|
||||||
|
$data['status'] = 'success';
|
||||||
|
if ($datas) {
|
||||||
|
$data['datas'] = $datas;
|
||||||
|
$data['message'] = 'data successfully found';
|
||||||
|
} else {
|
||||||
|
$data['datas'] = null;
|
||||||
|
$data['message'] = 'data not found';
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
$data['status'] = 'error';
|
||||||
|
$data['message'] = 'no ajax request';
|
||||||
|
}
|
||||||
|
|
||||||
|
return response()->json($data);
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -2,18 +2,19 @@
|
|||||||
|
|
||||||
namespace Modules\Lpj\Http\Controllers;
|
namespace Modules\Lpj\Http\Controllers;
|
||||||
|
|
||||||
use App\Http\Controllers\Controller;
|
use Exception;
|
||||||
use Illuminate\Http\RedirectResponse;
|
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use Illuminate\Http\Response;
|
use Illuminate\Http\Response;
|
||||||
use Modules\Lpj\Models\Regions;
|
|
||||||
use Modules\Usermanagement\Models\User;
|
|
||||||
use Modules\Lpj\Models\Teams;
|
use Modules\Lpj\Models\Teams;
|
||||||
use Modules\Lpj\Models\TeamsUsers;
|
use Modules\Lpj\Models\Regions;
|
||||||
use Modules\Lpj\Http\Requests\TeamsRequest;
|
|
||||||
use Illuminate\Support\Facades\DB;
|
use Illuminate\Support\Facades\DB;
|
||||||
use Modules\Lpj\Exports\TeamPenilaianExport;
|
use Modules\Lpj\Models\TeamsUsers;
|
||||||
|
use App\Http\Controllers\Controller;
|
||||||
use Maatwebsite\Excel\Facades\Excel;
|
use Maatwebsite\Excel\Facades\Excel;
|
||||||
|
use Illuminate\Http\RedirectResponse;
|
||||||
|
use Modules\Usermanagement\Models\User;
|
||||||
|
use Modules\Lpj\Http\Requests\TeamsRequest;
|
||||||
|
use Modules\Lpj\Exports\TeamPenilaianExport;
|
||||||
|
|
||||||
class TeamsController extends Controller
|
class TeamsController extends Controller
|
||||||
{
|
{
|
||||||
@@ -39,8 +40,8 @@ class TeamsController extends Controller
|
|||||||
// cek user apakah sudah ada di tabel teams_users
|
// cek user apakah sudah ada di tabel teams_users
|
||||||
$userTeam = TeamsUsers::pluck('user_id')->toArray();
|
$userTeam = TeamsUsers::pluck('user_id')->toArray();
|
||||||
$user = User::whereNotIn('id', $userTeam)
|
$user = User::whereNotIn('id', $userTeam)
|
||||||
->with('roles')
|
->with('roles')
|
||||||
->get();
|
->get();
|
||||||
|
|
||||||
return view('lpj::teams.form', compact('region', 'user'));
|
return view('lpj::teams.form', compact('region', 'user'));
|
||||||
}
|
}
|
||||||
@@ -69,15 +70,15 @@ class TeamsController extends Controller
|
|||||||
DB::commit();
|
DB::commit();
|
||||||
|
|
||||||
return redirect()
|
return redirect()
|
||||||
->route('basicdata.teams.index')
|
->route('basicdata.teams.index')
|
||||||
->with('success', 'Data saved successfully. ');
|
->with('success', 'Data saved successfully. ');
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
|
|
||||||
DB::rollBack();
|
DB::rollBack();
|
||||||
|
|
||||||
return redirect()
|
return redirect()
|
||||||
->route('basicdata.teams.create')
|
->route('basicdata.teams.create')
|
||||||
->with('error', 'Failed to save data. ');
|
->with('error', 'Failed to save data. ');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -100,8 +101,8 @@ class TeamsController extends Controller
|
|||||||
$region = Regions::all();
|
$region = Regions::all();
|
||||||
$usedUsers = TeamsUsers::where('teams_id', '!=', $id)->pluck('user_id')->toArray();
|
$usedUsers = TeamsUsers::where('teams_id', '!=', $id)->pluck('user_id')->toArray();
|
||||||
$user = User::whereNotIn('id', $usedUsers)
|
$user = User::whereNotIn('id', $usedUsers)
|
||||||
->with('roles')
|
->with('roles')
|
||||||
->get();
|
->get();
|
||||||
// Ambil user yang sudah ada di tim ini
|
// Ambil user yang sudah ada di tim ini
|
||||||
$selectedUsers = $teams->teamsUsers->pluck('user_id')->toArray();
|
$selectedUsers = $teams->teamsUsers->pluck('user_id')->toArray();
|
||||||
|
|
||||||
@@ -136,15 +137,15 @@ class TeamsController extends Controller
|
|||||||
DB::commit();
|
DB::commit();
|
||||||
|
|
||||||
return redirect()
|
return redirect()
|
||||||
->route('basicdata.teams.index')
|
->route('basicdata.teams.index')
|
||||||
->with('success', 'Data updated successfully. ');
|
->with('success', 'Data updated successfully. ');
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
|
|
||||||
DB::rollBack();
|
DB::rollBack();
|
||||||
|
|
||||||
return redirect()
|
return redirect()
|
||||||
->route('basicdata.teams.create')
|
->route('basicdata.teams.create')
|
||||||
->with('error', 'Failed to update data. ');
|
->with('error', 'Failed to update data. ');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -165,7 +166,6 @@ class TeamsController extends Controller
|
|||||||
DB::commit();
|
DB::commit();
|
||||||
|
|
||||||
echo json_encode(['success' => true, 'message' => 'Team has been deleted successfully']);
|
echo json_encode(['success' => true, 'message' => 'Team has been deleted successfully']);
|
||||||
|
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
DB::rollBack();
|
DB::rollBack();
|
||||||
echo json_encode(['success' => false, 'message' => 'Failed to delete Team']);
|
echo json_encode(['success' => false, 'message' => 'Failed to delete Team']);
|
||||||
@@ -190,8 +190,8 @@ class TeamsController extends Controller
|
|||||||
$search = $request->get('search');
|
$search = $request->get('search');
|
||||||
$query->where(function ($q) use ($search) {
|
$query->where(function ($q) use ($search) {
|
||||||
$q->where('teams.name', 'LIKE', "%$search%")
|
$q->where('teams.name', 'LIKE', "%$search%")
|
||||||
->orWhere('regions.name', 'LIKE', "%$search%")
|
->orWhere('regions.name', 'LIKE', "%$search%")
|
||||||
->orWhere('users.name', 'LIKE', "%$search%");
|
->orWhere('users.name', 'LIKE', "%$search%");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -255,6 +255,4 @@ class TeamsController extends Controller
|
|||||||
{
|
{
|
||||||
return Excel::download(new TeamPenilaianExport(), 'team-penilai.xlsx');
|
return Excel::download(new TeamPenilaianExport(), 'team-penilai.xlsx');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,14 +2,24 @@
|
|||||||
|
|
||||||
namespace Modules\Lpj\Http\Controllers;
|
namespace Modules\Lpj\Http\Controllers;
|
||||||
|
|
||||||
use App\Http\Controllers\Controller;
|
|
||||||
use Illuminate\Http\RedirectResponse;
|
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use Illuminate\Http\Response;
|
use Illuminate\Http\Response;
|
||||||
use Modules\Lpj\Models\Penawaran;
|
use Modules\Lpj\Models\Penawaran;
|
||||||
|
use App\Http\Controllers\Controller;
|
||||||
|
use Maatwebsite\Excel\Facades\Excel;
|
||||||
|
use Modules\Lpj\Models\PenawaranTender;
|
||||||
|
use Modules\Lpj\Exports\PenawaranTenderExport;
|
||||||
|
use Modules\Lpj\Http\Requests\TenderPenawaranRequest;
|
||||||
|
use Modules\Lpj\Models\JenisLaporan;
|
||||||
|
use Modules\Lpj\Models\KJPP;
|
||||||
|
use Modules\Lpj\Models\Permohonan;
|
||||||
|
use Modules\Lpj\Models\StatusPermohonan;
|
||||||
|
use Modules\Lpj\Models\TujuanPenilaianKJPP;
|
||||||
|
|
||||||
class TenderController extends Controller
|
class TenderController extends Controller
|
||||||
{
|
{
|
||||||
|
public $user;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Display a listing of the resource.
|
* Display a listing of the resource.
|
||||||
*/
|
*/
|
||||||
@@ -21,33 +31,44 @@ class TenderController extends Controller
|
|||||||
/**
|
/**
|
||||||
* Show the form for creating a new resource.
|
* Show the form for creating a new resource.
|
||||||
*/
|
*/
|
||||||
public function penawaran_create()
|
public function penawaran_create($id)
|
||||||
{
|
{
|
||||||
return view('lpj::penawaran/create');
|
$penawaran = PenawaranTender::find($id);
|
||||||
|
|
||||||
|
$status = StatusPermohonan::all();
|
||||||
|
$tujuan_penilaian_kjpp = TujuanPenilaianKJPP::all();
|
||||||
|
$jenis_laporan = JenisLaporan::all();
|
||||||
|
$kjpp = KJPP::all();
|
||||||
|
|
||||||
|
return view('lpj::penawaran/create', compact('status', 'tujuan_penilaian_kjpp', 'jenis_laporan', 'kjpp', 'penawaran', 'id'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Store a newly created resource in storage.
|
* Store a newly created resource in storage.
|
||||||
*/
|
*/
|
||||||
public function penawaran_store(Request $request): RedirectResponse
|
public function penawaran_store(TenderPenawaranRequest $request, $id)
|
||||||
{
|
{
|
||||||
// $validated = $request->validate([
|
$validated = $request->validated();
|
||||||
// 'nama_kjpp_sebelumnya' => 'required|string',
|
|
||||||
// 'biaya_kjpp_sebelumnya' => 'required|numeric',
|
|
||||||
// 'tgl_penilaian_sebelumnya' => 'required|date',
|
|
||||||
// 'nama_kjpp_1' => 'required|exists:kjpps,id',
|
|
||||||
// 'nama_kjpp_2' => 'required|exists:kjpps,id',
|
|
||||||
// 'nama_kjpp_3' => 'required|exists:kjpps,id',
|
|
||||||
// 'data_jaminan_legalitas' => 'required|string',
|
|
||||||
// 'tujuan_penilaian' => 'required|in:Penjaminan Hutang,Lelang,Revaluasi Aset',
|
|
||||||
// 'jenis_laporan' => 'required|in:Short report,Full report',
|
|
||||||
// 'batas_waktu' => 'required|date',
|
|
||||||
// 'catatan' => 'nullable|string'
|
|
||||||
// ]);
|
|
||||||
|
|
||||||
// Penawaran::create($validated);
|
if ($validated) {
|
||||||
|
$penawaran = PenawaranTender::find($id);
|
||||||
|
|
||||||
// return redirect()->back()->with('success', 'Data berhasil disimpan!');
|
$validated['nomor_registrasi'] = $penawaran->nomor_registrasi;
|
||||||
|
|
||||||
|
$validated['nama_kjpp_sebelumnya'] = json_encode($request->input('nama_kjpp_sebelumnya'));
|
||||||
|
|
||||||
|
dd($validated);
|
||||||
|
|
||||||
|
PenawaranTender::create($validated);
|
||||||
|
|
||||||
|
return redirect()
|
||||||
|
->route('tender.penawaran.index')
|
||||||
|
->with('success', 'Data Penawaran created successfully');
|
||||||
|
} else {
|
||||||
|
return redirect()
|
||||||
|
->route('tender.penawaran.createPenawaran', $id)
|
||||||
|
->with('error', 'Validation failed');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -55,7 +76,8 @@ class TenderController extends Controller
|
|||||||
*/
|
*/
|
||||||
public function penawaran_show($id)
|
public function penawaran_show($id)
|
||||||
{
|
{
|
||||||
return view('lpj::show');
|
$penawaran = PenawaranTender::find($id);
|
||||||
|
return view('lpj::penawaran.show', compact('id', 'penawaran'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -69,7 +91,7 @@ class TenderController extends Controller
|
|||||||
/**
|
/**
|
||||||
* Update the specified resource in storage.
|
* Update the specified resource in storage.
|
||||||
*/
|
*/
|
||||||
public function update(Request $request, $id): RedirectResponse
|
public function update(Request $request, $id)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
@@ -82,6 +104,73 @@ class TenderController extends Controller
|
|||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function datatablesPenawaran(Request $request)
|
||||||
|
{
|
||||||
|
if (is_null($this->user) || !$this->user->can('penawaran.view')) {
|
||||||
|
//abort(403, 'Sorry! You are not allowed to view users.');
|
||||||
|
}
|
||||||
|
|
||||||
|
// Retrieve data from the database
|
||||||
|
$query = PenawaranTender::query();
|
||||||
|
|
||||||
|
// Apply search filter if provided
|
||||||
|
if ($request->has('search') && !empty($request->get('search'))) {
|
||||||
|
$search = $request->get('search');
|
||||||
|
$query->where(function ($q) use ($search) {
|
||||||
|
$q->where('code', 'LIKE', "%$search%");
|
||||||
|
$q->orWhere('nama_kjpp_sebelumnya', 'LIKE', "%$search%");
|
||||||
|
$q->orWhere('tanggal_penilaian_sebelumnya', 'LIKE', "%$search%");
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// Apply sorting if provided
|
||||||
|
if ($request->has('sortOrder') && !empty($request->get('sortOrder'))) {
|
||||||
|
$order = $request->get('sortOrder');
|
||||||
|
$column = $request->get('sortField');
|
||||||
|
$query->orderBy($column, $order);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Get the total count of records
|
||||||
|
$totalRecords = $query->count();
|
||||||
|
|
||||||
|
// Apply pagination if provided
|
||||||
|
if ($request->has('page') && $request->has('size')) {
|
||||||
|
$page = $request->get('page');
|
||||||
|
$size = $request->get('size');
|
||||||
|
$offset = ($page - 1) * $size; // Calculate the offset
|
||||||
|
|
||||||
|
$query->skip($offset)->take($size);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Get the filtered count of records
|
||||||
|
$filteredRecords = $query->count();
|
||||||
|
|
||||||
|
// Get the data for the current page
|
||||||
|
$data = $query->get();
|
||||||
|
|
||||||
|
// Calculate the page count
|
||||||
|
$pageCount = ceil($totalRecords / $request->get('size'));
|
||||||
|
|
||||||
|
// Calculate the current page number
|
||||||
|
$currentPage = 0 + 1;
|
||||||
|
|
||||||
|
// Return the response data as a JSON object
|
||||||
|
return response()->json([
|
||||||
|
'draw' => $request->get('draw'),
|
||||||
|
'recordsTotal' => $totalRecords,
|
||||||
|
'recordsFiltered' => $filteredRecords,
|
||||||
|
'pageCount' => $pageCount,
|
||||||
|
'page' => $currentPage,
|
||||||
|
'totalCount' => $totalRecords,
|
||||||
|
'data' => $data,
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function exportPenawaran()
|
||||||
|
{
|
||||||
|
return Excel::download(new PenawaranTenderExport, 'kjpp.xlsx');
|
||||||
|
}
|
||||||
|
|
||||||
public function proses_penawaran_index()
|
public function proses_penawaran_index()
|
||||||
{
|
{
|
||||||
return view('lpj::proses_penawaran/index');
|
return view('lpj::proses_penawaran/index');
|
||||||
|
|||||||
174
app/Http/Controllers/TujuanPenilaianKJPPController.php
Normal file
174
app/Http/Controllers/TujuanPenilaianKJPPController.php
Normal file
@@ -0,0 +1,174 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Modules\Lpj\Http\Controllers;
|
||||||
|
|
||||||
|
use Throwable;
|
||||||
|
use Illuminate\Http\Request;
|
||||||
|
use App\Http\Controllers\Controller;
|
||||||
|
use Maatwebsite\Excel\Facades\Excel;
|
||||||
|
use Modules\Lpj\Models\TujuanPenilaianKJPP;
|
||||||
|
use Modules\Lpj\Exports\TujuanPenilaianKJPPExport;
|
||||||
|
use Modules\Lpj\Http\Requests\JenisPenilaianKJPPRequest;
|
||||||
|
|
||||||
|
class TujuanPenilaianKJPPController extends Controller
|
||||||
|
{
|
||||||
|
public $user;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Display a listing of the resource.
|
||||||
|
*/
|
||||||
|
public function index()
|
||||||
|
{
|
||||||
|
return view('lpj::tujuan_penilaian_kjpp.index');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Show the form for creating a new resource.
|
||||||
|
*/
|
||||||
|
public function create()
|
||||||
|
{
|
||||||
|
return view('lpj::tujuan_penilaian_kjpp.create');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Store a newly created resource in storage.
|
||||||
|
*/
|
||||||
|
public function store(JenisPenilaianKJPPRequest $request)
|
||||||
|
{
|
||||||
|
$validate = $request->validated();
|
||||||
|
|
||||||
|
if ($validate) {
|
||||||
|
try {
|
||||||
|
TujuanPenilaianKJPP::create($validate);
|
||||||
|
return redirect()
|
||||||
|
->route('basicdata.tujuan_penilaian_kjpp.index')
|
||||||
|
->with('success', 'Tujuan Penilaian KJPP created successfully');
|
||||||
|
} catch (Throwable $e) {
|
||||||
|
return redirect()
|
||||||
|
->route('basicdata.tujuan_penilaian_kjpp.create')
|
||||||
|
->with('success', 'Failed to create Tujuan Penilaian KJPP: ' . $e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Show the specified resource.
|
||||||
|
*/
|
||||||
|
public function show($id)
|
||||||
|
{
|
||||||
|
return view('lpj::show');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Show the form for editing the specified resource.
|
||||||
|
*/
|
||||||
|
public function edit($id)
|
||||||
|
{
|
||||||
|
$tujuanPenilaianKJPP = TujuanPenilaianKJPP::find($id);
|
||||||
|
return view('lpj::tujuan_penilaian_kjpp.create', compact('tujuanPenilaianKJPP'));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update the specified resource in storage.
|
||||||
|
*/
|
||||||
|
public function update(JenisPenilaianKJPPRequest $request, $id)
|
||||||
|
{
|
||||||
|
$validate = $request->validated();
|
||||||
|
|
||||||
|
if ($validate) {
|
||||||
|
try {
|
||||||
|
$tujuanPenilaianKJPP = TujuanPenilaianKJPP::find($id);
|
||||||
|
$tujuanPenilaianKJPP->update($validate);
|
||||||
|
return redirect()
|
||||||
|
->route('basicdata.tujuan_penilaian_kjpp.index')
|
||||||
|
->with('success', 'Tujuan Penilaian KJPP updated successfully');
|
||||||
|
} catch (Throwable $e) {
|
||||||
|
return redirect()
|
||||||
|
->route('basicdata.tujuan_penilaian_kjpp.edit', $id)
|
||||||
|
->with('success', 'Failed to update Tujuan Penilaian KJPP: ' . $e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove the specified resource from storage.
|
||||||
|
*/
|
||||||
|
public function destroy($id)
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
// Delete from database
|
||||||
|
$tujuanPenilaianKJPP = TujuanPenilaianKJPP::find($id);
|
||||||
|
$tujuanPenilaianKJPP->delete();
|
||||||
|
|
||||||
|
echo json_encode(['success' => true, 'message' => 'Tujuan Penilaian deleted successfully']);
|
||||||
|
} catch (Throwable $e) {
|
||||||
|
echo json_encode(['success' => false, 'message' => 'Failed to delete deleted']);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public function dataForDatatables(Request $request)
|
||||||
|
{
|
||||||
|
if (is_null($this->user) || !$this->user->can('jenis_jaminan.view')) {
|
||||||
|
//abort(403, 'Sorry! You are not allowed to view users.');
|
||||||
|
}
|
||||||
|
|
||||||
|
// Retrieve data from the database
|
||||||
|
$query = TujuanPenilaianKJPP::query();
|
||||||
|
|
||||||
|
// Apply search filter if provided
|
||||||
|
if ($request->has('search') && !empty($request->get('search'))) {
|
||||||
|
$search = $request->get('search');
|
||||||
|
$query->where(function ($q) use ($search) {
|
||||||
|
$q->where('code', 'LIKE', "%$search%");
|
||||||
|
$q->orWhere('name', 'LIKE', "%$search%");
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// Apply sorting if provided
|
||||||
|
if ($request->has('sortOrder') && !empty($request->get('sortOrder'))) {
|
||||||
|
$order = $request->get('sortOrder');
|
||||||
|
$column = $request->get('sortField');
|
||||||
|
$query->orderBy($column, $order);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Get the total count of records
|
||||||
|
$totalRecords = $query->count();
|
||||||
|
|
||||||
|
// Apply pagination if provided
|
||||||
|
if ($request->has('page') && $request->has('size')) {
|
||||||
|
$page = $request->get('page');
|
||||||
|
$size = $request->get('size');
|
||||||
|
$offset = ($page - 1) * $size; // Calculate the offset
|
||||||
|
|
||||||
|
$query->skip($offset)->take($size);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Get the filtered count of records
|
||||||
|
$filteredRecords = $query->count();
|
||||||
|
|
||||||
|
// Get the data for the current page
|
||||||
|
$data = $query->get();
|
||||||
|
|
||||||
|
// Calculate the page count
|
||||||
|
$pageCount = ceil($totalRecords / $request->get('size'));
|
||||||
|
|
||||||
|
// Calculate the current page number
|
||||||
|
$currentPage = 0 + 1;
|
||||||
|
|
||||||
|
// Return the response data as a JSON object
|
||||||
|
return response()->json([
|
||||||
|
'draw' => $request->get('draw'),
|
||||||
|
'recordsTotal' => $totalRecords,
|
||||||
|
'recordsFiltered' => $filteredRecords,
|
||||||
|
'pageCount' => $pageCount,
|
||||||
|
'page' => $currentPage,
|
||||||
|
'totalCount' => $totalRecords,
|
||||||
|
'data' => $data,
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function export()
|
||||||
|
{
|
||||||
|
return Excel::download(new TujuanPenilaianKJPPExport, 'jenis_laporan.xlsx');
|
||||||
|
}
|
||||||
|
}
|
||||||
46
app/Http/Requests/JenisLaporanRequest.php
Normal file
46
app/Http/Requests/JenisLaporanRequest.php
Normal file
@@ -0,0 +1,46 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Modules\Lpj\Http\Requests;
|
||||||
|
|
||||||
|
use Illuminate\Foundation\Http\FormRequest;
|
||||||
|
|
||||||
|
class JenisLaporanRequest extends FormRequest
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Get the validation rules that apply to the request.
|
||||||
|
*/
|
||||||
|
public function rules(): array
|
||||||
|
{
|
||||||
|
$rules = [
|
||||||
|
'code' => 'required|max:5',
|
||||||
|
'name' => 'required|max:255',
|
||||||
|
];
|
||||||
|
|
||||||
|
if ($this->method() == 'PUT') {
|
||||||
|
$rules['code'] = 'required|max:5|unique:jenis_laporan,code,' . $this->id;
|
||||||
|
} else {
|
||||||
|
$rules['code'] = 'required|max:5|unique:jenis_laporan,code';
|
||||||
|
}
|
||||||
|
|
||||||
|
return $rules;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Determine if the user is authorized to make this request.
|
||||||
|
*/
|
||||||
|
public function authorize(): bool
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function messages(): array
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
'code.required' => 'Kode Jenis Laporan Wajib diisi!',
|
||||||
|
'code.max' => 'Kode Jenis Laporan maksimum 5 huruf!',
|
||||||
|
'code.unique' => 'Kode Jenis Laporan tidak boleh sama!',
|
||||||
|
'name.required' => 'Nama Jenis Laporan Wajib diisi!',
|
||||||
|
'name.max' => 'Nama Jenis Laporan Wajib diisi!'
|
||||||
|
];
|
||||||
|
}
|
||||||
|
}
|
||||||
45
app/Http/Requests/JenisPenilaianKJPPRequest.php
Normal file
45
app/Http/Requests/JenisPenilaianKJPPRequest.php
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Modules\Lpj\Http\Requests;
|
||||||
|
|
||||||
|
use Illuminate\Foundation\Http\FormRequest;
|
||||||
|
|
||||||
|
class JenisPenilaianKJPPRequest extends FormRequest
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Get the validation rules that apply to the request.
|
||||||
|
*/
|
||||||
|
public function rules(): array
|
||||||
|
{
|
||||||
|
$rules = [
|
||||||
|
'code' => 'required|max:5',
|
||||||
|
'name' => 'required|max:255',
|
||||||
|
];
|
||||||
|
|
||||||
|
if ($this->method() == 'PUT') {
|
||||||
|
$rules['code'] = 'required|max:5|unique:tujuan_penilaian_kjpp,code,' . $this->id;
|
||||||
|
} else {
|
||||||
|
$rules['code'] = 'required|max:5|unique:tujuan_penilaian_kjpp,code';
|
||||||
|
}
|
||||||
|
|
||||||
|
return $rules;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Determine if the user is authorized to make this request.
|
||||||
|
*/
|
||||||
|
public function authorize(): bool
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function messages(): array
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
'code.required' => 'Kode Tujuan Penilaian KJPP Wajib diisi!',
|
||||||
|
'code.max' => 'Kode Tujuan Penilaian KJPP maksimum 5 huruf!',
|
||||||
|
'code.unique' => 'Kode Tujuan Penilaian KJPP tidak boleh sama!',
|
||||||
|
'name.required' => 'Nama Tujuan Penilaian KJPP Wajib diisi!',
|
||||||
|
'name.max' => 'Nama Tujuan Penilaian KJPP Wajib diisi!'
|
||||||
|
];
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -32,8 +32,10 @@ class KJPPRequest extends FormRequest
|
|||||||
'nomor_hp_pic_admin' => 'required|numeric|digits_between:10,15',
|
'nomor_hp_pic_admin' => 'required|numeric|digits_between:10,15',
|
||||||
'nama_pic_marketing' => 'required|string|not_regex:/^\d+$/|max:255',
|
'nama_pic_marketing' => 'required|string|not_regex:/^\d+$/|max:255',
|
||||||
'nomor_hp_pic_marketing' => 'required|numeric|digits_between:10,15',
|
'nomor_hp_pic_marketing' => 'required|numeric|digits_between:10,15',
|
||||||
'ijin_usaha_id' => 'nullable',
|
'ijin_usaha_id' => 'required|array',
|
||||||
'jenis_aset_id' => 'nullable',
|
'ijin_usaha_id.*' => 'exists:ijin_usaha,code',
|
||||||
|
'jenis_aset_id' => 'required|array',
|
||||||
|
'jenis_aset_id.*' => 'exists:jenis_jaminan,code',
|
||||||
'attachment' => 'nullable|mimes:pdf|max:1024'
|
'attachment' => 'nullable|mimes:pdf|max:1024'
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -54,14 +56,6 @@ class KJPPRequest extends FormRequest
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function prepareForValidation(): void
|
|
||||||
{
|
|
||||||
$this->merge([
|
|
||||||
'ijin_usaha_id' => json_encode($this->ijin_usaha_id),
|
|
||||||
'jenis_aset_id' => json_encode($this->jenis_aset_id)
|
|
||||||
]);
|
|
||||||
}
|
|
||||||
|
|
||||||
public function messages(): array
|
public function messages(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
@@ -106,6 +100,10 @@ class KJPPRequest extends FormRequest
|
|||||||
'nomor_hp_pic_marketing.required' => 'Nomor HP PIC Marketing Wajib diisi!',
|
'nomor_hp_pic_marketing.required' => 'Nomor HP PIC Marketing Wajib diisi!',
|
||||||
'nomor_hp_pic_marketing.numeric' => 'Nomor HP PIC Marketing harus berupa angka!',
|
'nomor_hp_pic_marketing.numeric' => 'Nomor HP PIC Marketing harus berupa angka!',
|
||||||
'nomor_hp_pic_marketing.digits_between' => 'Nomor HP PIC Marketing minimum 10 digit dan maksimum 15 digit!',
|
'nomor_hp_pic_marketing.digits_between' => 'Nomor HP PIC Marketing minimum 10 digit dan maksimum 15 digit!',
|
||||||
|
'ijin_usaha_id.required' => 'Ijin Usaha Wajib diisi!',
|
||||||
|
'ijin_usaha_id.min' => 'Ijin Usaha Wajib diisi minimal satu atau lebih!',
|
||||||
|
'jenis_aset_id.required' => 'Jenis Aset Wajib diisi!',
|
||||||
|
'jenis_aset_id.min' => 'Jenis Aset Wajib diisi minimal satu atau lebih!',
|
||||||
'attachment.mimes' => 'Attachment harus berformat pdf!',
|
'attachment.mimes' => 'Attachment harus berformat pdf!',
|
||||||
'attachment.max' => 'Attachment berukuran maksimum 1 MB!',
|
'attachment.max' => 'Attachment berukuran maksimum 1 MB!',
|
||||||
];
|
];
|
||||||
|
|||||||
75
app/Http/Requests/TenderPenawaranRequest.php
Normal file
75
app/Http/Requests/TenderPenawaranRequest.php
Normal file
@@ -0,0 +1,75 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Modules\Lpj\Http\Requests;
|
||||||
|
|
||||||
|
use Illuminate\Foundation\Http\FormRequest;
|
||||||
|
|
||||||
|
class TenderPenawaranRequest extends FormRequest
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Get the validation rules that apply to the request.
|
||||||
|
*/
|
||||||
|
public function rules(): array
|
||||||
|
{
|
||||||
|
$rules = [
|
||||||
|
'nama_kjpp_sebelumnya' => 'required|array',
|
||||||
|
'nama_kjpp_sebelumnya.*' => 'exists:kjpp,name',
|
||||||
|
'biaya_kjpp_sebelumnya' => 'required|numeric',
|
||||||
|
'tanggal_penilaian_sebelumnya' => 'required',
|
||||||
|
'nomor_registrasi' => 'required',
|
||||||
|
'tujuan_penilaian_kjpp_id' => 'required',
|
||||||
|
'jenis_laporan_id' => 'required',
|
||||||
|
'start_date' => 'required',
|
||||||
|
'end_date' => 'required',
|
||||||
|
'catatan' => 'nullable',
|
||||||
|
'status' => 'required'
|
||||||
|
];
|
||||||
|
|
||||||
|
if ($this->method() == 'PUT') {
|
||||||
|
$rules['code'] = 'required|max:50|unique:penawaran,code,' . $this->id;
|
||||||
|
} else {
|
||||||
|
$rules['code'] = 'required|max:50|unique:penawaran,code';
|
||||||
|
}
|
||||||
|
|
||||||
|
return $rules;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Determine if the user is authorized to make this request.
|
||||||
|
*/
|
||||||
|
public function authorize(): bool
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function messages(): array
|
||||||
|
{
|
||||||
|
return [
|
||||||
|
'code.required' => 'Kode Penawaran Wajib diisi!',
|
||||||
|
'code.max' => 'Kode Penawaran maksimal 255 huruf!',
|
||||||
|
'code.unique' => 'Kode Penawaran tidak boleh sama!',
|
||||||
|
'nama_kjpp_sebelumnya.required' => 'Nama KJPP Sebelumnya Wajib diisi!',
|
||||||
|
'biaya_kjpp_sebelumnya.required' => 'Biaya KJPP Sebelumnya Wajib diisi!',
|
||||||
|
'biaya_kjpp_sebelumnya.numeric' => 'Biaya KJPP Sebelumnya harus berupa angka!',
|
||||||
|
'tanggal_penilaian_sebelumnya.required' => 'Tanggal Penilaian Sebelumnya Wajib diisi!',
|
||||||
|
'nomor_registrasi.required' => 'Nomor Registrasi Wajib diisi!',
|
||||||
|
'tujuan_penilaian_kjpp_id.required' => 'Tujuan Penilaian KJPP Wajib diisi!',
|
||||||
|
'jenis_laporan_id.required' => 'Jenis Laporan Wajib diisi!',
|
||||||
|
'start_date.required' => 'Tanggal Awal Wajib diisi!',
|
||||||
|
'end_date.required' => 'Tanggal Akhir Wajib diisi!',
|
||||||
|
'status.required' => 'Status Wajib diisi!'
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
public function withValidator($validator)
|
||||||
|
{
|
||||||
|
$validator->after(function ($validator) {
|
||||||
|
$startDate = strtotime($this->input('start_date'));
|
||||||
|
$endDate = strtotime($this->input('end_date'));
|
||||||
|
|
||||||
|
if ($endDate < $startDate) {
|
||||||
|
$validator->errors()->add('end_date', 'Tanggal Akhir tidak boleh lebih awal dari Tanggal Awal.');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
22
app/Models/JenisLaporan.php
Normal file
22
app/Models/JenisLaporan.php
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Modules\Lpj\Models;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||||
|
use Modules\Lpj\Database\Factories\JenisLaporanFactory;
|
||||||
|
|
||||||
|
class JenisLaporan extends Model
|
||||||
|
{
|
||||||
|
use HasFactory;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The attributes that are mass assignable.
|
||||||
|
*/
|
||||||
|
|
||||||
|
// Define the table if not using default table naming
|
||||||
|
protected $table = 'jenis_laporan';
|
||||||
|
|
||||||
|
|
||||||
|
protected $fillable = ['code', 'name'];
|
||||||
|
}
|
||||||
18
app/Models/PenawaranTender.php
Normal file
18
app/Models/PenawaranTender.php
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Modules\Lpj\Models;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||||
|
|
||||||
|
class PenawaranTender extends Model
|
||||||
|
{
|
||||||
|
use HasFactory;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The attributes that are mass assignable.
|
||||||
|
*/
|
||||||
|
protected $table = 'penawaran';
|
||||||
|
|
||||||
|
protected $guarded = ['id'];
|
||||||
|
}
|
||||||
@@ -28,38 +28,52 @@ class Permohonan extends Base
|
|||||||
'authorized_status',
|
'authorized_status',
|
||||||
'authorized_by',
|
'authorized_by',
|
||||||
'status_bayar',
|
'status_bayar',
|
||||||
'nilai_njop'
|
'nilai_njop',
|
||||||
|
// andy add
|
||||||
|
'registrasi_catatan',
|
||||||
|
'registrasi_by',
|
||||||
|
'registrasi_at',
|
||||||
|
'jenis_penilaian_id',
|
||||||
|
'region_id'
|
||||||
];
|
];
|
||||||
|
|
||||||
public function user(){
|
public function user()
|
||||||
|
{
|
||||||
return $this->belongsTo(User::class);
|
return $this->belongsTo(User::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function branch(){
|
public function branch()
|
||||||
|
{
|
||||||
return $this->belongsTo(Branch::class);
|
return $this->belongsTo(Branch::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function tujuanPenilaian(){
|
public function tujuanPenilaian()
|
||||||
|
{
|
||||||
return $this->belongsTo(TujuanPenilaian::class);
|
return $this->belongsTo(TujuanPenilaian::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function debiture(){
|
public function debiture()
|
||||||
|
{
|
||||||
return $this->belongsTo(Debiture::class);
|
return $this->belongsTo(Debiture::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function documents(){
|
public function documents()
|
||||||
|
{
|
||||||
return $this->hasMany(DokumenJaminan::class);
|
return $this->hasMany(DokumenJaminan::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function nilaiPlafond(){
|
public function nilaiPlafond()
|
||||||
|
{
|
||||||
return $this->belongsTo(NilaiPlafond::class);
|
return $this->belongsTo(NilaiPlafond::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function jenisFasilitasKredit(){
|
public function jenisFasilitasKredit()
|
||||||
|
{
|
||||||
return $this->belongsTo(JenisFasilitasKredit::class);
|
return $this->belongsTo(JenisFasilitasKredit::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function penilaian(){
|
public function penilaian()
|
||||||
|
{
|
||||||
return $this->belongsTo(Penilaian::class, 'nomor_registrasi', 'nomor_registrasi');
|
return $this->belongsTo(Penilaian::class, 'nomor_registrasi', 'nomor_registrasi');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
23
app/Models/PermohonanJaminan.php
Normal file
23
app/Models/PermohonanJaminan.php
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Modules\Lpj\Models;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||||
|
use Modules\Lpj\Database\Factories\PermohonanJaminanFactory;
|
||||||
|
|
||||||
|
class PermohonanJaminan extends Model
|
||||||
|
{
|
||||||
|
use HasFactory;
|
||||||
|
protected $table = 'dokumen_jaminan';
|
||||||
|
/**
|
||||||
|
* The attributes that are mass assignable.
|
||||||
|
*/
|
||||||
|
// protected $fillable = [];
|
||||||
|
protected $guarded = [];
|
||||||
|
|
||||||
|
protected static function newFactory(): PermohonanJaminanFactory
|
||||||
|
{
|
||||||
|
//return PermohonanJaminanFactory::new();
|
||||||
|
}
|
||||||
|
}
|
||||||
19
app/Models/TujuanPenilaianKJPP.php
Normal file
19
app/Models/TujuanPenilaianKJPP.php
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Modules\Lpj\Models;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||||
|
use Modules\Lpj\Database\Factories\TujuanPenilaianKJPPFactory;
|
||||||
|
|
||||||
|
class TujuanPenilaianKJPP extends Model
|
||||||
|
{
|
||||||
|
use HasFactory;
|
||||||
|
|
||||||
|
protected $table = 'tujuan_penilaian_kjpp';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The attributes that are mass assignable.
|
||||||
|
*/
|
||||||
|
protected $fillable = ['code', 'name'];
|
||||||
|
}
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
return new class extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*/
|
||||||
|
public function up(): void
|
||||||
|
{
|
||||||
|
Schema::create('tujuan_penilaian_kjpp', function (Blueprint $table) {
|
||||||
|
$table->id();
|
||||||
|
$table->string('code')->unique()->index();
|
||||||
|
$table->string('name');
|
||||||
|
$table->boolean('status')->default(true)->nullable();
|
||||||
|
$table->char('authorized_status', 1)->nullable();
|
||||||
|
$table->timestamp('authorized_at')->nullable();
|
||||||
|
$table->unsignedBigInteger('authorized_by')->nullable();
|
||||||
|
$table->timestamps();
|
||||||
|
$table->softDeletes();
|
||||||
|
|
||||||
|
$table->unsignedBigInteger('deleted_by')->nullable();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*/
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
Schema::dropIfExists('tujuan_penilaian_kjpp');
|
||||||
|
}
|
||||||
|
};
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
return new class extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*/
|
||||||
|
public function up(): void
|
||||||
|
{
|
||||||
|
Schema::create('jenis_laporan', function (Blueprint $table) {
|
||||||
|
$table->id();
|
||||||
|
$table->string('code')->unique()->index();
|
||||||
|
$table->string('name');
|
||||||
|
$table->boolean('status')->default(true)->nullable();
|
||||||
|
$table->char('authorized_status', 1)->nullable();
|
||||||
|
$table->timestamp('authorized_at')->nullable();
|
||||||
|
$table->unsignedBigInteger('authorized_by')->nullable();
|
||||||
|
$table->timestamps();
|
||||||
|
$table->softDeletes();
|
||||||
|
|
||||||
|
$table->unsignedBigInteger('deleted_by')->nullable();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*/
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
Schema::dropIfExists('jenis_laporan');
|
||||||
|
}
|
||||||
|
};
|
||||||
@@ -0,0 +1,44 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
return new class extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*/
|
||||||
|
public function up(): void
|
||||||
|
{
|
||||||
|
Schema::create('penawaran', function (Blueprint $table) {
|
||||||
|
$table->id();
|
||||||
|
$table->string('code');
|
||||||
|
$table->string('nama_kjpp_sebelumnya');
|
||||||
|
$table->string('biaya_kjpp_sebelumnya');
|
||||||
|
$table->datetime('tanggal_penilaian_sebelumnya');
|
||||||
|
$table->string('nomor_registrasi');
|
||||||
|
$table->foreignId('tujuan_penilaian_kjpp_id')->constrained('tujuan_penilaian_kjpp');
|
||||||
|
$table->foreignId('jenis_laporan_id')->constrained('jenis_laporan');
|
||||||
|
$table->date('start_date');
|
||||||
|
$table->date('end_date');
|
||||||
|
$table->text('catatan');
|
||||||
|
$table->boolean('status')->default(true)->nullable();
|
||||||
|
$table->char('authorized_status', 1)->nullable();
|
||||||
|
$table->timestamp('authorized_at')->nullable();
|
||||||
|
$table->unsignedBigInteger('authorized_by')->nullable();
|
||||||
|
$table->timestamps();
|
||||||
|
$table->softDeletes();
|
||||||
|
|
||||||
|
$table->unsignedBigInteger('deleted_by')->nullable();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*/
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
Schema::dropIfExists('penawaran');
|
||||||
|
}
|
||||||
|
};
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
return new class extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*/
|
||||||
|
public function up(): void
|
||||||
|
{
|
||||||
|
Schema::create('persetujuan_penawaran', function (Blueprint $table) {
|
||||||
|
$table->id();
|
||||||
|
$table->foreignId('penawaran_id')->constrained('penawaran');
|
||||||
|
$table->string('nomor_proposal_penawaran');
|
||||||
|
$table->date('tanggal_proposal_penawaran');
|
||||||
|
$table->string('biaya_final');
|
||||||
|
$table->datetime('sls_resume');
|
||||||
|
$table->datetime('sla_final');
|
||||||
|
$table->string('catatan');
|
||||||
|
$table->string('attachment');
|
||||||
|
$table->foreignId('region_id')->constrained('regions');
|
||||||
|
$table->boolean('status')->default(true)->nullable();
|
||||||
|
$table->char('authorized_status', 1)->nullable();
|
||||||
|
$table->timestamp('authorized_at')->nullable();
|
||||||
|
$table->unsignedBigInteger('authorized_by')->nullable();
|
||||||
|
$table->timestamps();
|
||||||
|
$table->softDeletes();
|
||||||
|
|
||||||
|
$table->unsignedBigInteger('deleted_by')->nullable();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*/
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
Schema::dropIfExists('persetujuan_penawaran');
|
||||||
|
}
|
||||||
|
};
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
return new class extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*/
|
||||||
|
public function up(): void
|
||||||
|
{
|
||||||
|
Schema::create('detail_penawaran', function (Blueprint $table) {
|
||||||
|
$table->id();
|
||||||
|
$table->foreignId('kjpp_rekanan_id')->constrained('kjpp');
|
||||||
|
$table->foreignId('penawaran_id')->constrained('penawaran');
|
||||||
|
$table->string('biaya_penawaran');
|
||||||
|
$table->string('attachment');
|
||||||
|
$table->string('dokumen_persetujuan');
|
||||||
|
$table->boolean('status')->default(true)->nullable();
|
||||||
|
$table->char('authorized_status', 1)->nullable();
|
||||||
|
$table->timestamp('authorized_at')->nullable();
|
||||||
|
$table->unsignedBigInteger('authorized_by')->nullable();
|
||||||
|
$table->timestamps();
|
||||||
|
$table->softDeletes();
|
||||||
|
|
||||||
|
$table->unsignedBigInteger('deleted_by')->nullable();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*/
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
Schema::dropIfExists('detail_penawaran');
|
||||||
|
}
|
||||||
|
};
|
||||||
30
database/migrations/2024_09_30_021444_update_kjpp_table.php
Normal file
30
database/migrations/2024_09_30_021444_update_kjpp_table.php
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
return new class extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*/
|
||||||
|
public function up(): void
|
||||||
|
{
|
||||||
|
Schema::table('kjpp', function (Blueprint $table) {
|
||||||
|
$table->string('ijin_usaha_id')->change();
|
||||||
|
$table->string('jenis_aset_id')->change();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*/
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
Schema::table('kjpp', function (Blueprint $table) {
|
||||||
|
$table->string('ijin_usaha_id')->nullable()->change();
|
||||||
|
$table->string('jenis_aset_id')->nullable()->change();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
return new class extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*/
|
||||||
|
public function up(): void
|
||||||
|
{
|
||||||
|
Schema::table('penawaran', function (Blueprint $table) {
|
||||||
|
$table->char('status')->change();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*/
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
Schema::table('penawaran', function (Blueprint $table) {
|
||||||
|
$table->boolean('status')->default(true)->nullable();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
return new class extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*/
|
||||||
|
public function up(): void
|
||||||
|
{
|
||||||
|
Schema::table('permohonan', function (Blueprint $table) {
|
||||||
|
$table->text('registrasi_catatan')->nullable()->comment('kebutuhan untuk feature Registrasi');
|
||||||
|
$table->unsignedBigInteger('registrasi_by')->nullable()->after('registrasi_catatan')->comment('kebutuhan untuk feature Registrasi');
|
||||||
|
$table->timestamp('registrasi_at')->nullable()->after('registrasi_by')->comment('kebutuhan untuk feature Registrasi');
|
||||||
|
$table->unsignedBigInteger('jenis_penilaian_id')->nullable()->after('registrasi_at')->comment('kebutuhan untuk feature Registrasi');
|
||||||
|
$table->unsignedBigInteger('region_id')->nullable()->after('jenis_penilaian_id')->comment('kebutuhan untuk feature Registrasi');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*/
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
Schema::table('permohonan', function (Blueprint $table) {
|
||||||
|
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
640
module.json
640
module.json
@@ -1,305 +1,343 @@
|
|||||||
{
|
{
|
||||||
"name": "Lpj",
|
"name": "Lpj",
|
||||||
"alias": "lpj",
|
"alias": "lpj",
|
||||||
"database": "",
|
"database": "",
|
||||||
"description": "",
|
"description": "",
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"priority": 0,
|
"priority": 0,
|
||||||
"providers": [
|
"providers": [
|
||||||
"Modules\\Lpj\\Providers\\LpjServiceProvider"
|
"Modules\\Lpj\\Providers\\LpjServiceProvider"
|
||||||
|
],
|
||||||
|
"files": [],
|
||||||
|
"menu": {
|
||||||
|
"main": [
|
||||||
|
{
|
||||||
|
"title": "Permohonan",
|
||||||
|
"path": "permohonan",
|
||||||
|
"icon": "ki-filled ki-questionnaire-tablet text-lg",
|
||||||
|
"classes": "",
|
||||||
|
"attributes": [],
|
||||||
|
"permission": "",
|
||||||
|
"roles": [
|
||||||
|
"administrator","pemohon-ao","pemohon-eo"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Registrasi",
|
||||||
|
"path": "registrasi",
|
||||||
|
"icon": "ki-filled ki-file-added text-lg",
|
||||||
|
"classes": "",
|
||||||
|
"attributes": [],
|
||||||
|
"permission": "",
|
||||||
|
"roles": [
|
||||||
|
"administrator","admin"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Tender",
|
||||||
|
"path": "tender",
|
||||||
|
"icon": "ki-filled ki-category text-lg",
|
||||||
|
"classes": "",
|
||||||
|
"attributes": [],
|
||||||
|
"permission": "",
|
||||||
|
"roles": [
|
||||||
|
"administrator","admin"
|
||||||
|
],
|
||||||
|
"sub": [
|
||||||
|
{
|
||||||
|
"title": "Data Penawaran",
|
||||||
|
"path": "tender.penawaran",
|
||||||
|
"classes": "",
|
||||||
|
"attributes": [],
|
||||||
|
"permission": "",
|
||||||
|
"roles": [
|
||||||
|
"administrator","admin"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Data Proses Penawaran",
|
||||||
|
"path": "tender.proses_penawaran",
|
||||||
|
"classes": "",
|
||||||
|
"attributes": [],
|
||||||
|
"permission": "",
|
||||||
|
"roles": [
|
||||||
|
"administrator","admin"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Data Penawaran Ulang",
|
||||||
|
"path": "tender.penawaran_ulang",
|
||||||
|
"classes": "",
|
||||||
|
"attributes": [],
|
||||||
|
"permission": "",
|
||||||
|
"roles": [
|
||||||
|
"administrator","admin"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Pembatalan",
|
||||||
|
"path": "",
|
||||||
|
"icon": "ki-filled ki-file-deleted text-lg text-danger",
|
||||||
|
"classes": "",
|
||||||
|
"attributes": [],
|
||||||
|
"permission": "",
|
||||||
|
"roles": [
|
||||||
|
"administrator","pemohon-ao","pemohon-eo"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Data Debitur",
|
||||||
|
"path": "debitur",
|
||||||
|
"icon": "ki-filled ki-people text-lg",
|
||||||
|
"classes": "",
|
||||||
|
"attributes": [],
|
||||||
|
"permission": "",
|
||||||
|
"roles": [
|
||||||
|
"administrator","pemohon-ao","pemohon-eo"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Authorization",
|
||||||
|
"path": "authorization",
|
||||||
|
"icon": "ki-filled ki-security-user text-lg",
|
||||||
|
"classes": "",
|
||||||
|
"attributes": [],
|
||||||
|
"permission": "",
|
||||||
|
"roles": [
|
||||||
|
"administrator","pemohon-eo"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Assignment",
|
||||||
|
"path": "penilaian",
|
||||||
|
"icon": "ki-filled ki-badge text-lg",
|
||||||
|
"classes": "",
|
||||||
|
"attributes": [],
|
||||||
|
"permission": "",
|
||||||
|
"roles": [
|
||||||
|
"administrator"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Activity",
|
||||||
|
"path": "activity",
|
||||||
|
"icon": "ki-filled ki-calendar-edit text-lg",
|
||||||
|
"classes": "",
|
||||||
|
"attributes": [],
|
||||||
|
"permission": "",
|
||||||
|
"roles": [
|
||||||
|
"administrator","pemohon-ao","pemohon-eo","admin"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Laporan",
|
||||||
|
"path": "",
|
||||||
|
"icon": "ki-filled ki-filter-tablet text-lg",
|
||||||
|
"classes": "",
|
||||||
|
"attributes": [],
|
||||||
|
"permission": "",
|
||||||
|
"roles": [
|
||||||
|
"administrator","pemohon-ao","pemohon-eo","admin"
|
||||||
|
]
|
||||||
|
}
|
||||||
],
|
],
|
||||||
"files": [],
|
"master": [
|
||||||
"menu": {
|
{
|
||||||
"main": [
|
"title": "Basic Data",
|
||||||
{
|
"path": "basicdata",
|
||||||
"title": "Permohonan",
|
"icon": "ki-filled ki-category text-lg",
|
||||||
"path": "permohonan",
|
"classes": "",
|
||||||
"icon": "ki-filled ki-questionnaire-tablet text-lg",
|
"attributes": [],
|
||||||
"classes": "",
|
"permission": "",
|
||||||
"attributes": [],
|
"roles": [
|
||||||
"permission": "",
|
"administrator","pemohon-ao","pemohon-eo","admin"
|
||||||
"roles": [
|
|
||||||
"Administrator"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"title": "Tender",
|
|
||||||
"path": "tender",
|
|
||||||
"icon": "ki-filled ki-category text-lg",
|
|
||||||
"classes": "",
|
|
||||||
"attributes": [],
|
|
||||||
"permission": "",
|
|
||||||
"roles": [
|
|
||||||
"Administrator"
|
|
||||||
],
|
|
||||||
"sub": [
|
|
||||||
{
|
|
||||||
"title": "Data Penawaran",
|
|
||||||
"path": "tender.penawaran",
|
|
||||||
"classes": "",
|
|
||||||
"attributes": [],
|
|
||||||
"permission": "",
|
|
||||||
"roles": []
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"title": "Data Proses Penawaran",
|
|
||||||
"path": "tender.proses_penawaran",
|
|
||||||
"classes": "",
|
|
||||||
"attributes": [],
|
|
||||||
"permission": "",
|
|
||||||
"roles": []
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"title": "Data Penawaran Ulang",
|
|
||||||
"path": "tender.penawaran_ulang",
|
|
||||||
"classes": "",
|
|
||||||
"attributes": [],
|
|
||||||
"permission": "",
|
|
||||||
"roles": []
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"title": "Pembatalan",
|
|
||||||
"path": "",
|
|
||||||
"icon": "ki-filled ki-file-deleted text-lg",
|
|
||||||
"classes": "",
|
|
||||||
"attributes": [],
|
|
||||||
"permission": "",
|
|
||||||
"roles": [
|
|
||||||
"Administrator"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"title": "Data Debitur",
|
|
||||||
"path": "debitur",
|
|
||||||
"icon": "ki-filled ki-people text-lg",
|
|
||||||
"classes": "",
|
|
||||||
"attributes": [],
|
|
||||||
"permission": "",
|
|
||||||
"roles": [
|
|
||||||
"Administrator"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"title": "Authorization",
|
|
||||||
"path": "authorization",
|
|
||||||
"icon": "ki-filled ki-some-files text-lg",
|
|
||||||
"classes": "",
|
|
||||||
"attributes": [],
|
|
||||||
"permission": "",
|
|
||||||
"roles": [
|
|
||||||
"Administrator"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"title": "Assignment",
|
|
||||||
"path": "penilaian",
|
|
||||||
"icon": "ki-filled ki-badge",
|
|
||||||
"classes": "",
|
|
||||||
"attributes": [],
|
|
||||||
"permission": "",
|
|
||||||
"roles": [
|
|
||||||
"senior officer"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"title": "Activity",
|
|
||||||
"path": "activity",
|
|
||||||
"icon": "ki-filled ki-questionnaire-tablet text-lg",
|
|
||||||
"classes": "",
|
|
||||||
"attributes": [],
|
|
||||||
"permission": "",
|
|
||||||
"roles": [
|
|
||||||
"Administrator"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"title": "Team Activity",
|
|
||||||
"path": "activity.progres",
|
|
||||||
"icon": "ki-filled ki-questionnaire-tablet text-lg",
|
|
||||||
"classes": "",
|
|
||||||
"attributes": [],
|
|
||||||
"permission": "",
|
|
||||||
"roles": [
|
|
||||||
"senior officer"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"title": "Surveyor",
|
|
||||||
"path": "surveyor",
|
|
||||||
"icon": "ki-filled ki-notepad-edit text-lg",
|
|
||||||
"classes": "",
|
|
||||||
"attributes": [],
|
|
||||||
"permission": "",
|
|
||||||
"roles": [
|
|
||||||
"Administrator"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
"title": "Laporan",
|
|
||||||
"path": "",
|
|
||||||
"icon": "ki-filled ki-some-files text-lg",
|
|
||||||
"classes": "",
|
|
||||||
"attributes": [],
|
|
||||||
"permission": "",
|
|
||||||
"roles": [
|
|
||||||
"Administrator"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
],
|
||||||
"master": [
|
"sub": [
|
||||||
{
|
{
|
||||||
"title": "Basic Data",
|
"title": "Cabang",
|
||||||
"path": "basicdata",
|
"path": "basicdata.branch",
|
||||||
"icon": "ki-filled ki-category text-lg",
|
"classes": "",
|
||||||
"classes": "",
|
"attributes": [],
|
||||||
"attributes": [],
|
"permission": "",
|
||||||
"permission": "",
|
"roles": [
|
||||||
"roles": [
|
"administrator","pemohon-ao","pemohon-eo"
|
||||||
"Administrator"
|
]
|
||||||
],
|
},
|
||||||
"sub": [
|
{
|
||||||
{
|
"title": "Mata Uang",
|
||||||
"title": "Cabang",
|
"path": "basicdata.currency",
|
||||||
"path": "basicdata.branch",
|
"classes": "",
|
||||||
"classes": "",
|
"attributes": [],
|
||||||
"attributes": [],
|
"permission": "",
|
||||||
"permission": "",
|
"roles": [
|
||||||
"roles": []
|
"administrator","pemohon-ao","pemohon-eo"
|
||||||
},
|
]
|
||||||
{
|
},
|
||||||
"title": "Mata Uang",
|
{
|
||||||
"path": "basicdata.currency",
|
"title": "Jenis Fasilitas Kredit",
|
||||||
"classes": "",
|
"path": "basicdata.jenis-fasilitas-kredit",
|
||||||
"attributes": [],
|
"classes": "",
|
||||||
"permission": "",
|
"attributes": [],
|
||||||
"roles": []
|
"permission": "",
|
||||||
},
|
"roles": [
|
||||||
{
|
"administrator","pemohon-ao","pemohon-eo"
|
||||||
"title": "Jenis Fasilitas Kredit",
|
]
|
||||||
"path": "basicdata.jenis-fasilitas-kredit",
|
},
|
||||||
"classes": "",
|
{
|
||||||
"attributes": [],
|
"title": "Jenis Legalitas Jaminan",
|
||||||
"permission": "",
|
"path": "basicdata.jenis-legalitas-jaminan",
|
||||||
"roles": []
|
"classes": "",
|
||||||
},
|
"attributes": [],
|
||||||
{
|
"permission": "",
|
||||||
"title": "Jenis Legalitas Jaminan",
|
"roles": [
|
||||||
"path": "basicdata.jenis-legalitas-jaminan",
|
"administrator","pemohon-ao","pemohon-eo"
|
||||||
"classes": "",
|
]
|
||||||
"attributes": [],
|
},
|
||||||
"permission": "",
|
{
|
||||||
"roles": []
|
"title": "Jenis Aset",
|
||||||
},
|
"path": "basicdata.jenis-jaminan",
|
||||||
{
|
"classes": "",
|
||||||
"title": "Jenis Aset",
|
"attributes": [],
|
||||||
"path": "basicdata.jenis-jaminan",
|
"permission": "",
|
||||||
"classes": "",
|
"roles": [
|
||||||
"attributes": [],
|
"administrator","pemohon-ao","pemohon-eo"
|
||||||
"permission": "",
|
]
|
||||||
"roles": []
|
},
|
||||||
},
|
{
|
||||||
{
|
"title": "Jenis Dokumen",
|
||||||
"title": "Jenis Dokumen",
|
"path": "basicdata.jenis-dokumen",
|
||||||
"path": "basicdata.jenis-dokumen",
|
"classes": "",
|
||||||
"classes": "",
|
"attributes": [],
|
||||||
"attributes": [],
|
"permission": "",
|
||||||
"permission": "",
|
"roles": [
|
||||||
"roles": []
|
"administrator","pemohon-ao","pemohon-eo"
|
||||||
},
|
]
|
||||||
{
|
},
|
||||||
"title": "Tujuan Penilaian",
|
{
|
||||||
"path": "basicdata.tujuan-penilaian",
|
"title": "Tujuan Penilaian",
|
||||||
"classes": "",
|
"path": "basicdata.tujuan-penilaian",
|
||||||
"attributes": [],
|
"classes": "",
|
||||||
"permission": "",
|
"attributes": [],
|
||||||
"roles": []
|
"permission": "",
|
||||||
},
|
"roles": [
|
||||||
{
|
"administrator","pemohon-ao","pemohon-eo"
|
||||||
"title": "Nilai Plafond",
|
]
|
||||||
"path": "basicdata.nilai-plafond",
|
},
|
||||||
"classes": "",
|
{
|
||||||
"attributes": [],
|
"title": "Nilai Plafond",
|
||||||
"permission": "",
|
"path": "basicdata.nilai-plafond",
|
||||||
"roles": []
|
"classes": "",
|
||||||
},
|
"attributes": [],
|
||||||
{
|
"permission": "",
|
||||||
"title": "Hubungan Pemilik Jaminan",
|
"roles": [
|
||||||
"path": "basicdata.hubungan-pemilik-jaminan",
|
"administrator","pemohon-ao","pemohon-eo"
|
||||||
"classes": "",
|
]
|
||||||
"attributes": [],
|
},
|
||||||
"permission": "",
|
{
|
||||||
"roles": []
|
"title": "Hubungan Pemilik Jaminan",
|
||||||
},
|
"path": "basicdata.hubungan-pemilik-jaminan",
|
||||||
{
|
"classes": "",
|
||||||
"title": "Hubungan Penghuni Jaminan",
|
"attributes": [],
|
||||||
"path": "basicdata.hubungan-penghuni-jaminan",
|
"permission": "",
|
||||||
"classes": "",
|
"roles": [
|
||||||
"attributes": [],
|
"administrator","pemohon-ao","pemohon-eo"
|
||||||
"permission": "",
|
]
|
||||||
"roles": []
|
},
|
||||||
},
|
{
|
||||||
{
|
"title": "Hubungan Penghuni Jaminan",
|
||||||
"title": "Arah Mata Angin",
|
"path": "basicdata.hubungan-penghuni-jaminan",
|
||||||
"path": "basicdata.arah-mata-angin",
|
"classes": "",
|
||||||
"classes": "",
|
"attributes": [],
|
||||||
"attributes": [],
|
"permission": "",
|
||||||
"permission": "",
|
"roles": [
|
||||||
"roles": []
|
"administrator","pemohon-ao","pemohon-eo"
|
||||||
},
|
]
|
||||||
{
|
},
|
||||||
"title": "Status Permohonan",
|
{
|
||||||
"path": "basicdata.status-permohonan",
|
"title": "Arah Mata Angin",
|
||||||
"classes": "",
|
"path": "basicdata.arah-mata-angin",
|
||||||
"attributes": [],
|
"classes": "",
|
||||||
"permission": "",
|
"attributes": [],
|
||||||
"roles": []
|
"permission": "",
|
||||||
},
|
"roles": [
|
||||||
{
|
"administrator"
|
||||||
"title": "Region",
|
]
|
||||||
"path": "basicdata.region",
|
},
|
||||||
"classes": "",
|
{
|
||||||
"attributes": [],
|
"title": "Status Permohonan",
|
||||||
"permission": "",
|
"path": "basicdata.status-permohonan",
|
||||||
"roles": []
|
"classes": "",
|
||||||
},
|
"attributes": [],
|
||||||
{
|
"permission": "",
|
||||||
"title": "Staff Appraisal",
|
"roles": [
|
||||||
"path": "basicdata.teams",
|
"administrator"
|
||||||
"classes": "",
|
]
|
||||||
"attributes": [],
|
},
|
||||||
"permission": "",
|
{
|
||||||
"roles": []
|
"title": "Region",
|
||||||
},
|
"path": "basicdata.region",
|
||||||
{
|
"classes": "",
|
||||||
"title": "Jenis Penilaian",
|
"attributes": [],
|
||||||
"path": "basicdata.jenis-penilaian",
|
"permission": "",
|
||||||
"classes": "",
|
"roles": [
|
||||||
"attributes": [],
|
"administrator","admin","so"
|
||||||
"permission": "",
|
]
|
||||||
"roles": []
|
},
|
||||||
},
|
{
|
||||||
{
|
"title": "Staff Appraisal",
|
||||||
"title": "KJPP",
|
"path": "basicdata.teams",
|
||||||
"path": "basicdata.kjpp",
|
"classes": "",
|
||||||
"classes": "",
|
"attributes": [],
|
||||||
"attributes": [],
|
"permission": "",
|
||||||
"permission": "",
|
"roles": [
|
||||||
"roles": []
|
"administrator","so"
|
||||||
},
|
]
|
||||||
{
|
},
|
||||||
"title": "Ijin Usaha",
|
{
|
||||||
"path": "basicdata.ijin_usaha",
|
"title": "Jenis Penilaian",
|
||||||
"classes": "",
|
"path": "basicdata.jenis-penilaian",
|
||||||
"attributes": [],
|
"classes": "",
|
||||||
"permission": "",
|
"attributes": [],
|
||||||
"roles": []
|
"permission": "",
|
||||||
}
|
"roles": [
|
||||||
]
|
"administrator","admin","so"
|
||||||
}
|
]
|
||||||
],
|
},
|
||||||
"system": []
|
{
|
||||||
}
|
"title": "KJPP",
|
||||||
|
"path": "basicdata.kjpp",
|
||||||
|
"classes": "",
|
||||||
|
"attributes": [],
|
||||||
|
"permission": "",
|
||||||
|
"roles": [
|
||||||
|
"administrator","admin"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Tujuan Penilaian KJPP",
|
||||||
|
"path": "basicdata.tujuan_penilaian_kjpp",
|
||||||
|
"classes": "",
|
||||||
|
"attributes": [],
|
||||||
|
"permission": "",
|
||||||
|
"roles": [
|
||||||
|
"administrator","admin"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "Ijin Usaha",
|
||||||
|
"path": "basicdata.ijin_usaha",
|
||||||
|
"classes": "",
|
||||||
|
"attributes": [],
|
||||||
|
"permission": "",
|
||||||
|
"roles": [
|
||||||
|
"administrator","admin"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"system": []
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
138
resources/views/authorization/index.blade.php
Normal file
138
resources/views/authorization/index.blade.php
Normal file
@@ -0,0 +1,138 @@
|
|||||||
|
@extends('layouts.main')
|
||||||
|
|
||||||
|
@section('breadcrumbs')
|
||||||
|
{{ Breadcrumbs::render('authorization') }}
|
||||||
|
@endsection
|
||||||
|
|
||||||
|
@section('content')
|
||||||
|
<div class="grid">
|
||||||
|
<div class="card card-grid min-w-full" data-datatable="false" data-datatable-page-size="5" data-datatable-state-save="false" id="authorization-table" data-api-url="{{ route('authorization.datatables') }}">
|
||||||
|
<div class="card-header py-5 flex-wrap">
|
||||||
|
<h3 class="card-title">
|
||||||
|
Daftar Authorization
|
||||||
|
</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 Authorization" 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>
|
||||||
|
<a class="btn btn-sm btn-primary" href="#"> Tambah Authorization </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-[250px]" data-datatable-column="nomor_registrasi">
|
||||||
|
<span class="sort"> <span class="sort-label"> Nomor Permohonan </span>
|
||||||
|
<span class="sort-icon"> </span> </span>
|
||||||
|
</th>
|
||||||
|
<th class="min-w-[250px]" data-datatable-column="branche_name">
|
||||||
|
<span class="sort"> <span class="sort-label"> Cabang </span>
|
||||||
|
<span class="sort-icon"> </span> </span>
|
||||||
|
</th>
|
||||||
|
<th class="min-w-[250px]" data-datatable-column="debiture_name">
|
||||||
|
<span class="sort"> <span class="sort-label"> Debitur </span>
|
||||||
|
<span class="sort-icon"> </span> </span>
|
||||||
|
</th>
|
||||||
|
<th class="min-w-[250px]" data-datatable-column="nama_tujuan_penilaian">
|
||||||
|
<span class="sort"> <span class="sort-label"> Tujuan Penilain </span>
|
||||||
|
<span class="sort-icon"> </span> </span>
|
||||||
|
</th>
|
||||||
|
<th class="min-w-[250px]" data-datatable-column="account_officer">
|
||||||
|
<span class="sort"> <span class="sort-label"> Account Officer </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
|
||||||
|
|
||||||
|
@push('scripts')
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
|
||||||
|
<script type="module">
|
||||||
|
const element = document.querySelector('#authorization-table');
|
||||||
|
const searchInput = document.getElementById('search');
|
||||||
|
|
||||||
|
const apiUrl = element.getAttribute('data-api-url');
|
||||||
|
const dataTableOptions = {
|
||||||
|
apiEndpoint: apiUrl,
|
||||||
|
pageSize: 5,
|
||||||
|
columns: {
|
||||||
|
select: {
|
||||||
|
render: (item, data, context) => {
|
||||||
|
const checkbox = document.createElement('input');
|
||||||
|
checkbox.className = 'checkbox checkbox-sm';
|
||||||
|
checkbox.type = 'checkbox';
|
||||||
|
checkbox.value = data.id.toString();
|
||||||
|
checkbox.setAttribute('data-datatable-row-check', 'true');
|
||||||
|
return checkbox.outerHTML.trim();
|
||||||
|
},
|
||||||
|
},
|
||||||
|
nomor_registrasi: {
|
||||||
|
title: 'Nomor Registrasi',
|
||||||
|
},
|
||||||
|
branche_name: {
|
||||||
|
title: 'Cabang',
|
||||||
|
},
|
||||||
|
debiture_name: {
|
||||||
|
title: 'Debitur',
|
||||||
|
},
|
||||||
|
nama_tujuan_penilaian: {
|
||||||
|
title: 'Tujuan Penilain',
|
||||||
|
},
|
||||||
|
account_officer: {
|
||||||
|
title: 'Account Officer',
|
||||||
|
},
|
||||||
|
actions: {
|
||||||
|
title: 'Status',
|
||||||
|
render: (item, data) => {
|
||||||
|
return `<div class="flex flex-nowrap justify-center">
|
||||||
|
<a class="btn btn-sm btn-icon btn-clear btn-info" href="/debitur/${data.id}/edit">
|
||||||
|
<i class="ki-outline ki-notepad-edit"></i>
|
||||||
|
</a>
|
||||||
|
<a onclick="deleteData(${data.id})" class="delete btn btn-sm btn-icon btn-clear btn-danger">
|
||||||
|
<i class="ki-outline ki-trash"></i>
|
||||||
|
</a>
|
||||||
|
</div>`;
|
||||||
|
},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
let dataTable = new KTDataTable(element, dataTableOptions);
|
||||||
|
dataTable.showSpinner();
|
||||||
|
// Custom search functionality
|
||||||
|
searchInput.addEventListener('input', function () {
|
||||||
|
const searchValue = this.value.trim();
|
||||||
|
dataTable.search(searchValue, true);
|
||||||
|
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
@endpush
|
||||||
|
|
||||||
77
resources/views/jenis_laporan/create.blade.php
Normal file
77
resources/views/jenis_laporan/create.blade.php
Normal file
@@ -0,0 +1,77 @@
|
|||||||
|
@extends('layouts.main')
|
||||||
|
|
||||||
|
@section('breadcrumbs')
|
||||||
|
{{ Breadcrumbs::render(request()->route()->getName()) }}
|
||||||
|
@endsection
|
||||||
|
|
||||||
|
@section('content')
|
||||||
|
<div class="w-full grid gap-5 lg:gap-7.5 mx-auto">
|
||||||
|
@if (isset($jenisLaporan->id))
|
||||||
|
<form action="{{ route('basicdata.jenis_laporan.update', $jenisLaporan->id) }}" method="POST">
|
||||||
|
<input type="hidden" name="id" value="{{ $jenisLaporan->id }}">
|
||||||
|
@method('PUT')
|
||||||
|
@else
|
||||||
|
<form method="POST" action="{{ route('basicdata.jenis_laporan.store') }}">
|
||||||
|
@endif
|
||||||
|
@csrf
|
||||||
|
<div class="card pb-2.5">
|
||||||
|
<div class="card-header" id="basic_settings">
|
||||||
|
<h3 class="card-title">
|
||||||
|
{{ isset($jenisLaporan->id) ? 'Edit' : 'Tambah' }} Jenis Laporan
|
||||||
|
</h3>
|
||||||
|
<div class="flex items-center gap-2">
|
||||||
|
<a href="{{ route('basicdata.jenis_laporan.index') }}" class="btn btn-xs btn-info"><i
|
||||||
|
class="ki-filled ki-exit-left"></i> Back</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="card-body grid gap-5">
|
||||||
|
@if (isset($jenisLaporan->id))
|
||||||
|
<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 readonly
|
||||||
|
class="input border-warning bg-warning-light @error('code') border-danger @enderror"
|
||||||
|
type="text" name="code" value="{{ $jenisLaporan->code ?? '' }}">
|
||||||
|
@error('code')
|
||||||
|
<em class="alert text-danger text-sm">{{ $message }}</em>
|
||||||
|
@enderror
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
@else
|
||||||
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
|
<label class="form-label max-w-56">
|
||||||
|
Kode Laporan
|
||||||
|
</label>
|
||||||
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
|
<input class="input @error('code') border-danger @enderror" type="text" name="code"
|
||||||
|
value="{{ $ijin_usaha->code ?? old('code') }}">
|
||||||
|
@error('code')
|
||||||
|
<em class="alert text-danger text-sm">{{ $message }}</em>
|
||||||
|
@enderror
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
|
<label class="form-label max-w-56">
|
||||||
|
Nama Laporan
|
||||||
|
</label>
|
||||||
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
|
<input class="input @error('name') border-danger @enderror" type="text" name="name"
|
||||||
|
value="{{ $jenisLaporan->name ?? old('name') }}">
|
||||||
|
@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
|
||||||
153
resources/views/jenis_laporan/index.blade.php
Normal file
153
resources/views/jenis_laporan/index.blade.php
Normal file
@@ -0,0 +1,153 @@
|
|||||||
|
@extends('layouts.main')
|
||||||
|
|
||||||
|
@section('breadcrumbs')
|
||||||
|
{{ Breadcrumbs::render('basicdata.jenis_laporan') }}
|
||||||
|
@endsection
|
||||||
|
|
||||||
|
@section('content')
|
||||||
|
<div class="grid">
|
||||||
|
<div class="card card-grid min-w-full" data-datatable="false" data-datatable-page-size="5"
|
||||||
|
data-datatable-state-save="false" id="jenis-laporan-table"
|
||||||
|
data-api-url="{{ route('basicdata.jenis_laporan.datatables') }}">
|
||||||
|
<div class="card-header py-5 flex-wrap">
|
||||||
|
<h3 class="card-title">
|
||||||
|
Daftar Jenis 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 Jenis Laporan" 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="{{ route('basicdata.jenis_laporan.export') }}"> Export to
|
||||||
|
Excel </a>
|
||||||
|
<a class="btn btn-sm btn-primary" href="{{ route('basicdata.jenis_laporan.create') }}"> Tambah Jenis
|
||||||
|
Laporan </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-[250px]" data-datatable-column="code">
|
||||||
|
<span class="sort"> <span class="sort-label"> Kode Laporan </span>
|
||||||
|
<span class="sort-icon"> </span> </span>
|
||||||
|
</th>
|
||||||
|
<th class="min-w-[250px]" data-datatable-column="name">
|
||||||
|
<span class="sort"> <span class="sort-label"> Jenis Laporan </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
|
||||||
|
|
||||||
|
@push('scripts')
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
function deleteData(data) {
|
||||||
|
Swal.fire({
|
||||||
|
title: 'Are you sure?',
|
||||||
|
text: "You won't be able to revert this!",
|
||||||
|
icon: 'warning',
|
||||||
|
showCancelButton: true,
|
||||||
|
confirmButtonColor: '#3085d6',
|
||||||
|
cancelButtonColor: '#d33',
|
||||||
|
confirmButtonText: 'Yes, delete it!'
|
||||||
|
}).then((result) => {
|
||||||
|
if (result.isConfirmed) {
|
||||||
|
$.ajaxSetup({
|
||||||
|
headers: {
|
||||||
|
'X-CSRF-TOKEN': '{{ csrf_token() }}'
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
$.ajax(`basic-data/jenis_laporan/${data}`, {
|
||||||
|
type: 'DELETE'
|
||||||
|
}).then((response) => {
|
||||||
|
swal.fire('Deleted!', 'User has been deleted.', 'success').then(() => {
|
||||||
|
window.location.reload();
|
||||||
|
});
|
||||||
|
}).catch((error) => {
|
||||||
|
console.error('Error:', error);
|
||||||
|
Swal.fire('Error!', 'An error occurred while deleting the file.', 'error');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<script type="module">
|
||||||
|
const element = document.querySelector('#jenis-laporan-table');
|
||||||
|
const searchInput = document.getElementById('search');
|
||||||
|
|
||||||
|
const apiUrl = element.getAttribute('data-api-url');
|
||||||
|
const dataTableOptions = {
|
||||||
|
apiEndpoint: apiUrl,
|
||||||
|
pageSize: 5,
|
||||||
|
columns: {
|
||||||
|
select: {
|
||||||
|
render: (item, data, context) => {
|
||||||
|
const checkbox = document.createElement('input');
|
||||||
|
checkbox.className = 'checkbox checkbox-sm';
|
||||||
|
checkbox.type = 'checkbox';
|
||||||
|
checkbox.value = data.id.toString();
|
||||||
|
checkbox.setAttribute('data-datatable-row-check', 'true');
|
||||||
|
return checkbox.outerHTML.trim();
|
||||||
|
},
|
||||||
|
},
|
||||||
|
code: {
|
||||||
|
title: 'Code',
|
||||||
|
},
|
||||||
|
name: {
|
||||||
|
title: 'Jenis Laporan',
|
||||||
|
},
|
||||||
|
actions: {
|
||||||
|
title: 'Status',
|
||||||
|
render: (item, data) => {
|
||||||
|
return `<div class="flex flex-nowrap justify-center">
|
||||||
|
<a class="btn btn-sm btn-icon btn-clear btn-info" href="basic-data/jenis_laporan/${data.id}/edit">
|
||||||
|
<i class="ki-outline ki-notepad-edit"></i>
|
||||||
|
</a>
|
||||||
|
<a onclick="deleteData(${data.id})" class="delete btn btn-sm btn-icon btn-clear btn-danger">
|
||||||
|
<i class="ki-outline ki-trash"></i>
|
||||||
|
</a>
|
||||||
|
</div>`;
|
||||||
|
},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
let dataTable = new KTDataTable(element, dataTableOptions);
|
||||||
|
// Custom search functionality
|
||||||
|
searchInput.addEventListener('input', function() {
|
||||||
|
const searchValue = this.value.trim();
|
||||||
|
dataTable.search(searchValue, true);
|
||||||
|
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
@endpush
|
||||||
@@ -32,7 +32,7 @@
|
|||||||
</label>
|
</label>
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
<input class="input @error('code') border-danger @enderror" type="text" name="code"
|
<input class="input @error('code') border-danger @enderror" type="text" name="code"
|
||||||
value="{{ $kjpp->code ?? old('code') }}">
|
value="{{ isset($kjpp->id) ? $kjpp->code : (empty($kjpp->id) ? $fullKjppNumber : old('code')) }}">
|
||||||
@error('code')
|
@error('code')
|
||||||
<em class="alert text-danger text-sm">{{ $message }}</em>
|
<em class="alert text-danger text-sm">{{ $message }}</em>
|
||||||
@enderror
|
@enderror
|
||||||
@@ -49,11 +49,11 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
<label class="form-label max-w-56">Jenis Kantor / Cabang</label>
|
<label class="form-label max-w-56">Jenis Kantor</label>
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
<select class="input tomselect @error('jenis_kantor') border-danger @enderror"
|
<select id="jenis_kantor" class="select w-full @error('jenis_kantor') border-danger @enderror"
|
||||||
name="jenis_kantor">
|
name="jenis_kantor">
|
||||||
<option value="">Pilih Jenis Kantor / Cabang</option>
|
<option value="">Pilih Jenis Kantor</option>
|
||||||
@if (isset($branch))
|
@if (isset($branch))
|
||||||
@if (isset($kjpp))
|
@if (isset($kjpp))
|
||||||
@foreach ($branch as $branches)
|
@foreach ($branch as $branches)
|
||||||
@@ -78,7 +78,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<label class="form-label max-w-56">Nomor Ijin Usaha</label>
|
<label class="form-label max-w-56">Nomor Ijin Usaha</label>
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
<select class="input tomselect @error('nomor_ijin_usaha') border-danger @enderror"
|
<select id="nomor_ijin_usaha"
|
||||||
|
class="select w-full @error('nomor_ijin_usaha') border-danger @enderror"
|
||||||
name="nomor_ijin_usaha">
|
name="nomor_ijin_usaha">
|
||||||
<option value="">Pilih Nomor Ijin Usaha</option>
|
<option value="">Pilih Nomor Ijin Usaha</option>
|
||||||
@if (isset($ijin_usaha))
|
@if (isset($ijin_usaha))
|
||||||
@@ -345,46 +346,42 @@
|
|||||||
<label class="form-label max-w-56">
|
<label class="form-label max-w-56">
|
||||||
Ijin Usaha
|
Ijin Usaha
|
||||||
</label>
|
</label>
|
||||||
<div class="grid grid-cols-3 lg:grid-cols-4 w-full gap-2.5">
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
@foreach ($ijin_usaha as $row)
|
<select name="ijin_usaha_id[]" multiple="multiple"
|
||||||
<label class="switch">
|
class="input tomselect w-full @error('ijin_usaha_id') border-danger @enderror"
|
||||||
@if (isset($kjpp->ijin_usaha_id))
|
id="ijin_usaha_select">
|
||||||
<input type="checkbox"
|
<option value="">Pilih Ijin Usaha</option>
|
||||||
@if (in_array($row->code, old('ijin_usaha_id', json_decode($kjpp->ijin_usaha_id, true)))) {{ 'checked' }} @endif
|
@foreach ($ijin_usaha as $row)
|
||||||
value="{{ $row->code }}" name="ijin_usaha_id[]" />
|
<option value="{{ $row->code }}"
|
||||||
@else
|
{{ isset($kjpp->ijin_usaha_id) ? (in_array($row->code, old('ijin_usaha_id', json_decode($kjpp->ijin_usaha_id, true))) ? 'selected' : '') : (in_array($row->code, old('ijin_usaha_id', [])) ? 'selected' : '') }}>
|
||||||
<input type="checkbox"
|
|
||||||
@if (in_array($row->code, old('ijin_usaha_id', []))) {{ 'checked' }} @endif
|
|
||||||
value="{{ $row->code }}" name="ijin_usaha_id[]" />
|
|
||||||
@endif
|
|
||||||
<span class="switch-label">
|
|
||||||
{{ $row->name }}
|
{{ $row->name }}
|
||||||
</span>
|
</option>
|
||||||
</label>
|
@endforeach
|
||||||
@endforeach
|
</select>
|
||||||
|
@error('ijin_usaha_id')
|
||||||
|
<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">
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
<label class="form-label max-w-56">
|
<label class="form-label max-w-56">
|
||||||
Pengalaman (Jenis Aset)
|
Pengalaman (Jenis Aset)
|
||||||
</label>
|
</label>
|
||||||
<div class="grid grid-cols-3 lg:grid-cols-4 w-full gap-2.5">
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
@foreach ($jenis_aset as $row)
|
<select name="jenis_aset_id[]" multiple="multiple"
|
||||||
<label class="switch">
|
class="input tomselect w-full @error('jenis_aset_id') border-danger @enderror"
|
||||||
@if (isset($kjpp->jenis_aset_id))
|
id="jenis_aset_select">
|
||||||
<input type="checkbox"
|
<option value="">Pilih Jenis Aset</option>
|
||||||
@if (in_array($row->code, old('jenis_aset_id', json_decode($kjpp->jenis_aset_id, true)))) {{ 'checked' }} @endif
|
@foreach ($jenis_aset as $row)
|
||||||
value="{{ $row->code }}" name="jenis_aset_id[]" />
|
<option value="{{ $row->code }}"
|
||||||
@else
|
{{ in_array($row->code, old('jenis_aset_id', json_decode($kjpp->jenis_aset_id ?? '[]', true))) ? 'selected' : '' }}>
|
||||||
<input type="checkbox"
|
|
||||||
@if (in_array($row->code, old('jenis_aset_id', []))) {{ 'checked' }} @endif
|
|
||||||
value="{{ $row->code }}" name="jenis_aset_id[]" />
|
|
||||||
@endif
|
|
||||||
<span class="switch-label">
|
|
||||||
{{ $row->name }}
|
{{ $row->name }}
|
||||||
</span>
|
</option>
|
||||||
</label>
|
@endforeach
|
||||||
@endforeach
|
</select>
|
||||||
|
@error('jenis_aset_id')
|
||||||
|
<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">
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
|
|||||||
@@ -45,7 +45,7 @@
|
|||||||
<span class="sort-icon"> </span> </span>
|
<span class="sort-icon"> </span> </span>
|
||||||
</th>
|
</th>
|
||||||
<th class="min-w-[50px]" data-datatable-column="jenis_kantor">
|
<th class="min-w-[50px]" data-datatable-column="jenis_kantor">
|
||||||
<span class="sort"> <span class="sort-label"> Jenis Kantor / Cabang </span>
|
<span class="sort"> <span class="sort-label"> Jenis Kantor </span>
|
||||||
<span class="sort-icon"> </span> </span>
|
<span class="sort-icon"> </span> </span>
|
||||||
</th>
|
</th>
|
||||||
<th class="min-w-[50px] text-center" data-datatable-column="actions">Action</th>
|
<th class="min-w-[50px] text-center" data-datatable-column="actions">Action</th>
|
||||||
@@ -130,7 +130,7 @@
|
|||||||
title: 'Nama KJPP',
|
title: 'Nama KJPP',
|
||||||
},
|
},
|
||||||
jenis_kantor: {
|
jenis_kantor: {
|
||||||
title: 'Jenis Kantor / Cabang',
|
title: 'Jenis Kantor',
|
||||||
},
|
},
|
||||||
actions: {
|
actions: {
|
||||||
title: 'Action',
|
title: 'Action',
|
||||||
|
|||||||
@@ -33,7 +33,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
<label class="form-label max-w-56">Jenis Kantor / Cabang</label>
|
<label class="form-label max-w-56">Jenis Kantor</label>
|
||||||
<div class="flex flex-wrap items-baseline w-full">
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
<p class="flex w-full text-gray-600 font-medium text-sm">
|
<p class="flex w-full text-gray-600 font-medium text-sm">
|
||||||
@foreach ($branches as $branch)
|
@foreach ($branches as $branch)
|
||||||
@@ -63,7 +63,7 @@
|
|||||||
{{ $district->name }}
|
{{ $district->name }}
|
||||||
@endforeach ,
|
@endforeach ,
|
||||||
@foreach ($cities as $city)
|
@foreach ($cities as $city)
|
||||||
{{ $city->name }}
|
{{ ucwords(strtolower($city->name)) }}
|
||||||
@endforeach ,
|
@endforeach ,
|
||||||
@foreach ($provinces as $province)
|
@foreach ($provinces as $province)
|
||||||
{{ $province->name }}
|
{{ $province->name }}
|
||||||
@@ -148,32 +148,50 @@
|
|||||||
<label class="form-label max-w-56">
|
<label class="form-label max-w-56">
|
||||||
Ijin Usaha
|
Ijin Usaha
|
||||||
</label>
|
</label>
|
||||||
<div class="grid grid-cols-3 lg:grid-cols-4 w-full gap-2.5">
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
@foreach ($ijin_usahas as $row)
|
@if (isset($kjpp->ijin_usaha_id))
|
||||||
<label class="switch">
|
<div class="flex flex-row space-x-4 text-gray-600 font-medium text-sm gap-1">
|
||||||
<input type="checkbox" @if (in_array($row->code, old('ijin_usaha_id', json_decode($kjpp->ijin_usaha_id, true)))) {{ 'checked' }} @endif
|
@foreach (json_decode($kjpp->ijin_usaha_id, true) as $ijin_code)
|
||||||
value="{{ $row->code }}" name="ijin_usaha_id[]" disabled="" />
|
@php
|
||||||
<span class="switch-label">
|
$ijin_usaha = $ijin_usahas->firstWhere('code', $ijin_code);
|
||||||
{{ $row->name }}
|
@endphp
|
||||||
</span>
|
@if ($ijin_usaha)
|
||||||
</label>
|
<div
|
||||||
@endforeach
|
class="flex flex-row space-x-4 text-white font-medium text-sm badge badge-dark dark-mode:badge dark-mode:text-gray-600">
|
||||||
|
{{ $ijin_usaha->name }}
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
|
@endforeach
|
||||||
|
</div>
|
||||||
|
@else
|
||||||
|
<div class="flex flex-row space-x-4 text-white font-medium text-sm dark-mode:text-gray-600">No
|
||||||
|
business license
|
||||||
|
selected.</div>
|
||||||
|
@endif
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
<label class="form-label max-w-56">
|
<label class="form-label max-w-56">
|
||||||
Pengalaman (Jenis Aset)
|
Pengalaman (Jenis Aset)
|
||||||
</label>
|
</label>
|
||||||
<div class="grid grid-cols-3 lg:grid-cols-4 w-full gap-2.5">
|
<div class="flex flex-wrap items-baseline w-full gap-1">
|
||||||
@foreach ($jenis_jaminan as $row)
|
@if (isset($kjpp->jenis_aset_id))
|
||||||
<label class="switch">
|
@foreach (json_decode($kjpp->jenis_aset_id, true) as $aset_code)
|
||||||
<input type="checkbox" @if (in_array($row->code, old('jenis_aset_id', json_decode($kjpp->jenis_aset_id, true)))) {{ 'checked' }} @endif
|
@php
|
||||||
value="{{ $row->code }}" name="jenis_aset_id[]" disabled="" />
|
$jenis_aset = $jenis_jaminan->firstWhere('code', $aset_code);
|
||||||
<span class="switch-label">
|
@endphp
|
||||||
{{ $row->name }}
|
@if ($jenis_aset)
|
||||||
</span>
|
<span
|
||||||
</label>
|
class="flex flex-row space-x-4 text-white font-medium text-sm badge badge-dark dark-mode:badge dark-mode:text-gray-600">
|
||||||
@endforeach
|
{{ $jenis_aset->name }}
|
||||||
|
</span>
|
||||||
|
@endif
|
||||||
|
@endforeach
|
||||||
|
@else
|
||||||
|
<span class="flex flex-row space-x-4 text-white font-medium text-sm dark-mode:text-gray-600">
|
||||||
|
No asset type selected.
|
||||||
|
</span>
|
||||||
|
@endif
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
|
|||||||
@@ -1,22 +1,195 @@
|
|||||||
@extends('layouts.main')
|
@extends('layouts.main')
|
||||||
|
|
||||||
@section('breadcrumbs')
|
@section('breadcrumbs')
|
||||||
{{ Breadcrumbs::render('tender.penawaran') }}
|
{{ Breadcrumbs::render(request()->route()->getName(), request()->route('id')) }}
|
||||||
@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">
|
||||||
|
<form action="{{ route('tender.penawaran.storePenawaran', $id) }}" method="POST">
|
||||||
|
@csrf
|
||||||
|
|
||||||
<div class="card pb-2.5">
|
<div class="card pb-2.5">
|
||||||
<div class="card-header" id="basic_settings">
|
<div class="card-header" id="basic_settings">
|
||||||
<h3 class="card-title">
|
<h3 class="card-title">
|
||||||
Tambah Data Penawaran
|
Tambah Data Penawaran
|
||||||
</h3>
|
</h3>
|
||||||
|
<div class="flex items-center gap-2">
|
||||||
|
<a href="{{ route('tender.penawaran.show', $id) }}" class="btn btn-xs btn-primary" title="Detail"><i
|
||||||
|
class="ki-outline ki-abstract-26"></i> Detail</a>
|
||||||
|
<a href="{{ route('tender.penawaran.index') }}" class="btn btn-xs btn-info"><i
|
||||||
|
class="ki-filled ki-exit-left"></i>
|
||||||
|
Back</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<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">
|
||||||
|
Nomor Registrasi
|
||||||
|
</label>
|
||||||
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
|
<input type="text" value="{{ $penawaran->nomor_registrasi ?? '-' }}" name="nomor_registrasi"
|
||||||
|
class="flex w-full text-gray-600 font-medium text-sm" readonly>
|
||||||
|
@error('nomor_registrasi')
|
||||||
|
<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">
|
||||||
|
Nomor Penawaran
|
||||||
|
</label>
|
||||||
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
|
<input class="input @error('code') border-danger @enderror" type="text" name="code"
|
||||||
|
value="{{ old('code') }}">
|
||||||
|
@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">
|
||||||
|
Nama KJPP Sebelumnya
|
||||||
|
</label>
|
||||||
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
|
<select name="nama_kjpp_sebelumnya[]" multiple="multiple"
|
||||||
|
class="input tomselect w-full @error('nama_kjpp_sebelumnya') border-danger @enderror"
|
||||||
|
id="nama_kjpp_sebelumnya_select">
|
||||||
|
<option value="">Pilih Nama KJPP Sebelumnya</option>
|
||||||
|
@foreach ($kjpp as $row)
|
||||||
|
<option value="{{ $row->name }}"
|
||||||
|
{{ in_array($row->name, old('nama_kjpp_sebelumnya', [])) ? 'selected' : '' }}>
|
||||||
|
{{ $row->name }}
|
||||||
|
</option>
|
||||||
|
@endforeach
|
||||||
|
</select>
|
||||||
|
@error('nama_kjpp_sebelumnya')
|
||||||
|
<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">
|
||||||
|
Biaya KJPP Sebelumnya
|
||||||
|
</label>
|
||||||
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
|
<input class="input @error('biaya_kjpp_sebelumnya') border-danger @enderror" type="text"
|
||||||
|
name="biaya_kjpp_sebelumnya" value="{{ old('biaya_kjpp_sebelumnya') }}">
|
||||||
|
@error('biaya_kjpp_sebelumnya')
|
||||||
|
<em class="alert text-danger text-sm">{{ $message }}</em>
|
||||||
|
@enderror
|
||||||
|
</div>
|
||||||
|
<label class="form-label max-w-56">
|
||||||
|
Tanggal Penilaian Sebelumnya
|
||||||
|
</label>
|
||||||
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
|
<input class="input @error('tanggal_penilaian_sebelumnya') border-danger @enderror"
|
||||||
|
type="date" name="tanggal_penilaian_sebelumnya"
|
||||||
|
value="{{ old('tanggal_penilaian_sebelumnya') }}">
|
||||||
|
@error('tanggal_penilaian_sebelumnya')
|
||||||
|
<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">
|
||||||
|
Tujuan Penilaian KJPP
|
||||||
|
</label>
|
||||||
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
|
<select id="tujuan_penilaian_kjpp_id"
|
||||||
|
class="select w-full @error('tujuan_penilaian_kjpp_id') border-danger @enderror"
|
||||||
|
name="tujuan_penilaian_kjpp_id">
|
||||||
|
<option value="">Pilih Tujuan Penilaian KJPP</option>
|
||||||
|
@if (isset($tujuan_penilaian_kjpp))
|
||||||
|
@foreach ($tujuan_penilaian_kjpp as $tp)
|
||||||
|
<option value="{{ $tp->id }}"
|
||||||
|
{{ old('tujuan_penilaian_kjpp_id') == $tp->id ? 'selected' : '' }}>
|
||||||
|
{{ $tp->name }}
|
||||||
|
</option>
|
||||||
|
@endforeach
|
||||||
|
@endif
|
||||||
|
</select>
|
||||||
|
@error('tujuan_penilaian_kjpp_id')
|
||||||
|
<em class="alert text-danger text-sm">{{ $message }}</em>
|
||||||
|
@enderror
|
||||||
|
</div>
|
||||||
|
<label class="form-label max-w-56">
|
||||||
|
Jenis Laporan
|
||||||
|
</label>
|
||||||
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
|
<select id="jenis_laporan_id"
|
||||||
|
class="select w-full @error('jenis_laporan_id') border-danger @enderror"
|
||||||
|
name="jenis_laporan_id">
|
||||||
|
<option value="">Pilih Jenis Laporan</option>
|
||||||
|
@if (isset($jenis_laporan))
|
||||||
|
@foreach ($jenis_laporan as $jl)
|
||||||
|
<option value="{{ $jl->id }}"
|
||||||
|
{{ old('jenis_laporan_id') == $jl->id ? 'selected' : '' }}>
|
||||||
|
{{ $jl->name }}
|
||||||
|
</option>
|
||||||
|
@endforeach
|
||||||
|
@endif
|
||||||
|
</select>
|
||||||
|
@error('jenis_laporan_id')
|
||||||
|
<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 Awal
|
||||||
|
</label>
|
||||||
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
|
<input class="input @error('start_date') border-danger @enderror" type="date"
|
||||||
|
name="start_date" value="{{ old('start_date') }}">
|
||||||
|
@error('start_date')
|
||||||
|
<em class="alert text-danger text-sm">{{ $message }}</em>
|
||||||
|
@enderror
|
||||||
|
</div>
|
||||||
|
<label class="form-label max-w-56">
|
||||||
|
Tanggal Akhir
|
||||||
|
</label>
|
||||||
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
|
<input class="input @error('end_date') border-danger @enderror" type="date" name="end_date"
|
||||||
|
value="{{ old('end_date') }}">
|
||||||
|
@error('end_date')
|
||||||
|
<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">
|
||||||
|
Catatan
|
||||||
|
</label>
|
||||||
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
|
<textarea class="textarea @error('catatan') border-danger @enderror" name="catatan" rows="3" id="address">{{ old('catatan') }}</textarea>
|
||||||
|
@error('catatan')
|
||||||
|
<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">Status</label>
|
||||||
|
<select id="status" class="select w-full @error('status') border-danger @enderror"
|
||||||
|
name="status">
|
||||||
|
<option value="">Pilih Status</option>
|
||||||
|
@if (isset($status))
|
||||||
|
@foreach ($status as $s)
|
||||||
|
<option value="{{ $s->name }}"
|
||||||
|
{{ old('status') == $s->name ? 'selected' : '' }}>
|
||||||
|
{{ $s->name }}
|
||||||
|
</option>
|
||||||
|
@endforeach
|
||||||
|
@endif
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<div class="flex justify-end">
|
||||||
|
<button type="submit" class="btn btn-primary">
|
||||||
|
Save
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-body">
|
</form>
|
||||||
{{-- @include('lpj::debitur.form') --}}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
@endsection
|
@endsection
|
||||||
|
|||||||
@@ -7,15 +7,173 @@
|
|||||||
@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 pb-2.5" data-datatable="false" data-datatable-page-size="5" data-datatable-state-save="false"
|
<div class="card card-grid min-w-full" data-datatable="false" data-datatable-page-size="5"
|
||||||
id="currency-table" data-api-url="{{ route('basicdata.currency.datatables') }}">
|
data-datatable-state-save="false" id="penawaran-table" data-api-url="{{ route('tender.penawaran.datatables') }}">
|
||||||
<div class="card-header py-5 flex-wrap" id="basic_settings">
|
<div class="card-header py-5 flex-wrap" id="basic_settings">
|
||||||
<h3 class="card-title">
|
<h3 class="card-title">
|
||||||
Data Penawaran
|
Data Penawaran
|
||||||
</h3>
|
</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 KJPP" 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="{{ route('tender.penawaran.exportPenawaran') }}"> Export to
|
||||||
|
Excel
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-body">
|
<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-[250px]" data-datatable-column="code">
|
||||||
|
<span class="sort"> <span class="sort-label"> Nomor Penawaran </span>
|
||||||
|
<span class="sort-icon"> </span> </span>
|
||||||
|
</th>
|
||||||
|
<th class="min-w-[250px]" data-datatable-column="nama_kjpp_sebelumnya">
|
||||||
|
<span class="sort"> <span class="sort-label"> Nama KJPP Sebelumnya </span>
|
||||||
|
<span class="sort-icon"> </span> </span>
|
||||||
|
</th>
|
||||||
|
<th class="min-w-[50px]" data-datatable-column="tanggal_penilaian_sebelumnya">
|
||||||
|
<span class="sort"> <span class="sort-label"> Tanggal Penilaian Sebelumnya </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>
|
||||||
</div>
|
</div>
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
|
@push('scripts')
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
function formatDate(date) {
|
||||||
|
const day = date.getDate().toString().padStart(2, '0');
|
||||||
|
const month = (date.getMonth() + 1).toString().padStart(2, '0');
|
||||||
|
// Months are 0-indexed
|
||||||
|
const year = date.getFullYear();
|
||||||
|
|
||||||
|
return `${day} ${getIndonesianMonth(month)} ${year}`;
|
||||||
|
}
|
||||||
|
|
||||||
|
function getIndonesianMonth(month) {
|
||||||
|
const months = ['Januari', 'Februari', 'Maret', 'April', 'Mei', 'Juni',
|
||||||
|
'Juli', 'Agustus', 'September', 'Oktober', 'November', 'Desember'
|
||||||
|
];
|
||||||
|
return months[month -
|
||||||
|
1];
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
function deleteData(data) {
|
||||||
|
Swal.fire({
|
||||||
|
title: 'Are you sure?',
|
||||||
|
text: "You won't be able to revert this!",
|
||||||
|
icon: 'warning',
|
||||||
|
showCancelButton: true,
|
||||||
|
confirmButtonColor: '#3085d6',
|
||||||
|
cancelButtonColor: '#d33',
|
||||||
|
confirmButtonText: 'Yes, delete it!'
|
||||||
|
}).then((result) => {
|
||||||
|
if (result.isConfirmed) {
|
||||||
|
$.ajaxSetup({
|
||||||
|
headers: {
|
||||||
|
'X-CSRF-TOKEN': '{{ csrf_token() }}'
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
$.ajax(`tender/penawaran/${data}`, {
|
||||||
|
type: 'DELETE'
|
||||||
|
}).then((response) => {
|
||||||
|
swal.fire('Deleted!', 'User has been deleted.', 'success').then(() => {
|
||||||
|
window.location.reload();
|
||||||
|
});
|
||||||
|
}).catch((error) => {
|
||||||
|
console.error('Error:', error);
|
||||||
|
Swal.fire('Error!', 'An error occurred while deleting the file.', 'error');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<script type="module">
|
||||||
|
const element = document.querySelector('#penawaran-table');
|
||||||
|
const searchInput = document.getElementById('search');
|
||||||
|
|
||||||
|
const apiUrl = element.getAttribute('data-api-url');
|
||||||
|
const dataTableOptions = {
|
||||||
|
apiEndpoint: apiUrl,
|
||||||
|
pageSize: 5,
|
||||||
|
columns: {
|
||||||
|
select: {
|
||||||
|
render: (item, data, context) => {
|
||||||
|
const checkbox = document.createElement('input');
|
||||||
|
checkbox.className = 'checkbox checkbox-sm';
|
||||||
|
checkbox.type = 'checkbox';
|
||||||
|
checkbox.value = data.id.toString();
|
||||||
|
checkbox.setAttribute('data-datatable-row-check', 'true');
|
||||||
|
return checkbox.outerHTML.trim();
|
||||||
|
},
|
||||||
|
},
|
||||||
|
code: {
|
||||||
|
title: 'Nomor Penawaran',
|
||||||
|
},
|
||||||
|
nama_kjpp_sebelumnya: {
|
||||||
|
title: 'Nama KJPP Sebelumnya',
|
||||||
|
},
|
||||||
|
tanggal_penilaian_sebelumnya: {
|
||||||
|
title: 'Tanggal Penilaian Sebelumnya',
|
||||||
|
render: (item, data) => formatDate(new Date(data.tanggal_penilaian_sebelumnya))
|
||||||
|
},
|
||||||
|
actions: {
|
||||||
|
title: 'Action',
|
||||||
|
render: (item, data) => {
|
||||||
|
return `<div class="flex flex-nowrap justify-center">
|
||||||
|
<a class="btn btn-sm btn-icon btn-clear btn-primary" title="Detail" href="tender/penawaran/${data.id}/show">
|
||||||
|
<i class="ki-outline ki-abstract-26"></i>
|
||||||
|
</a>
|
||||||
|
<a class="btn btn-sm btn-icon btn-clear btn-info" title="Penawaran" href="tender/penawaran/${data.id}/create">
|
||||||
|
<i class="ki-outline ki-arrow-circle-right"></i>
|
||||||
|
</a>
|
||||||
|
|
||||||
|
</div>`;
|
||||||
|
},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
let dataTable = new KTDataTable(element, dataTableOptions);
|
||||||
|
// Custom search functionality
|
||||||
|
searchInput.addEventListener('input', function() {
|
||||||
|
const searchValue = this.value.trim();
|
||||||
|
dataTable.search(searchValue, true);
|
||||||
|
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
@endpush
|
||||||
|
|||||||
36
resources/views/penawaran/show.blade.php
Normal file
36
resources/views/penawaran/show.blade.php
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
@extends('layouts.main')
|
||||||
|
|
||||||
|
@section('breadcrumbs')
|
||||||
|
{{ Breadcrumbs::render(request()->route()->getName(), request()->route('id')) }}
|
||||||
|
@endsection
|
||||||
|
|
||||||
|
@section('content')
|
||||||
|
<div class="w-full grid gap-5 lg:gap-7.5 mx-auto">
|
||||||
|
<div class="card pb-2.5">
|
||||||
|
<div class="card-header" id="basic_settings">
|
||||||
|
<h3 class="card-title">
|
||||||
|
Detail Penawaran
|
||||||
|
</h3>
|
||||||
|
<div class="flex items-center gap-2">
|
||||||
|
<a href="{{ route('tender.penawaran.createPenawaran', $id) }}" class="btn btn-xs btn-primary"
|
||||||
|
title="Penawaran"><i class="ki-filled ki-arrow-circle-right"></i> Penawaran</a>
|
||||||
|
<a href="{{ route('tender.penawaran.index') }}" class="btn btn-xs btn-info"><i
|
||||||
|
class="ki-filled ki-exit-left"></i> Back</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<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">
|
||||||
|
No. registrasi
|
||||||
|
</label>
|
||||||
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
|
<p class="flex w-full text-gray-600 font-medium text-sm">
|
||||||
|
{{ $penawaran->nomor_registrasi }}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
@endsection
|
||||||
@@ -244,7 +244,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer flex justify-end">
|
<div class="card-footer flex justify-end">
|
||||||
<button type="submit" name="status" value="register" class="btn btn-success">
|
<button type="submit" name="status" value="preregister" class="btn btn-success">
|
||||||
Approve
|
Approve
|
||||||
</button>
|
</button>
|
||||||
<button type="submit" name="status" value="revisi" class="btn btn-warning ml-3">
|
<button type="submit" name="status" value="revisi" class="btn btn-warning ml-3">
|
||||||
|
|||||||
@@ -7,7 +7,8 @@
|
|||||||
@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" data-datatable-state-save="false" id="permohonan-table" data-api-url="{{ route('permohonan.datatables') }}">
|
<div class="card card-grid min-w-full" data-datatable="false" data-datatable-page-size="5"
|
||||||
|
data-datatable-state-save="false" id="permohonan-table" data-api-url="{{ route('permohonan.datatables') }}">
|
||||||
<div class="card-header py-5 flex-wrap">
|
<div class="card-header py-5 flex-wrap">
|
||||||
<h3 class="card-title">
|
<h3 class="card-title">
|
||||||
Daftar Permohonan
|
Daftar Permohonan
|
||||||
@@ -27,46 +28,48 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<div class="scrollable-x-auto">
|
<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">
|
<table class="table table-auto table-border align-middle text-gray-700 font-medium text-sm"
|
||||||
|
data-datatable-table="true">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="w-14">
|
<th class="w-14">
|
||||||
<input class="checkbox checkbox-sm" data-datatable-check="true" type="checkbox"/>
|
<input class="checkbox checkbox-sm" data-datatable-check="true" type="checkbox" />
|
||||||
</th>
|
</th>
|
||||||
<th class="min-w-[150px]" data-datatable-column="nomor_registrasi">
|
<th class="min-w-[150px]" data-datatable-column="nomor_registrasi">
|
||||||
<span class="sort"> <span class="sort-label"> Nomor Registrasi </span>
|
<span class="sort"> <span class="sort-label"> Nomor Registrasi </span>
|
||||||
<span class="sort-icon"> </span> </span>
|
<span class="sort-icon"> </span> </span>
|
||||||
</th>
|
</th>
|
||||||
<th class="min-w-[150px]" data-datatable-column="tanggal_permohonan">
|
<th class="min-w-[150px]" data-datatable-column="tanggal_permohonan">
|
||||||
<span class="sort"> <span class="sort-label"> Tanggal Permohonan </span>
|
<span class="sort"> <span class="sort-label"> Tanggal Permohonan </span>
|
||||||
<span class="sort-icon"> </span> </span>
|
<span class="sort-icon"> </span> </span>
|
||||||
</th>
|
</th>
|
||||||
<th class="min-w-[150px]" data-datatable-column="user_id">
|
<th class="min-w-[150px]" data-datatable-column="user_id">
|
||||||
<span class="sort"> <span class="sort-label"> User Pemohon </span>
|
<span class="sort"> <span class="sort-label"> User Pemohon </span>
|
||||||
<span class="sort-icon"> </span> </span>
|
<span class="sort-icon"> </span> </span>
|
||||||
</th>
|
</th>
|
||||||
<th class="min-w-[150px]" data-datatable-column="branch_id">
|
<th class="min-w-[150px]" data-datatable-column="branch_id">
|
||||||
<span class="sort"> <span class="sort-label"> Cabang Pemohon </span>
|
<span class="sort"> <span class="sort-label"> Cabang Pemohon </span>
|
||||||
<span class="sort-icon"> </span> </span>
|
<span class="sort-icon"> </span> </span>
|
||||||
</th>
|
</th>
|
||||||
<th class="min-w-[150px]" data-datatable-column="debitur_id">
|
<th class="min-w-[150px]" data-datatable-column="debitur_id">
|
||||||
<span class="sort"> <span class="sort-label"> Debitur </span>
|
<span class="sort"> <span class="sort-label"> Debitur </span>
|
||||||
<span class="sort-icon"> </span> </span>
|
<span class="sort-icon"> </span> </span>
|
||||||
</th>
|
</th>
|
||||||
<th class="min-w-[150px]" data-datatable-column="tujuan_penilaian_id">
|
<th class="min-w-[150px]" data-datatable-column="tujuan_penilaian_id">
|
||||||
<span class="sort"> <span class="sort-label"> Tujuan Penilaian </span>
|
<span class="sort"> <span class="sort-label"> Tujuan Penilaian </span>
|
||||||
<span class="sort-icon"> </span> </span>
|
<span class="sort-icon"> </span> </span>
|
||||||
</th>
|
</th>
|
||||||
<th class="min-w-[150px]" data-datatable-column="status">
|
<th class="min-w-[150px]" data-datatable-column="status">
|
||||||
<span class="sort"> <span class="sort-label"> Status </span>
|
<span class="sort"> <span class="sort-label"> Status </span>
|
||||||
<span class="sort-icon"> </span> </span>
|
<span class="sort-icon"> </span> </span>
|
||||||
</th>
|
</th>
|
||||||
<th class="min-w-[50px] text-center" data-datatable-column="actions">Action</th>
|
<th class="min-w-[50px] text-center" data-datatable-column="actions">Action</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</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="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">
|
<div class="flex items-center gap-2">
|
||||||
Show
|
Show
|
||||||
<select class="select select-sm w-16" data-datatable-size="true" name="perpage"> </select> per page
|
<select class="select select-sm w-16" data-datatable-size="true" name="perpage"> </select> per page
|
||||||
@@ -98,7 +101,7 @@
|
|||||||
if (result.isConfirmed) {
|
if (result.isConfirmed) {
|
||||||
$.ajaxSetup({
|
$.ajaxSetup({
|
||||||
headers: {
|
headers: {
|
||||||
'X-CSRF-TOKEN': '{{ csrf_token() }}'
|
'X-CSRF-TOKEN': '{{ csrf_token() }}'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -171,11 +174,12 @@
|
|||||||
actions: {
|
actions: {
|
||||||
title: 'Status',
|
title: 'Status',
|
||||||
render: (item, data) => {
|
render: (item, data) => {
|
||||||
return `<div class="flex flex-nowrap justify-center">
|
return `
|
||||||
<a class="btn btn-sm btn-icon btn-clear btn-info" href="permohonan/${data.id}/edit">
|
<div class="flex flex-nowrap justify-center gap-1.5">
|
||||||
|
<a class="btn btn-sm btn-outline btn-info" href="permohonan/${data.id}/edit">
|
||||||
<i class="ki-outline ki-notepad-edit"></i>
|
<i class="ki-outline ki-notepad-edit"></i>
|
||||||
</a>
|
</a>
|
||||||
<a onclick="deleteData(${data.id})" class="delete btn btn-sm btn-icon btn-clear btn-danger">
|
<a onclick="deleteData(${data.id})" class="delete btn btn-sm btn-outline btn-danger">
|
||||||
<i class="ki-outline ki-trash"></i>
|
<i class="ki-outline ki-trash"></i>
|
||||||
</a>
|
</a>
|
||||||
</div>`;
|
</div>`;
|
||||||
@@ -186,7 +190,7 @@
|
|||||||
|
|
||||||
let dataTable = new KTDataTable(element, dataTableOptions);
|
let dataTable = new KTDataTable(element, dataTableOptions);
|
||||||
// Custom search functionality
|
// Custom search functionality
|
||||||
searchInput.addEventListener('input', function () {
|
searchInput.addEventListener('input', function() {
|
||||||
const searchValue = this.value.trim();
|
const searchValue = this.value.trim();
|
||||||
dataTable.search(searchValue, true);
|
dataTable.search(searchValue, true);
|
||||||
|
|
||||||
|
|||||||
96
resources/views/registrasi/edit.blade.php
Normal file
96
resources/views/registrasi/edit.blade.php
Normal file
@@ -0,0 +1,96 @@
|
|||||||
|
@extends('layouts.main')
|
||||||
|
|
||||||
|
@section('breadcrumbs')
|
||||||
|
{{ Breadcrumbs::render(request()->route()->getName()) }}
|
||||||
|
@endsection
|
||||||
|
@php
|
||||||
|
// $route = Route::currentRouteName();
|
||||||
|
// dd($route);
|
||||||
|
$route = explode('.', Route::currentRouteName());
|
||||||
|
@endphp
|
||||||
|
|
||||||
|
@section('content')
|
||||||
|
<div class="w-full grid gap-5 lg:gap-7.5 mx-auto">
|
||||||
|
|
||||||
|
<form id="{{$route[0]}}_form" name="{{$route[0]}}_form" method="POST">
|
||||||
|
<input type="hidden" id="id" name="id" value="{{ $id }}">
|
||||||
|
@method('PUT')
|
||||||
|
@csrf
|
||||||
|
<div class="card pb-2.5">
|
||||||
|
<div class="card-header" id="basic_settings">
|
||||||
|
<h3 class="card-title">
|
||||||
|
Tambah Registrasi
|
||||||
|
</h3>
|
||||||
|
<div class="flex items-center gap-2">
|
||||||
|
<a href="{{ route('registrasi.show', $id) }}" class="btn btn-xs btn-primary" title="Detail"><i class="ki-filled ki-abstract-26"></i> Detail</a>
|
||||||
|
<a href="{{ route('registrasi.index') }}" class="btn btn-xs btn-info"><i class="ki-filled ki-exit-left"></i> Back</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<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">
|
||||||
|
No. registrasi
|
||||||
|
</label>
|
||||||
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
|
<label class="card-title" id="textReg">
|
||||||
|
No. registrasi
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
|
<label class="form-label max-w-56">
|
||||||
|
Tindakan
|
||||||
|
</label>
|
||||||
|
<div class="flex gap-12">
|
||||||
|
<label class="form-label flex items-center gap-2.5 text-nowrap">
|
||||||
|
<input class="radio" name="{{$route[0]}}_tindakan" type="radio" value="0" id="{{ $route[0] }}_tindakan_yes"/>
|
||||||
|
Yes
|
||||||
|
</label>
|
||||||
|
<label class="form-label flex items-center gap-2.5 text-nowrap">
|
||||||
|
<input class="radio" name="{{$route[0]}}_tindakan" type="radio" value="1" id="{{ $route[0] }}_tindakan_no" />
|
||||||
|
No
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="{{$route[0]}}_div_jenis_pilihan" class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
|
<label class="form-label max-w-56">
|
||||||
|
Data Jenis Penilaian (Pilihan registrasi)
|
||||||
|
</label>
|
||||||
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
|
<select class="inputku select" id="{{$route[0]}}_jenis_penilaian" name="{{$route[0]}}_jenis_penilaian">
|
||||||
|
<option></option>
|
||||||
|
</select>
|
||||||
|
<em id="{{$route[0]}}_jenis_penilaian_msg" class="alert text-danger text-sm"></em>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="{{ $route[0] }}_div_catatan" class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
|
<label class="form-label max-w-56">
|
||||||
|
Catatan
|
||||||
|
</label>
|
||||||
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
|
<textarea class="inputku textarea" name="{{$route[0]}}_catatan" id="{{$route[0]}}_catatan" placeholder="Catatan..." rows="6"></textarea>
|
||||||
|
<em id="{{$route[0]}}_catatan_msg" class="alert text-danger text-sm"></em>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="{{ $route[0] }}_div_region" class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
|
<label class="form-label max-w-56">
|
||||||
|
Region
|
||||||
|
</label>
|
||||||
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
|
<select class="inputku select" id="{{$route[0]}}_region" name="{{$route[0]}}_region">
|
||||||
|
<option></option>
|
||||||
|
</select>
|
||||||
|
<em id="{{$route[0]}}_region_msg" class="alert text-danger text-sm"></em>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="flex justify-end">
|
||||||
|
<button type="button" class="btn btn-primary" id="toEdit">
|
||||||
|
Save
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
@endsection
|
||||||
|
@include('lpj::registrasi.js.editjs')
|
||||||
169
resources/views/registrasi/index.blade.php
Normal file
169
resources/views/registrasi/index.blade.php
Normal file
@@ -0,0 +1,169 @@
|
|||||||
|
@extends('layouts.main')
|
||||||
|
|
||||||
|
@section('breadcrumbs')
|
||||||
|
{{ Breadcrumbs::render('registrasi') }}
|
||||||
|
@endsection
|
||||||
|
|
||||||
|
@section('content')
|
||||||
|
<div class="grid">
|
||||||
|
<div class="card card-grid min-w-full" data-datatable="false" data-datatable-page-size="5" data-datatable-state-save="false" id="registrasi-table" data-api-url="{{ route('registrasi.datatables') }}">
|
||||||
|
<div class="card-header py-5 flex-wrap">
|
||||||
|
<h3 class="card-title">
|
||||||
|
Daftar Registrasi
|
||||||
|
</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 Registrasi" 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="tanggal_permohonan">
|
||||||
|
<span class="sort"> <span class="sort-label"> Tanggal Permohonan </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"> User Pemohon </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"> Cabang Pemohon </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="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="status">
|
||||||
|
<span class="sort"> <span class="sort-label"> Status </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
|
||||||
|
|
||||||
|
@push('scripts')
|
||||||
|
<script type="text/javascript">
|
||||||
|
function showPermohonanData(regId)
|
||||||
|
{
|
||||||
|
var url = "{{ url('registrasi') }}/"+regId;
|
||||||
|
$(location).attr('href',url);
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<script type="module">
|
||||||
|
const element = document.querySelector('#registrasi-table');
|
||||||
|
const searchInput = document.getElementById('search');
|
||||||
|
|
||||||
|
const apiUrl = element.getAttribute('data-api-url');
|
||||||
|
const dataTableOptions = {
|
||||||
|
apiEndpoint: apiUrl,
|
||||||
|
pageSize: 5,
|
||||||
|
columns: {
|
||||||
|
select: {
|
||||||
|
render: (item, data, context) => {
|
||||||
|
const checkbox = document.createElement('input');
|
||||||
|
checkbox.className = 'checkbox checkbox-sm';
|
||||||
|
checkbox.type = 'checkbox';
|
||||||
|
checkbox.value = data.id.toString();
|
||||||
|
checkbox.setAttribute('data-datatable-row-check', 'true');
|
||||||
|
return checkbox.outerHTML.trim();
|
||||||
|
},
|
||||||
|
},
|
||||||
|
nomor_registrasi: {
|
||||||
|
title: 'Nomor Registrasi',
|
||||||
|
},
|
||||||
|
tanggal_permohonan: {
|
||||||
|
title: 'Tanggal Permohonan'
|
||||||
|
},
|
||||||
|
user_id: {
|
||||||
|
title: 'User Pemohon',
|
||||||
|
render: (item, data) => {
|
||||||
|
return `${data.user.name}`;
|
||||||
|
},
|
||||||
|
},
|
||||||
|
branch_id: {
|
||||||
|
title: 'Cabang Pemohon',
|
||||||
|
render: (item, data) => {
|
||||||
|
return `${data.branch.name}`;
|
||||||
|
},
|
||||||
|
},
|
||||||
|
debitur_id: {
|
||||||
|
title: 'Debitur',
|
||||||
|
render: (item, data) => {
|
||||||
|
return `${data.debiture.name}`;
|
||||||
|
},
|
||||||
|
},
|
||||||
|
tujuan_penilaian_id: {
|
||||||
|
title: 'Tujuan Penilaian',
|
||||||
|
render: (item, data) => {
|
||||||
|
return `${data.tujuan_penilaian.name}`;
|
||||||
|
},
|
||||||
|
},
|
||||||
|
status: {
|
||||||
|
title: 'Status'
|
||||||
|
},
|
||||||
|
actions: {
|
||||||
|
title: 'Status',
|
||||||
|
render: (item, data) => {
|
||||||
|
return `<div class="flex flex-nowrap justify-center">
|
||||||
|
<a onclick="showPermohonanData(${data.id})" class="btn btn-sm btn-icon btn-clear btn-warning" title="Detail">
|
||||||
|
<i class="ki-outline ki-eye"></i>
|
||||||
|
</a>
|
||||||
|
<a class="btn btn-sm btn-icon btn-clear btn-info" title="Register" href="registrasi/${data.id}/edit">
|
||||||
|
<i class="ki-outline ki-notepad-edit"></i>
|
||||||
|
</a>
|
||||||
|
</div>`;
|
||||||
|
},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
let dataTable = new KTDataTable(element, dataTableOptions);
|
||||||
|
// Custom search functionality
|
||||||
|
searchInput.addEventListener('input', function () {
|
||||||
|
const searchValue = this.value.trim();
|
||||||
|
dataTable.search(searchValue, true);
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
</script>
|
||||||
|
@endpush
|
||||||
|
|
||||||
196
resources/views/registrasi/js/editjs.blade.php
Normal file
196
resources/views/registrasi/js/editjs.blade.php
Normal file
@@ -0,0 +1,196 @@
|
|||||||
|
@push('scripts')
|
||||||
|
<script type="module">
|
||||||
|
|
||||||
|
$(document).ready(function() {
|
||||||
|
prepareForm();
|
||||||
|
});
|
||||||
|
|
||||||
|
function prepareForm()
|
||||||
|
{
|
||||||
|
$("#registrasi_form")[0].reset();
|
||||||
|
$(":radio[name='{{ $route[0] }}_tindakan'][value='0']").attr('checked', 'checked');
|
||||||
|
$("#{{ $route[0] }}_div_jenis_pilihan").show();
|
||||||
|
$("#{{ $route[0] }}_div_catatan").hide();
|
||||||
|
$("#{{ $route[0] }}_div_region").hide();
|
||||||
|
// prepare data
|
||||||
|
setData();
|
||||||
|
}
|
||||||
|
|
||||||
|
function setData()
|
||||||
|
{
|
||||||
|
let id = $("#id").val();
|
||||||
|
let token = "{{ csrf_token() }}";
|
||||||
|
// alert('token = ' + token);
|
||||||
|
var useURL = "{{ route('registrasi.setData') }}";
|
||||||
|
var input_data = new Object();
|
||||||
|
input_data._token = token;
|
||||||
|
input_data.id = id;
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
url: useURL,
|
||||||
|
type: "POST",
|
||||||
|
data: input_data,
|
||||||
|
dataType: "json",
|
||||||
|
beforeSend: function() {
|
||||||
|
// if ($("#myLoader").hasClass("pre-loader hidden")) {
|
||||||
|
// pleaseStartLoader();
|
||||||
|
// }
|
||||||
|
},
|
||||||
|
success: function(response) {
|
||||||
|
console.log(response);
|
||||||
|
|
||||||
|
$("#textReg").text(response.datas.nomor_registrasi);
|
||||||
|
setJenisPenilaianList(response.jenisPenilaians,0);
|
||||||
|
setRegionList(response.regions,0);
|
||||||
|
},
|
||||||
|
error: function(xhr) {
|
||||||
|
},
|
||||||
|
complete: function() {
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function setRegionList(datas, cid)
|
||||||
|
{
|
||||||
|
$('#{{$route[0]}}_region').empty().append('<option value="0"> - Pilih Region - </option>');
|
||||||
|
|
||||||
|
$.each(datas, function(key, value){
|
||||||
|
|
||||||
|
$('#{{$route[0]}}_region').append(new Option(value, key));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function setJenisPenilaianList(datas, cid)
|
||||||
|
{
|
||||||
|
$('#{{$route[0]}}_jenis_penilaian').empty().append('<option value="0"> - Pilih Jenis Penilaian - </option>');
|
||||||
|
|
||||||
|
$.each(datas, function(key, value){
|
||||||
|
|
||||||
|
$('#{{$route[0]}}_jenis_penilaian').append(new Option(value, key));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
$('input[type=radio][name={{ $route[0] }}_tindakan]').change(function() {
|
||||||
|
|
||||||
|
|
||||||
|
if($(this).val()==0)
|
||||||
|
{
|
||||||
|
// show jenis pilihan
|
||||||
|
// hide catatan
|
||||||
|
$("#{{ $route[0] }}_div_jenis_pilihan").show();
|
||||||
|
$("#{{ $route[0] }}_catatan").val('');
|
||||||
|
$("#{{ $route[0] }}_div_catatan").hide();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$("#{{$route[0]}}_jenis_penilaian option[value=0]").prop('selected', true);
|
||||||
|
$("#{{ $route[0] }}_div_jenis_pilihan").hide();
|
||||||
|
$("#{{ $route[0] }}_div_catatan").show();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
$("#toEdit").click(function(e) {
|
||||||
|
e.preventDefault();
|
||||||
|
|
||||||
|
//define variable
|
||||||
|
let token = "{{ csrf_token() }}";
|
||||||
|
|
||||||
|
let _method = $('input[name=_method]').val();
|
||||||
|
let id = $('#{{$route[0]}}_id').val();
|
||||||
|
let tindakan = $('input[name="{{$route[0]}}_tindakan"]:checked').val();
|
||||||
|
let jenis_penilaian = $("#{{$route[0]}}_jenis_penilaian").val();
|
||||||
|
let region = $("#{{$route[0]}}_region").val();
|
||||||
|
let catatan = $("#{{$route[0]}}_catatan").val();
|
||||||
|
|
||||||
|
if(jenis_penilaian==0)
|
||||||
|
jenis_penilaian='';
|
||||||
|
if(region==0)
|
||||||
|
region='';
|
||||||
|
|
||||||
|
var input_data = new Object();
|
||||||
|
input_data._token= token;
|
||||||
|
input_data._method= _method;
|
||||||
|
input_data.id= id;
|
||||||
|
input_data.tindakan= tindakan;
|
||||||
|
input_data.jenis_penilaian= jenis_penilaian;
|
||||||
|
input_data.region= region;
|
||||||
|
input_data.catatan = catatan;
|
||||||
|
|
||||||
|
let useURL= '{{ route($route[0].'.update', $id) }}';
|
||||||
|
$.ajax({
|
||||||
|
url: useURL,
|
||||||
|
type: "PUT",
|
||||||
|
cache: false,
|
||||||
|
data: input_data,
|
||||||
|
dataType: "json",
|
||||||
|
beforeSend: function() {
|
||||||
|
},
|
||||||
|
success: function(response) {
|
||||||
|
|
||||||
|
if ('error' == response.status) {
|
||||||
|
|
||||||
|
$.each(response.message, function(index, value) {
|
||||||
|
|
||||||
|
if ("catatan" === index) {
|
||||||
|
$("#{{$route[0]}}_catatan").addClass(" border-danger");
|
||||||
|
$("#{{$route[0]}}_catatan_msg").text(value);
|
||||||
|
}
|
||||||
|
|
||||||
|
if ("jenis_penilaian" === index) {
|
||||||
|
$("#{{$route[0]}}_jenis_penilaian").addClass(" border-danger");
|
||||||
|
$("#{{$route[0]}}_jenis_penilaian_msg").text(value);
|
||||||
|
}
|
||||||
|
|
||||||
|
if ("region" === index) {
|
||||||
|
$("#{{$route[0]}}_region").addClass(" border-danger");
|
||||||
|
$("#{{$route[0]}}_region_msg").text(value);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
//toastr.success(response.message);
|
||||||
|
var url = "{{ route('registrasi.index') }}";
|
||||||
|
$(location).attr('href',url);
|
||||||
|
}
|
||||||
|
|
||||||
|
},
|
||||||
|
error: function(response, textStatus, errorThrown) {
|
||||||
|
// var errors = response.responseJSON.errors;
|
||||||
|
// console.log(errors);
|
||||||
|
console.log(response);
|
||||||
|
|
||||||
|
},
|
||||||
|
complete: function() {
|
||||||
|
// pleaseStopLoader();
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
//
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
$('#{{$route[0]}}_jenis_penilaian').on('change', function (e) {
|
||||||
|
|
||||||
|
var idNya = $('#{{$route[0]}}_jenis_penilaian').find(":selected").val();
|
||||||
|
// var textNya = $('#{{$route[0]}}_jenis_penilaian').find(":selected").text();
|
||||||
|
|
||||||
|
if('1'==idNya)
|
||||||
|
{
|
||||||
|
// INTERNAL, show region
|
||||||
|
$("#{{ $route[0] }}_div_region").show();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// selain INTERNAL, hide region
|
||||||
|
$("#{{ $route[0] }}_div_region").hide();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
/*
|
||||||
|
$('#{{$route[0]}}_jenis_penilaian').on('change', function() {
|
||||||
|
console.log( this.value );
|
||||||
|
});
|
||||||
|
*/
|
||||||
|
</script>
|
||||||
|
@endpush
|
||||||
148
resources/views/registrasi/js/showjs.blade.php
Normal file
148
resources/views/registrasi/js/showjs.blade.php
Normal file
@@ -0,0 +1,148 @@
|
|||||||
|
@push('scripts')
|
||||||
|
<script type="module">
|
||||||
|
|
||||||
|
$(document).ready(function() {
|
||||||
|
prepareForm();
|
||||||
|
});
|
||||||
|
|
||||||
|
function prepareForm()
|
||||||
|
{
|
||||||
|
setData();
|
||||||
|
}
|
||||||
|
|
||||||
|
function setData()
|
||||||
|
{
|
||||||
|
let id = $("#id").val();
|
||||||
|
let token = "{{ csrf_token() }}";
|
||||||
|
// alert('token = ' + token);
|
||||||
|
var useURL = "{{ route('registrasi.showData') }}";
|
||||||
|
var input_data = new Object();
|
||||||
|
input_data._token = token;
|
||||||
|
input_data.id = id;
|
||||||
|
|
||||||
|
$.ajax({
|
||||||
|
url: useURL,
|
||||||
|
type: "POST",
|
||||||
|
data: input_data,
|
||||||
|
dataType: "json",
|
||||||
|
beforeSend: function() {
|
||||||
|
// if ($("#myLoader").hasClass("pre-loader hidden")) {
|
||||||
|
// pleaseStartLoader();
|
||||||
|
// }
|
||||||
|
},
|
||||||
|
success: function(response) {
|
||||||
|
console.log(response);
|
||||||
|
|
||||||
|
$("#textReg").text(response.datas.nomor_registrasi);
|
||||||
|
// setJenisPenilaianList(response.jenisPenilaians,0);
|
||||||
|
},
|
||||||
|
error: function(xhr) {
|
||||||
|
},
|
||||||
|
complete: function() {
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function setJenisPenilaianList(datas, cid)
|
||||||
|
{
|
||||||
|
$('#{{$route[0]}}_jenis_penilaian').empty().append('<option value="0"> - Pilih Jenis Penilaian - </option>');
|
||||||
|
|
||||||
|
$.each(datas, function(key, value){
|
||||||
|
|
||||||
|
$('#{{$route[0]}}_jenis_penilaian').append(new Option(value, key));
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
$('input[type=radio][name={{ $route[0] }}_tindakan]').change(function() {
|
||||||
|
|
||||||
|
|
||||||
|
if($(this).val()==0)
|
||||||
|
{
|
||||||
|
// show jenis pilihan
|
||||||
|
// hide catatan
|
||||||
|
$("#{{ $route[0] }}_div_jenis_pilihan").show();
|
||||||
|
$("#{{ $route[0] }}_catatan").val('');
|
||||||
|
$("#{{ $route[0] }}_div_catatan").hide();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$("#{{$route[0]}}_jenis_penilaian option[value=0]").prop('selected', true);
|
||||||
|
$("#{{ $route[0] }}_div_jenis_pilihan").hide();
|
||||||
|
$("#{{ $route[0] }}_div_catatan").show();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
$("#toEdit").click(function(e) {
|
||||||
|
e.preventDefault();
|
||||||
|
|
||||||
|
//define variable
|
||||||
|
let token = "{{ csrf_token() }}";
|
||||||
|
|
||||||
|
let _method = $('input[name=_method]').val();
|
||||||
|
let id = $('#{{$route[0]}}_id').val();
|
||||||
|
let tindakan = $('input[name="{{$route[0]}}_tindakan"]:checked').val();
|
||||||
|
let jenis_penilaian = $("#{{$route[0]}}_jenis_penilaian").val();
|
||||||
|
let catatan = $("#{{$route[0]}}_catatan").val();
|
||||||
|
|
||||||
|
if(jenis_penilaian==0)
|
||||||
|
jenis_penilaian='';
|
||||||
|
|
||||||
|
var input_data = new Object();
|
||||||
|
input_data._token= token;
|
||||||
|
input_data._method= _method;
|
||||||
|
input_data.id= id;
|
||||||
|
input_data.tindakan= tindakan;
|
||||||
|
input_data.jenis_penilaian= jenis_penilaian;
|
||||||
|
input_data.catatan = catatan;
|
||||||
|
|
||||||
|
let useURL= '{{ route($route[0].'.update', $id) }}';
|
||||||
|
$.ajax({
|
||||||
|
url: useURL,
|
||||||
|
type: "PUT",
|
||||||
|
cache: false,
|
||||||
|
data: input_data,
|
||||||
|
dataType: "json",
|
||||||
|
beforeSend: function() {
|
||||||
|
},
|
||||||
|
success: function(response) {
|
||||||
|
|
||||||
|
if ('error' == response.status) {
|
||||||
|
|
||||||
|
$.each(response.message, function(index, value) {
|
||||||
|
|
||||||
|
if ("catatan" === index) {
|
||||||
|
$("#{{$route[0]}}_catatan").addClass(" border-danger");
|
||||||
|
$("#{{$route[0]}}_catatan_msg").text(value);
|
||||||
|
}
|
||||||
|
|
||||||
|
if ("jenis_penilaian" === index) {
|
||||||
|
$("#{{$route[0]}}_jenis_penilaian").addClass(" border-danger");
|
||||||
|
$("#{{$route[0]}}_jenis_penilaian_msg").text(value);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
toastr.success(response.message);
|
||||||
|
var url = "{{ route('registrasi.index') }}";
|
||||||
|
$(location).attr('href',url);
|
||||||
|
}
|
||||||
|
|
||||||
|
},
|
||||||
|
error: function(response, textStatus, errorThrown) {
|
||||||
|
// var errors = response.responseJSON.errors;
|
||||||
|
// console.log(errors);
|
||||||
|
console.log(response);
|
||||||
|
|
||||||
|
},
|
||||||
|
complete: function() {
|
||||||
|
// pleaseStopLoader();
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
//
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
</script>
|
||||||
|
@endpush
|
||||||
316
resources/views/registrasi/show.blade.php
Normal file
316
resources/views/registrasi/show.blade.php
Normal file
@@ -0,0 +1,316 @@
|
|||||||
|
@extends('layouts.main')
|
||||||
|
|
||||||
|
@section('breadcrumbs')
|
||||||
|
{{ Breadcrumbs::render(request()->route()->getName()) }}
|
||||||
|
@endsection
|
||||||
|
@php
|
||||||
|
// $route = Route::currentRouteName();
|
||||||
|
// dd($route); registrasi.show
|
||||||
|
$route = explode('.', Route::currentRouteName());
|
||||||
|
@endphp
|
||||||
|
@section('content')
|
||||||
|
<div class="w-full grid gap-5 lg:gap-7.5 mx-auto">
|
||||||
|
<div class="card">
|
||||||
|
<div class="card-header" id="advanced_settings_appearance">
|
||||||
|
<h3 class="card-title">
|
||||||
|
Data Permohonan
|
||||||
|
</h3>
|
||||||
|
|
||||||
|
<div class="flex items-center gap-2">
|
||||||
|
<a href="{{ route('registrasi.edit', $id) }}" class="btn btn-xs btn-primary hidden" title="Register"><i class="ki-filled ki-arrow-circle-right"></i> Registrasi</a>
|
||||||
|
<a href="{{ route('registrasi.index') }}" class="btn btn-xs btn-info"><i class="ki-filled ki-exit-left"></i> Back</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="card-body lg:py-7.5 grid grid-cols-3">
|
||||||
|
<div class="mb-5">
|
||||||
|
<h3 class="text-md font-medium text-gray-900">
|
||||||
|
Nomor Register Permohonan:
|
||||||
|
</h3>
|
||||||
|
<span class="text-2sm text-gray-700">
|
||||||
|
{{ $permohonan->nomor_registrasi }}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="mb-5">
|
||||||
|
<h3 class="text-md font-medium text-gray-900">
|
||||||
|
Pemohon:
|
||||||
|
</h3>
|
||||||
|
<span class="text-2sm text-gray-700">
|
||||||
|
{{ $permohonan->user->nik }} | {{ $permohonan->user->name }} | {{ $permohonan->user->branch->name }}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="mb-5">
|
||||||
|
<h3 class="text-md font-medium text-gray-900">
|
||||||
|
Tujan Permohonan:
|
||||||
|
</h3>
|
||||||
|
<span class="text-2sm text-gray-700">
|
||||||
|
{{ $permohonan->tujuanPenilaian->name }}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="card min-w-full">
|
||||||
|
<div class="card-header">
|
||||||
|
<h3 class="card-title">
|
||||||
|
Detail Debutur
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
<div class="card-table scrollable-x-auto pb-3">
|
||||||
|
<div class="grid grid-cols-1 xl:grid-cols-2 gap-5 lg:gap-7.5">
|
||||||
|
<div class="col-span-1">
|
||||||
|
<table class="table align-middle text-sm text-gray-500">
|
||||||
|
<tr>
|
||||||
|
<td class="py-2 text-gray-600 font-normal">
|
||||||
|
Name
|
||||||
|
</td>
|
||||||
|
<td class="py-2 text-gray-800 font-normaltext-sm">
|
||||||
|
{{ $permohonan->debiture->name ?? "" }}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="py-3">
|
||||||
|
Email
|
||||||
|
</td>
|
||||||
|
<td class="py-3 text-gray-700 text-2sm font-normal">
|
||||||
|
{{ $permohonan->debiture->email ?? "" }}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="py-3">
|
||||||
|
Phone
|
||||||
|
</td>
|
||||||
|
<td class="py-3 text-gray-700 text-2sm font-normal">
|
||||||
|
{{ $permohonan->debiture->phone ?? "" }}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td class="py-3 text-gray-600 font-normal">
|
||||||
|
Address
|
||||||
|
</td>
|
||||||
|
<td class="py-3 text-gray-700 text-sm font-normal">
|
||||||
|
{{ $permohonan->debiture->address ?? "" }}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="py-3 text-gray-600 font-normal">
|
||||||
|
|
||||||
|
</td>
|
||||||
|
<td class="py-3 text-gray-700 text-sm font-normal">
|
||||||
|
{{ $permohonan->debiture->village->name ?? "" }}, {{ $permohonan->debiture->district->name ?? "" }}, {{ $permohonan->debiture->city->name ?? "" }}, {{ $permohonan->debiture->province->name ?? "" }} - {{ $permohonan->debiture->village->postal_code ?? "" }}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
<div class="col-span-1">
|
||||||
|
<table class="table align-middle text-sm text-gray-500">
|
||||||
|
<tr>
|
||||||
|
<td class="py-3 text-gray-600 font-normal">
|
||||||
|
Cabang
|
||||||
|
</td>
|
||||||
|
<td class="py-2 text-gray-800 font-normaltext-sm">
|
||||||
|
{{ $permohonan->debiture->branch->name ?? "" }}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="py-3 text-gray-600 font-normal">
|
||||||
|
CIF
|
||||||
|
</td>
|
||||||
|
<td class="py-2 text-gray-800 font-normaltext-sm">
|
||||||
|
{{ $permohonan->debiture->cif ?? "" }}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="py-3 text-gray-600 font-normal">
|
||||||
|
Nomor Rekening
|
||||||
|
</td>
|
||||||
|
<td class="py-3 text-gray-700 text-sm font-normal">
|
||||||
|
{{ $permohonan->debiture->nomor_rekening ?? "" }}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="py-3">
|
||||||
|
NPWP
|
||||||
|
</td>
|
||||||
|
<td class="py-3 text-gray-700 text-2sm font-normal">
|
||||||
|
{{ $permohonan->debiture->npwp ?? "" }}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="card min-w-full">
|
||||||
|
<div class="card-header">
|
||||||
|
<h3 class="card-title">
|
||||||
|
Data Jaminan
|
||||||
|
</h3>
|
||||||
|
</div>
|
||||||
|
<div data-accordion="true">
|
||||||
|
@foreach($permohonan->debiture->documents as $dokumen)
|
||||||
|
<div class="accordion-item [&:not(:last-child)]:border-b border-b-gray-200" data-accordion-item="true" id="accordion_1_item_1">
|
||||||
|
<button class="accordion-toggle py-4 group mx-8" data-accordion-toggle="#accordion_1_content_1">
|
||||||
|
<span class="text-base text-gray-900 font-medium">
|
||||||
|
Jaminan {{ $loop->index + 1 }}
|
||||||
|
</span>
|
||||||
|
<i class="ki-outline ki-plus text-gray-600 text-2sm accordion-active:hidden block">
|
||||||
|
</i>
|
||||||
|
<i class="ki-outline ki-minus text-gray-600 text-2sm accordion-active:block hidden">
|
||||||
|
</i>
|
||||||
|
</button>
|
||||||
|
<div class="accordion-content hidden" id="accordion_1_content_1">
|
||||||
|
<div class="card-body lg:py-7.5 grid grid-cols-2">
|
||||||
|
<div class="mb-5">
|
||||||
|
<h3 class="text-md font-medium text-gray-900">
|
||||||
|
Pemilik Jaminan:
|
||||||
|
</h3>
|
||||||
|
<span class="text-2sm text-gray-700">
|
||||||
|
{{ $dokumen->pemilik->name?? "" }}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<div class="mb-5">
|
||||||
|
<h3 class="text-md font-medium text-gray-900">
|
||||||
|
Jenis Jaminan:
|
||||||
|
</h3>
|
||||||
|
<span class="text-2sm text-gray-700">
|
||||||
|
{{ $dokumen->jenisJaminan->name?? "" }}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<div class="mb-5">
|
||||||
|
<h3 class="text-md font-medium text-gray-900">
|
||||||
|
Hubungan Pemilik Jaminan:
|
||||||
|
</h3>
|
||||||
|
<span class="text-2sm text-gray-700">
|
||||||
|
{{ $dokumen->pemilik->hubungan_pemilik->name?? "" }}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<div class="mb-5">
|
||||||
|
<h3 class="text-md font-medium text-gray-900">
|
||||||
|
Alamat Pemilik Jaminan:
|
||||||
|
</h3>
|
||||||
|
<span class="text-2sm text-gray-700">
|
||||||
|
{{ $dokumen->pemilik->address ?? ""}},
|
||||||
|
<br> {{ $dokumen->pemilik->village->name ?? "" }}, {{ $dokumen->pemilik->district->name ?? "" }}, {{ $dokumen->pemilik->city->name ?? "" }}, {{ $dokumen->pemilik->province->name ?? "" }} - {{ $dokumen->pemilik->village->postal_code ?? "" }}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="card-table scrollable-x-auto pb-3">
|
||||||
|
<table class="table align-middle text-sm text-gray-500">
|
||||||
|
@foreach($dokumen->detail as $detail)
|
||||||
|
<tr>
|
||||||
|
<td class="py-2 text-gray-600 font-normal max-w-[100px]">
|
||||||
|
{{ $loop->index + 1 }}. {{ $detail->jenisLegalitasJaminan->name }}
|
||||||
|
</td>
|
||||||
|
<td class="py-2 text-gray-800 font-normaltext-sm">
|
||||||
|
{{ $detail->name ?? "" }}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="py-3 max-w-[100px]">
|
||||||
|
Dokumen Jaminan
|
||||||
|
</td>
|
||||||
|
<td class="py-3 text-gray-700 text-2sm font-normal">
|
||||||
|
@if(isset($detail->dokumen_jaminan))
|
||||||
|
<a href="{{ route('debitur.jaminan.download',['id'=>$permohonan->debiture->id,'dokumen'=>$detail->id]) }}" class="badge badge-sm badge-outline mt-2">{{ basename($detail->dokumen_jaminan) }}
|
||||||
|
<i class="ki-filled ki-cloud-download"></i></a>
|
||||||
|
@endif
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="py-3 max-w-[100px]">
|
||||||
|
Keterangan
|
||||||
|
</td>
|
||||||
|
<td class="py-3 text-gray-700 text-2sm font-normal">
|
||||||
|
{{ $detail->keterangan ?? "" }}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
@endforeach
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
@endforeach
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="card pb-2.5">
|
||||||
|
<div class="card-header" id="basic_settings">
|
||||||
|
<h3 class="card-title">
|
||||||
|
Registrasi
|
||||||
|
</h3>
|
||||||
|
<div class="flex items-center gap-2 hidden">
|
||||||
|
<a href="{{ route('registrasi.show', $id) }}" class="btn btn-xs btn-primary" title="Detail"><i class="ki-filled ki-abstract-26"></i> Detail</a>
|
||||||
|
<a href="{{ route('registrasi.index') }}" class="btn btn-xs btn-info"><i class="ki-filled ki-exit-left"></i> Back</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="card-body lg:py-7.5">
|
||||||
|
<form id="{{$route[0]}}_form" name="{{$route[0]}}_form" method="POST">
|
||||||
|
<input type="hidden" id="id" name="id" value="{{ $id }}">
|
||||||
|
@method('PUT')
|
||||||
|
@csrf
|
||||||
|
|
||||||
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
|
<label class="form-label max-w-56">
|
||||||
|
Tindakan
|
||||||
|
</label>
|
||||||
|
<div class="flex gap-12">
|
||||||
|
<label class="form-label flex items-center gap-2.5 text-nowrap">
|
||||||
|
<input class="radio" name="{{$route[0]}}_tindakan" type="radio" value="0" id="{{ $route[0] }}_tindakan_yes" />
|
||||||
|
Yes
|
||||||
|
</label>
|
||||||
|
<label class="form-label flex items-center gap-2.5 text-nowrap">
|
||||||
|
<input class="radio" name="{{$route[0]}}_tindakan" type="radio" value="1" id="{{ $route[0] }}_tindakan_no" />
|
||||||
|
No
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="{{$route[0]}}_div_jenis_pilihan" class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5 mt-5">
|
||||||
|
<label class="form-label max-w-56">
|
||||||
|
Data Jenis Penilaian (Pilihan registrasi)
|
||||||
|
</label>
|
||||||
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
|
<select class="inputku select" id="{{$route[0]}}_jenis_penilaian" name="{{$route[0]}}_jenis_penilaian">
|
||||||
|
<option></option>
|
||||||
|
</select>
|
||||||
|
<em id="{{$route[0]}}_jenis_penilaian_msg" class="alert text-danger text-sm"></em>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="{{ $route[0] }}_div_catatan" class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5 mt-5">
|
||||||
|
<label class="form-label max-w-56">
|
||||||
|
Catatan
|
||||||
|
</label>
|
||||||
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
|
<textarea class="inputku textarea" name="{{$route[0]}}_catatan" id="{{$route[0]}}_catatan" placeholder="Catatan..." rows="6"></textarea>
|
||||||
|
<em id="{{$route[0]}}_catatan_msg" class="alert text-danger text-sm"></em>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div id="{{ $route[0] }}_div_region" class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5 mt-5">
|
||||||
|
<label class="form-label max-w-56">
|
||||||
|
Region
|
||||||
|
</label>
|
||||||
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
|
<select class="inputku select" id="{{$route[0]}}_region" name="{{$route[0]}}_region">
|
||||||
|
<option></option>
|
||||||
|
</select>
|
||||||
|
<em id="{{$route[0]}}_region_msg" class="alert text-danger text-sm"></em>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="flex justify-end mt-5">
|
||||||
|
<button type="button" class="btn btn-primary" id="toEdit">
|
||||||
|
Save
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
@endsection
|
||||||
|
@include('lpj::registrasi.js.showjs')
|
||||||
|
@include('lpj::registrasi.js.editjs')
|
||||||
77
resources/views/tujuan_penilaian_kjpp/create.blade.php
Normal file
77
resources/views/tujuan_penilaian_kjpp/create.blade.php
Normal file
@@ -0,0 +1,77 @@
|
|||||||
|
@extends('layouts.main')
|
||||||
|
|
||||||
|
@section('breadcrumbs')
|
||||||
|
{{ Breadcrumbs::render(request()->route()->getName()) }}
|
||||||
|
@endsection
|
||||||
|
|
||||||
|
@section('content')
|
||||||
|
<div class="w-full grid gap-5 lg:gap-7.5 mx-auto">
|
||||||
|
@if (isset($tujuanPenilaianKJPP->id))
|
||||||
|
<form action="{{ route('basicdata.tujuan_penilaian_kjpp.update', $tujuanPenilaianKJPP->id) }}" method="POST">
|
||||||
|
<input type="hidden" name="id" value="{{ $tujuanPenilaianKJPP->id }}">
|
||||||
|
@method('PUT')
|
||||||
|
@else
|
||||||
|
<form method="POST" action="{{ route('basicdata.tujuan_penilaian_kjpp.store') }}">
|
||||||
|
@endif
|
||||||
|
@csrf
|
||||||
|
<div class="card pb-2.5">
|
||||||
|
<div class="card-header" id="basic_settings">
|
||||||
|
<h3 class="card-title">
|
||||||
|
{{ isset($tujuanPenilaianKJPP->id) ? 'Edit' : 'Tambah' }} Tujuan Penilaian KJPP
|
||||||
|
</h3>
|
||||||
|
<div class="flex items-center gap-2">
|
||||||
|
<a href="{{ route('basicdata.tujuan_penilaian_kjpp.index') }}" class="btn btn-xs btn-info"><i
|
||||||
|
class="ki-filled ki-exit-left"></i> Back</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="card-body grid gap-5">
|
||||||
|
@if (isset($tujuanPenilaianKJPP->id))
|
||||||
|
<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 readonly
|
||||||
|
class="input border-warning bg-warning-light @error('code') border-danger @enderror"
|
||||||
|
type="text" name="code" value="{{ $tujuanPenilaianKJPP->code ?? '' }}">
|
||||||
|
@error('code')
|
||||||
|
<em class="alert text-danger text-sm">{{ $message }}</em>
|
||||||
|
@enderror
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
@else
|
||||||
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
|
<label class="form-label max-w-56">
|
||||||
|
Kode Tujuan Penilaian KJPP
|
||||||
|
</label>
|
||||||
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
|
<input class="input @error('code') border-danger @enderror" type="text" name="code"
|
||||||
|
value="{{ $ijin_usaha->code ?? old('code') }}">
|
||||||
|
@error('code')
|
||||||
|
<em class="alert text-danger text-sm">{{ $message }}</em>
|
||||||
|
@enderror
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
|
<div class="flex items-baseline flex-wrap lg:flex-nowrap gap-2.5">
|
||||||
|
<label class="form-label max-w-56">
|
||||||
|
Nama Tujuan Penilaian KJPP
|
||||||
|
</label>
|
||||||
|
<div class="flex flex-wrap items-baseline w-full">
|
||||||
|
<input class="input @error('name') border-danger @enderror" type="text" name="name"
|
||||||
|
value="{{ $tujuanPenilaianKJPP->name ?? old('name') }}">
|
||||||
|
@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
|
||||||
154
resources/views/tujuan_penilaian_kjpp/index.blade.php
Normal file
154
resources/views/tujuan_penilaian_kjpp/index.blade.php
Normal file
@@ -0,0 +1,154 @@
|
|||||||
|
@extends('layouts.main')
|
||||||
|
|
||||||
|
@section('breadcrumbs')
|
||||||
|
{{ Breadcrumbs::render('basicdata.tujuan_penilaian_kjpp') }}
|
||||||
|
@endsection
|
||||||
|
|
||||||
|
@section('content')
|
||||||
|
<div class="grid">
|
||||||
|
<div class="card card-grid min-w-full" data-datatable="false" data-datatable-page-size="5"
|
||||||
|
data-datatable-state-save="false" id="tujuan-penilaian-kjpp"
|
||||||
|
data-api-url="{{ route('basicdata.tujuan_penilaian_kjpp.datatables') }}">
|
||||||
|
<div class="card-header py-5 flex-wrap">
|
||||||
|
<h3 class="card-title">
|
||||||
|
Daftar Tujuan Penilaian KJPP
|
||||||
|
</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 Tujuan Penilaian KJPP" 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="{{ route('basicdata.tujuan_penilaian_kjpp.export') }}"> Export
|
||||||
|
to
|
||||||
|
Excel </a>
|
||||||
|
<a class="btn btn-sm btn-primary" href="{{ route('basicdata.tujuan_penilaian_kjpp.create') }}">
|
||||||
|
Tambah Penilaian KJPP </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-[250px]" data-datatable-column="code">
|
||||||
|
<span class="sort"> <span class="sort-label"> Kode Tujuan Penilaian KJPP </span>
|
||||||
|
<span class="sort-icon"> </span> </span>
|
||||||
|
</th>
|
||||||
|
<th class="min-w-[250px]" data-datatable-column="name">
|
||||||
|
<span class="sort"> <span class="sort-label"> Nama Tujuan Penilaian KJPP </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
|
||||||
|
|
||||||
|
@push('scripts')
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
function deleteData(data) {
|
||||||
|
Swal.fire({
|
||||||
|
title: 'Are you sure?',
|
||||||
|
text: "You won't be able to revert this!",
|
||||||
|
icon: 'warning',
|
||||||
|
showCancelButton: true,
|
||||||
|
confirmButtonColor: '#3085d6',
|
||||||
|
cancelButtonColor: '#d33',
|
||||||
|
confirmButtonText: 'Yes, delete it!'
|
||||||
|
}).then((result) => {
|
||||||
|
if (result.isConfirmed) {
|
||||||
|
$.ajaxSetup({
|
||||||
|
headers: {
|
||||||
|
'X-CSRF-TOKEN': '{{ csrf_token() }}'
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
$.ajax(`basic-data/tujuan_penilaian_kjpp/${data}`, {
|
||||||
|
type: 'DELETE'
|
||||||
|
}).then((response) => {
|
||||||
|
swal.fire('Deleted!', 'User has been deleted.', 'success').then(() => {
|
||||||
|
window.location.reload();
|
||||||
|
});
|
||||||
|
}).catch((error) => {
|
||||||
|
console.error('Error:', error);
|
||||||
|
Swal.fire('Error!', 'An error occurred while deleting the file.', 'error');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<script type="module">
|
||||||
|
const element = document.querySelector('#tujuan-penilaian-kjpp');
|
||||||
|
const searchInput = document.getElementById('search');
|
||||||
|
|
||||||
|
const apiUrl = element.getAttribute('data-api-url');
|
||||||
|
const dataTableOptions = {
|
||||||
|
apiEndpoint: apiUrl,
|
||||||
|
pageSize: 5,
|
||||||
|
columns: {
|
||||||
|
select: {
|
||||||
|
render: (item, data, context) => {
|
||||||
|
const checkbox = document.createElement('input');
|
||||||
|
checkbox.className = 'checkbox checkbox-sm';
|
||||||
|
checkbox.type = 'checkbox';
|
||||||
|
checkbox.value = data.id.toString();
|
||||||
|
checkbox.setAttribute('data-datatable-row-check', 'true');
|
||||||
|
return checkbox.outerHTML.trim();
|
||||||
|
},
|
||||||
|
},
|
||||||
|
code: {
|
||||||
|
title: 'Kode Tujuan Penilaian KJPP',
|
||||||
|
},
|
||||||
|
name: {
|
||||||
|
title: 'Nama Tujuan Penilaian KJPP',
|
||||||
|
},
|
||||||
|
actions: {
|
||||||
|
title: 'Status',
|
||||||
|
render: (item, data) => {
|
||||||
|
return `<div class="flex flex-nowrap justify-center">
|
||||||
|
<a class="btn btn-sm btn-icon btn-clear btn-info" href="basic-data/tujuan_penilaian_kjpp/${data.id}/edit">
|
||||||
|
<i class="ki-outline ki-notepad-edit"></i>
|
||||||
|
</a>
|
||||||
|
<a onclick="deleteData(${data.id})" class="delete btn btn-sm btn-icon btn-clear btn-danger">
|
||||||
|
<i class="ki-outline ki-trash"></i>
|
||||||
|
</a>
|
||||||
|
</div>`;
|
||||||
|
},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
let dataTable = new KTDataTable(element, dataTableOptions);
|
||||||
|
// Custom search functionality
|
||||||
|
searchInput.addEventListener('input', function() {
|
||||||
|
const searchValue = this.value.trim();
|
||||||
|
dataTable.search(searchValue, true);
|
||||||
|
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
@endpush
|
||||||
@@ -52,6 +52,21 @@
|
|||||||
$trail->push('Edit Jenis Aset');
|
$trail->push('Edit Jenis Aset');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Breadcrumbs::for('basicdata.jenis_laporan', function (BreadcrumbTrail $trail) {
|
||||||
|
$trail->parent('basicdata');
|
||||||
|
$trail->push('Jenis Laporan', route('basicdata.jenis_laporan.index'));
|
||||||
|
});
|
||||||
|
|
||||||
|
Breadcrumbs::for('basicdata.jenis_laporan.create', function (BreadcrumbTrail $trail) {
|
||||||
|
$trail->parent('basicdata.jenis_laporan');
|
||||||
|
$trail->push('Tambah Jenis Laporan', route('basicdata.jenis_laporan.create'));
|
||||||
|
});
|
||||||
|
|
||||||
|
Breadcrumbs::for('basicdata.jenis_laporan.edit', function (BreadcrumbTrail $trail) {
|
||||||
|
$trail->parent('basicdata.jenis_laporan');
|
||||||
|
$trail->push('Edit Jenis Laporan');
|
||||||
|
});
|
||||||
|
|
||||||
Breadcrumbs::for('basicdata.tujuan-penilaian', function (BreadcrumbTrail $trail) {
|
Breadcrumbs::for('basicdata.tujuan-penilaian', function (BreadcrumbTrail $trail) {
|
||||||
$trail->parent('basicdata');
|
$trail->parent('basicdata');
|
||||||
$trail->push('Tujuan Penilaian', route('basicdata.tujuan-penilaian.index'));
|
$trail->push('Tujuan Penilaian', route('basicdata.tujuan-penilaian.index'));
|
||||||
@@ -67,6 +82,21 @@
|
|||||||
$trail->push('Edit Tujuan Penilaian');
|
$trail->push('Edit Tujuan Penilaian');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Breadcrumbs::for('basicdata.tujuan_penilaian_kjpp', function (BreadcrumbTrail $trail) {
|
||||||
|
$trail->parent('basicdata');
|
||||||
|
$trail->push('Tujuan Penilaian KJPP', route('basicdata.tujuan_penilaian_kjpp.index'));
|
||||||
|
});
|
||||||
|
|
||||||
|
Breadcrumbs::for('basicdata.tujuan_penilaian_kjpp.create', function (BreadcrumbTrail $trail) {
|
||||||
|
$trail->parent('basicdata.tujuan_penilaian_kjpp');
|
||||||
|
$trail->push('Tambah Tujuan Penilaian KJPP', route('basicdata.tujuan_penilaian_kjpp.create'));
|
||||||
|
});
|
||||||
|
|
||||||
|
Breadcrumbs::for('basicdata.tujuan_penilaian_kjpp.edit', function (BreadcrumbTrail $trail) {
|
||||||
|
$trail->parent('basicdata.tujuan_penilaian_kjpp');
|
||||||
|
$trail->push('Edit Tujuan Penilaian KJPP');
|
||||||
|
});
|
||||||
|
|
||||||
Breadcrumbs::for('basicdata.jenis-dokumen', function (BreadcrumbTrail $trail) {
|
Breadcrumbs::for('basicdata.jenis-dokumen', function (BreadcrumbTrail $trail) {
|
||||||
$trail->parent('basicdata');
|
$trail->parent('basicdata');
|
||||||
$trail->push('Jenis Dokumen', route('basicdata.jenis-dokumen.index'));
|
$trail->push('Jenis Dokumen', route('basicdata.jenis-dokumen.index'));
|
||||||
@@ -188,6 +218,7 @@
|
|||||||
$trail->push('Edit Status Permohonan');
|
$trail->push('Edit Status Permohonan');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// KJPP
|
||||||
Breadcrumbs::for('basicdata.kjpp', function (BreadcrumbTrail $trail) {
|
Breadcrumbs::for('basicdata.kjpp', function (BreadcrumbTrail $trail) {
|
||||||
$trail->parent('basicdata');
|
$trail->parent('basicdata');
|
||||||
$trail->push('KJPP', route('basicdata.kjpp.index'));
|
$trail->push('KJPP', route('basicdata.kjpp.index'));
|
||||||
@@ -203,6 +234,13 @@
|
|||||||
$trail->push('Edit KJPP');
|
$trail->push('Edit KJPP');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Breadcrumbs::for('basicdata.kjpp.show', function (BreadcrumbTrail $trail) {
|
||||||
|
$trail->parent('basicdata.kjpp');
|
||||||
|
$trail->push('Show KJPP');
|
||||||
|
});
|
||||||
|
// End KJPP
|
||||||
|
|
||||||
|
// Ijin Usaha
|
||||||
Breadcrumbs::for('basicdata.ijin_usaha', function (BreadcrumbTrail $trail) {
|
Breadcrumbs::for('basicdata.ijin_usaha', function (BreadcrumbTrail $trail) {
|
||||||
$trail->parent('basicdata');
|
$trail->parent('basicdata');
|
||||||
$trail->push('Ijin Usaha', route('basicdata.ijin_usaha.index'));
|
$trail->push('Ijin Usaha', route('basicdata.ijin_usaha.index'));
|
||||||
@@ -364,11 +402,22 @@
|
|||||||
$trail->push('Data Penawaran', route('tender.penawaran.index'));
|
$trail->push('Data Penawaran', route('tender.penawaran.index'));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Breadcrumbs::for('tender.penawaran.show', function (BreadcrumbTrail $trail, $id) {
|
||||||
|
$trail->parent('tender');
|
||||||
|
$trail->push('Detail Penawaran', route('tender.penawaran.show', $id));
|
||||||
|
});
|
||||||
|
|
||||||
|
Breadcrumbs::for('tender.penawaran.createPenawaran', function (BreadcrumbTrail $trail, $id) {
|
||||||
|
$trail->parent('tender.penawaran');
|
||||||
|
$trail->push('Tambah Data Penawaran', route('tender.penawaran.createPenawaran', $id));
|
||||||
|
});
|
||||||
|
|
||||||
Breadcrumbs::for('tender.proses.penawaran', function (BreadcrumbTrail $trail) {
|
Breadcrumbs::for('tender.proses.penawaran', function (BreadcrumbTrail $trail) {
|
||||||
$trail->parent('tender');
|
$trail->parent('tender');
|
||||||
$trail->push('Data Proses Penawaran', route('tender.proses_penawaran.index'));
|
$trail->push('Data Proses Penawaran', route('tender.proses_penawaran.index'));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
Breadcrumbs::for('tender.penawaran.ulang', function (BreadcrumbTrail $trail) {
|
Breadcrumbs::for('tender.penawaran.ulang', function (BreadcrumbTrail $trail) {
|
||||||
$trail->parent('tender');
|
$trail->parent('tender');
|
||||||
$trail->push('Data Penawaran Ulang', route('tender.penawaran_ulang.index'));
|
$trail->push('Data Penawaran Ulang', route('tender.penawaran_ulang.index'));
|
||||||
@@ -382,3 +431,17 @@
|
|||||||
$trail->parent('surveyor');
|
$trail->parent('surveyor');
|
||||||
$trail->push('Detail');
|
$trail->push('Detail');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Breadcrumbs::for('registrasi', function (BreadcrumbTrail $trail) {
|
||||||
|
$trail->push('Registrasi', route('registrasi.index'));
|
||||||
|
});
|
||||||
|
|
||||||
|
Breadcrumbs::for('registrasi.edit', function (BreadcrumbTrail $trail) {
|
||||||
|
$trail->parent('registrasi');
|
||||||
|
$trail->push('Tambah Registrasi');
|
||||||
|
});
|
||||||
|
|
||||||
|
Breadcrumbs::for('registrasi.show', function (BreadcrumbTrail $trail) {
|
||||||
|
$trail->parent('registrasi');
|
||||||
|
$trail->push('Detail Permohona');
|
||||||
|
});
|
||||||
|
|||||||
25
routes/registrasi.php
Normal file
25
routes/registrasi.php
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Modules\Lpj\Http\Controllers\RegistrasiController;
|
||||||
|
|
||||||
|
Route::middleware(['auth'])->group(function () {
|
||||||
|
|
||||||
|
// andy add
|
||||||
|
// Route::name('registrasi.')->prefix('registrasi')->group(function () {
|
||||||
|
Route::controller(RegistrasiController::class)->group(function(){
|
||||||
|
// Route::get('/', [RegistrasiController::class, 'index'])->name('registrasi.index');
|
||||||
|
Route::get('/registrasi', 'index')->name('registrasi.index');
|
||||||
|
Route::get('/registrasi/datatables', 'dataForDatatables')->name('registrasi.datatables');
|
||||||
|
|
||||||
|
// show data
|
||||||
|
Route::get('/registrasi/{registrasi}', 'show')->name('registrasi.show');
|
||||||
|
Route::post('registrasi/showData', 'setData')->name('registrasi.showData');
|
||||||
|
|
||||||
|
Route::post('registrasi/setData', 'setData')->name('registrasi.setData');
|
||||||
|
Route::get('/registrasi/{registrasi}/edit', 'edit')->name('registrasi.edit');
|
||||||
|
Route::put('/registrasi/{registrasi}', 'update')->name('registrasi.update');
|
||||||
|
|
||||||
|
});
|
||||||
|
// andy add
|
||||||
|
});
|
||||||
|
|
||||||
546
routes/web.php
546
routes/web.php
@@ -13,6 +13,7 @@ use Modules\Lpj\Http\Controllers\IjinUsahaController;
|
|||||||
use Modules\Lpj\Http\Controllers\JenisDokumenController;
|
use Modules\Lpj\Http\Controllers\JenisDokumenController;
|
||||||
use Modules\Lpj\Http\Controllers\JenisFasilitasKreditController;
|
use Modules\Lpj\Http\Controllers\JenisFasilitasKreditController;
|
||||||
use Modules\Lpj\Http\Controllers\JenisJaminanController;
|
use Modules\Lpj\Http\Controllers\JenisJaminanController;
|
||||||
|
use Modules\Lpj\Http\Controllers\JenisLaporanController;
|
||||||
use Modules\Lpj\Http\Controllers\JenisLegalitasJaminanController;
|
use Modules\Lpj\Http\Controllers\JenisLegalitasJaminanController;
|
||||||
use Modules\Lpj\Http\Controllers\JenisPenilaianController;
|
use Modules\Lpj\Http\Controllers\JenisPenilaianController;
|
||||||
use Modules\Lpj\Http\Controllers\KJPPController;
|
use Modules\Lpj\Http\Controllers\KJPPController;
|
||||||
@@ -25,86 +26,110 @@ use Modules\Lpj\Http\Controllers\StatusPermohonanController;
|
|||||||
use Modules\Lpj\Http\Controllers\TeamsController;
|
use Modules\Lpj\Http\Controllers\TeamsController;
|
||||||
use Modules\Lpj\Http\Controllers\TenderController;
|
use Modules\Lpj\Http\Controllers\TenderController;
|
||||||
use Modules\Lpj\Http\Controllers\TujuanPenilaianController;
|
use Modules\Lpj\Http\Controllers\TujuanPenilaianController;
|
||||||
|
use Modules\Lpj\Http\Controllers\TujuanPenilaianKJPPController;
|
||||||
|
|
||||||
|
// use Modules\Lpj\Http\Controllers\ActivityController;
|
||||||
use Modules\Lpj\Http\Controllers\SurveyorController;
|
use Modules\Lpj\Http\Controllers\SurveyorController;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Web Routes
|
| Web Routes
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
|
||||||
| Here is where you can register web routes for your application. These
|
| Here is where you can register web routes for your application. These
|
||||||
| routes are loaded by the RouteServiceProvider within a group which
|
| routes are loaded by the RouteServiceProvider within a group which
|
||||||
| contains the "web" middleware group. Now create something great!
|
| contains the "web" middleware group. Now create something great!
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
Route::middleware(['auth'])->group(function () {
|
Route::middleware(['auth'])->group(function () {
|
||||||
Route::name('basicdata.')->prefix('basic-data')->group(function () {
|
Route::name('basicdata.')->prefix('basic-data')->group(function () {
|
||||||
Route::name('jenis-fasilitas-kredit.')->prefix('jenis-fasilitas-kredit')->group(function () {
|
Route::name('jenis-fasilitas-kredit.')->prefix('jenis-fasilitas-kredit')->group(function () {
|
||||||
Route::get('restore/{id}', [JenisFasilitasKreditController::class, 'restore'])->name('restore');
|
Route::get('restore/{id}', [JenisFasilitasKreditController::class, 'restore'])->name('restore');
|
||||||
Route::get('datatables', [JenisFasilitasKreditController::class, 'dataForDatatables'])
|
Route::get('datatables', [JenisFasilitasKreditController::class, 'dataForDatatables'])->name(
|
||||||
->name('datatables');
|
'datatables',
|
||||||
Route::get('export', [JenisFasilitasKreditController::class, 'export'])->name('export');
|
);
|
||||||
});
|
Route::get('export', [JenisFasilitasKreditController::class, 'export'])->name('export');
|
||||||
Route::resource('jenis-fasilitas-kredit', JenisFasilitasKreditController::class);
|
});
|
||||||
|
Route::resource('jenis-fasilitas-kredit', JenisFasilitasKreditController::class);
|
||||||
|
|
||||||
Route::name('jenis-legalitas-jaminan.')->prefix('jenis-legalitas-jaminan')->group(function () {
|
Route::name('jenis-legalitas-jaminan.')->prefix('jenis-legalitas-jaminan')->group(function () {
|
||||||
Route::get('restore/{id}', [JenisLegalitasJaminanController::class, 'restore'])->name('restore');
|
Route::get('restore/{id}', [JenisLegalitasJaminanController::class, 'restore'])->name('restore');
|
||||||
Route::get('datatables', [JenisLegalitasJaminanController::class, 'dataForDatatables'])
|
Route::get('datatables', [JenisLegalitasJaminanController::class, 'dataForDatatables'])->name(
|
||||||
->name('datatables');
|
'datatables',
|
||||||
Route::get('export', [JenisLegalitasJaminanController::class, 'export'])->name('export');
|
);
|
||||||
});
|
Route::get('export', [JenisLegalitasJaminanController::class, 'export'])->name('export');
|
||||||
Route::resource('jenis-legalitas-jaminan', JenisLegalitasJaminanController::class);
|
});
|
||||||
|
Route::resource('jenis-legalitas-jaminan', JenisLegalitasJaminanController::class);
|
||||||
|
|
||||||
Route::name('jenis-jaminan.')->prefix('jenis-aset')->group(function () {
|
Route::name('jenis-jaminan.')->prefix('jenis-jaminan')->group(function () {
|
||||||
Route::get('legalitas/{id}', [JenisJaminanController::class, 'legalitasJaminan'])->name('legalitas');
|
Route::get('legalitas/{id}', [JenisJaminanController::class, 'legalitasJaminan'])->name('legalitas');
|
||||||
Route::get('restore/{id}', [JenisJaminanController::class, 'restore'])->name('restore');
|
Route::get('restore/{id}', [JenisJaminanController::class, 'restore'])->name('restore');
|
||||||
Route::get('datatables', [JenisJaminanController::class, 'dataForDatatables'])
|
Route::get('datatables', [JenisJaminanController::class, 'dataForDatatables'])->name('datatables');
|
||||||
->name('datatables');
|
Route::get('export', [JenisJaminanController::class, 'export'])->name('export');
|
||||||
Route::get('export', [JenisJaminanController::class, 'export'])->name('export');
|
});
|
||||||
});
|
Route::resource('jenis-jaminan', JenisJaminanController::class);
|
||||||
Route::resource('jenis-jaminan', JenisJaminanController::class);
|
|
||||||
|
|
||||||
Route::name('tujuan-penilaian.')->prefix('tujuan-penilaian')->group(function () {
|
Route::name('tujuan-penilaian.')->prefix('tujuan-penilaian')->group(function () {
|
||||||
Route::get('restore/{id}', [TujuanPenilaianController::class, 'restore'])->name('restore');
|
Route::get('restore/{id}', [TujuanPenilaianController::class, 'restore'])->name('restore');
|
||||||
Route::get('datatables', [TujuanPenilaianController::class, 'dataForDatatables'])
|
Route::get('datatables', [TujuanPenilaianController::class, 'dataForDatatables'])->name('datatables');
|
||||||
->name('datatables');
|
Route::get('export', [TujuanPenilaianController::class, 'export'])->name('export');
|
||||||
Route::get('export', [TujuanPenilaianController::class, 'export'])->name('export');
|
});
|
||||||
});
|
Route::resource('tujuan-penilaian', TujuanPenilaianController::class);
|
||||||
Route::resource('tujuan-penilaian', TujuanPenilaianController::class);
|
|
||||||
|
|
||||||
Route::name('jenis-dokumen.')->prefix('jenis-dokumen')->group(function () {
|
Route::name('tujuan_penilaian_kjpp.')->prefix('tujuan_penilaian_kjpp')->group(function () {
|
||||||
Route::get('restore/{id}', [JenisDokumenController::class, 'restore'])->name('restore');
|
Route::get('datatables', [TujuanPenilaianKJPPController::class, 'dataForDatatables'])->name(
|
||||||
Route::get('datatables', [JenisDokumenController::class, 'dataForDatatables'])
|
'datatables',
|
||||||
->name('datatables');
|
);
|
||||||
Route::get('export', [JenisDokumenController::class, 'export'])->name('export');
|
Route::get('export', [TujuanPenilaianKJPPController::class, 'export'])->name('export');
|
||||||
});
|
});
|
||||||
Route::resource('jenis-dokumen', JenisDokumenController::class);
|
Route::resource('tujuan_penilaian_kjpp', TujuanPenilaianKJPPController::class);
|
||||||
Route::name('currency.')->prefix('mata-uang')->group(function () {
|
|
||||||
Route::get('restore/{id}', [CurrencyController::class, 'restore'])->name('restore');
|
|
||||||
Route::get('datatables', [CurrencyController::class, 'dataForDatatables'])
|
|
||||||
->name('datatables');
|
|
||||||
Route::get('export', [CurrencyController::class, 'export'])->name('export');
|
|
||||||
});
|
|
||||||
|
|
||||||
Route::resource('mata-uang', CurrencyController::class, [
|
Route::name('jenis-dokumen.')->prefix('jenis-dokumen')->group(function () {
|
||||||
'names' => [
|
Route::get('restore/{id}', [JenisDokumenController::class, 'restore'])->name('restore');
|
||||||
'index' => 'currency.index',
|
Route::get('datatables', [JenisDokumenController::class, 'dataForDatatables'])->name('datatables');
|
||||||
'show' => 'currency.show',
|
Route::get('export', [JenisDokumenController::class, 'export'])->name('export');
|
||||||
'create' => 'currency.create',
|
});
|
||||||
'store' => 'currency.store',
|
Route::resource('jenis-dokumen', JenisDokumenController::class);
|
||||||
'edit' => 'currency.edit',
|
Route::name('currency.')->prefix('mata-uang')->group(function () {
|
||||||
'update' => 'currency.update',
|
Route::get('restore/{id}', [CurrencyController::class, 'restore'])->name('restore');
|
||||||
'destroy' => 'currency.destroy',
|
Route::get('datatables', [CurrencyController::class, 'dataForDatatables'])->name('datatables');
|
||||||
],
|
Route::get('export', [CurrencyController::class, 'export'])->name('export');
|
||||||
]);
|
});
|
||||||
|
|
||||||
Route::name('branch.')->prefix('cabang')->group(function () {
|
Route::name('debitur.')->prefix('debitur')->group(function () {
|
||||||
Route::get('restore/{id}', [BranchController::class, 'restore'])->name('restore');
|
Route::get('restore/{id}', [DebitureController::class, 'restore'])->name('restore');
|
||||||
Route::get('datatables', [BranchController::class, 'dataForDatatables'])
|
Route::get('datatables', [DebitureController::class, 'dataForDatatables'])->name('datatables');
|
||||||
->name('datatables');
|
Route::get('export', [DebitureController::class, 'export'])->name('export');
|
||||||
Route::get('export', [BranchController::class, 'export'])->name('export');
|
|
||||||
});
|
|
||||||
|
Route::name('jaminan.')->prefix('{id}/jaminan')->group(function () {
|
||||||
|
Route::get('download/{dokumen}', [DokumenJaminanController::class, 'download'])->name('download');
|
||||||
|
Route::get('/', [DokumenJaminanController::class, 'index'])->name('index');
|
||||||
|
Route::get('create', [DokumenJaminanController::class, 'create'])->name('create');
|
||||||
|
Route::get('{jaminan}/edit', [DokumenJaminanController::class, 'edit'])->name('edit');
|
||||||
|
Route::put('{jaminan}', [DokumenJaminanController::class, 'update'])->name('update');
|
||||||
|
Route::post('store', [DokumenJaminanController::class, 'store'])->name('store');
|
||||||
|
Route::delete('{jaminan}', [DokumenJaminanController::class, 'destroy'])->name('destroy');
|
||||||
|
});
|
||||||
|
|
||||||
|
Route::name('pemilik.')->prefix('{id}/pemilik')->group(function () {
|
||||||
|
Route::get('/', [PemilikJaminanController::class, 'index'])->name('index');
|
||||||
|
Route::get('create', [PemilikJaminanController::class, 'create'])->name('create');
|
||||||
|
Route::get('{pemilik}/edit', [PemilikJaminanController::class, 'edit'])->name('edit');
|
||||||
|
Route::put('{pemilik}', [PemilikJaminanController::class, 'update'])->name('update');
|
||||||
|
Route::post('store', [PemilikJaminanController::class, 'store'])->name('store');
|
||||||
|
Route::delete('{pemilik}', [PemilikJaminanController::class, 'destroy'])->name('destroy');
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
Route::resource('debitur', DebitureController::class);
|
||||||
|
|
||||||
|
Route::name('branch.')->prefix('cabang')->group(function () {
|
||||||
|
Route::get('restore/{id}', [BranchController::class, 'restore'])->name('restore');
|
||||||
|
Route::get('datatables', [BranchController::class, 'dataForDatatables'])->name('datatables');
|
||||||
|
Route::get('export', [BranchController::class, 'export'])->name('export');
|
||||||
|
});
|
||||||
|
|
||||||
Route::resource('cabang', BranchController::class, [
|
Route::resource('cabang', BranchController::class, [
|
||||||
'names' => [
|
'names' => [
|
||||||
@@ -118,46 +143,45 @@ Route::middleware(['auth'])->group(function () {
|
|||||||
],
|
],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
Route::name('nilai-plafond.')->prefix('nilai-plafond')->group(function () {
|
Route::name('nilai-plafond.')->prefix('nilai-plafond')->group(function () {
|
||||||
Route::get('restore/{id}', [NilaiPlafondController::class, 'restore'])->name('restore');
|
Route::get('restore/{id}', [NilaiPlafondController::class, 'restore'])->name('restore');
|
||||||
Route::get('datatables', [NilaiPlafondController::class, 'dataForDatatables'])
|
Route::get('datatables', [NilaiPlafondController::class, 'dataForDatatables'])->name('datatables');
|
||||||
->name('datatables');
|
Route::get('export', [NilaiPlafondController::class, 'export'])->name('export');
|
||||||
Route::get('export', [NilaiPlafondController::class, 'export'])->name('export');
|
});
|
||||||
});
|
Route::resource('nilai-plafond', NilaiPlafondController::class);
|
||||||
Route::resource('nilai-plafond', NilaiPlafondController::class);
|
|
||||||
|
|
||||||
Route::name('hubungan-pemilik-jaminan.')->prefix('hubungan-pemilik-jaminan')->group(function () {
|
Route::name('hubungan-pemilik-jaminan.')->prefix('hubungan-pemilik-jaminan')->group(function () {
|
||||||
Route::get('restore/{id}', [HubunganPemilikJaminanController::class, 'restore'])->name('restore');
|
Route::get('restore/{id}', [HubunganPemilikJaminanController::class, 'restore'])->name('restore');
|
||||||
Route::get('datatables', [HubunganPemilikJaminanController::class, 'dataForDatatables'])
|
Route::get('datatables', [HubunganPemilikJaminanController::class, 'dataForDatatables'])->name(
|
||||||
->name('datatables');
|
'datatables',
|
||||||
Route::get('export', [HubunganPemilikJaminanController::class, 'export'])->name('export');
|
);
|
||||||
});
|
Route::get('export', [HubunganPemilikJaminanController::class, 'export'])->name('export');
|
||||||
Route::resource('hubungan-pemilik-jaminan', HubunganPemilikJaminanController::class);
|
});
|
||||||
|
Route::resource('hubungan-pemilik-jaminan', HubunganPemilikJaminanController::class);
|
||||||
|
|
||||||
Route::name('hubungan-penghuni-jaminan.')->prefix('hubungan-penghuni-jaminan')->group(function () {
|
Route::name('hubungan-penghuni-jaminan.')->prefix('hubungan-penghuni-jaminan')->group(function () {
|
||||||
Route::get('restore/{id}', [HubunganPenghuniJaminanController::class, 'restore'])->name('restore');
|
Route::get('restore/{id}', [HubunganPenghuniJaminanController::class, 'restore'])->name('restore');
|
||||||
Route::get('datatables', [HubunganPenghuniJaminanController::class, 'dataForDatatables'])
|
Route::get('datatables', [HubunganPenghuniJaminanController::class, 'dataForDatatables'])->name(
|
||||||
->name('datatables');
|
'datatables',
|
||||||
Route::get('export', [HubunganPenghuniJaminanController::class, 'export'])->name('export');
|
);
|
||||||
});
|
Route::get('export', [HubunganPenghuniJaminanController::class, 'export'])->name('export');
|
||||||
Route::resource('hubungan-penghuni-jaminan', HubunganPenghuniJaminanController::class);
|
});
|
||||||
|
Route::resource('hubungan-penghuni-jaminan', HubunganPenghuniJaminanController::class);
|
||||||
|
|
||||||
Route::name('arah-mata-angin.')->prefix('arah-mata-angin')->group(function () {
|
Route::name('arah-mata-angin.')->prefix('arah-mata-angin')->group(function () {
|
||||||
Route::get('restore/{id}', [ArahMataAnginController::class, 'restore'])->name('restore');
|
Route::get('restore/{id}', [ArahMataAnginController::class, 'restore'])->name('restore');
|
||||||
Route::get('datatables', [ArahMataAnginController::class, 'dataForDatatables'])
|
Route::get('datatables', [ArahMataAnginController::class, 'dataForDatatables'])->name('datatables');
|
||||||
->name('datatables');
|
Route::get('export', [ArahMataAnginController::class, 'export'])->name('export');
|
||||||
Route::get('export', [ArahMataAnginController::class, 'export'])->name('export');
|
});
|
||||||
});
|
Route::resource('arah-mata-angin', ArahMataAnginController::class);
|
||||||
Route::resource('arah-mata-angin', ArahMataAnginController::class);
|
|
||||||
|
|
||||||
|
|
||||||
Route::name('status-permohonan.')->prefix('status-permohonan')->group(function () {
|
Route::name('status-permohonan.')->prefix('status-permohonan')->group(function () {
|
||||||
Route::get('restore/{id}', [StatusPermohonanController::class, 'restore'])->name('restore');
|
Route::get('restore/{id}', [StatusPermohonanController::class, 'restore'])->name('restore');
|
||||||
Route::get('datatables', [StatusPermohonanController::class, 'dataForDatatables'])
|
Route::get('datatables', [StatusPermohonanController::class, 'dataForDatatables'])->name('datatables');
|
||||||
->name('datatables');
|
Route::get('export', [StatusPermohonanController::class, 'export'])->name('export');
|
||||||
Route::get('export', [StatusPermohonanController::class, 'export'])->name('export');
|
});
|
||||||
});
|
Route::resource('status-permohonan', StatusPermohonanController::class);
|
||||||
Route::resource('status-permohonan', StatusPermohonanController::class);
|
|
||||||
|
|
||||||
Route::name('region.')->prefix('region')->group(function () {
|
Route::name('region.')->prefix('region')->group(function () {
|
||||||
Route::get('restore/{id}', [RegionController::class, 'restore'])->name('restore');
|
Route::get('restore/{id}', [RegionController::class, 'restore'])->name('restore');
|
||||||
@@ -229,12 +253,11 @@ Route::middleware(['auth'])->group(function () {
|
|||||||
],
|
],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
Route::name('branch.')->prefix('cabang')->group(function () {
|
Route::name('branch.')->prefix('cabang')->group(function () {
|
||||||
Route::get('restore/{id}', [BranchController::class, 'restore'])->name('restore');
|
Route::get('restore/{id}', [BranchController::class, 'restore'])->name('restore');
|
||||||
Route::get('datatables', [BranchController::class, 'dataForDatatables'])
|
Route::get('datatables', [BranchController::class, 'dataForDatatables'])->name('datatables');
|
||||||
->name('datatables');
|
Route::get('export', [BranchController::class, 'export'])->name('export');
|
||||||
Route::get('export', [BranchController::class, 'export'])->name('export');
|
});
|
||||||
});
|
|
||||||
|
|
||||||
Route::resource('cabang', BranchController::class, [
|
Route::resource('cabang', BranchController::class, [
|
||||||
'names' => [
|
'names' => [
|
||||||
@@ -248,37 +271,37 @@ Route::middleware(['auth'])->group(function () {
|
|||||||
],
|
],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
Route::name('nilai-plafond.')->prefix('nilai-plafond')->group(function () {
|
Route::name('nilai-plafond.')->prefix('nilai-plafond')->group(function () {
|
||||||
Route::get('restore/{id}', [NilaiPlafondController::class, 'restore'])->name('restore');
|
Route::get('restore/{id}', [NilaiPlafondController::class, 'restore'])->name('restore');
|
||||||
Route::get('datatables', [NilaiPlafondController::class, 'dataForDatatables'])
|
Route::get('datatables', [NilaiPlafondController::class, 'dataForDatatables'])->name('datatables');
|
||||||
->name('datatables');
|
Route::get('export', [NilaiPlafondController::class, 'export'])->name('export');
|
||||||
Route::get('export', [NilaiPlafondController::class, 'export'])->name('export');
|
});
|
||||||
});
|
Route::resource('nilai-plafond', NilaiPlafondController::class);
|
||||||
Route::resource('nilai-plafond', NilaiPlafondController::class);
|
|
||||||
|
|
||||||
Route::name('hubungan-pemilik-jaminan.')->prefix('hubungan-pemilik-jaminan')->group(function () {
|
Route::name('hubungan-pemilik-jaminan.')->prefix('hubungan-pemilik-jaminan')->group(function () {
|
||||||
Route::get('restore/{id}', [HubunganPemilikJaminanController::class, 'restore'])->name('restore');
|
Route::get('restore/{id}', [HubunganPemilikJaminanController::class, 'restore'])->name('restore');
|
||||||
Route::get('datatables', [HubunganPemilikJaminanController::class, 'dataForDatatables'])
|
Route::get('datatables', [HubunganPemilikJaminanController::class, 'dataForDatatables'])->name(
|
||||||
->name('datatables');
|
'datatables',
|
||||||
Route::get('export', [HubunganPemilikJaminanController::class, 'export'])->name('export');
|
);
|
||||||
});
|
Route::get('export', [HubunganPemilikJaminanController::class, 'export'])->name('export');
|
||||||
Route::resource('hubungan-pemilik-jaminan', HubunganPemilikJaminanController::class);
|
});
|
||||||
|
Route::resource('hubungan-pemilik-jaminan', HubunganPemilikJaminanController::class);
|
||||||
|
|
||||||
Route::name('hubungan-penghuni-jaminan.')->prefix('hubungan-penghuni-jaminan')->group(function () {
|
Route::name('hubungan-penghuni-jaminan.')->prefix('hubungan-penghuni-jaminan')->group(function () {
|
||||||
Route::get('restore/{id}', [HubunganPenghuniJaminanController::class, 'restore'])->name('restore');
|
Route::get('restore/{id}', [HubunganPenghuniJaminanController::class, 'restore'])->name('restore');
|
||||||
Route::get('datatables', [HubunganPenghuniJaminanController::class, 'dataForDatatables'])
|
Route::get('datatables', [HubunganPenghuniJaminanController::class, 'dataForDatatables'])->name(
|
||||||
->name('datatables');
|
'datatables',
|
||||||
Route::get('export', [HubunganPenghuniJaminanController::class, 'export'])->name('export');
|
);
|
||||||
});
|
Route::get('export', [HubunganPenghuniJaminanController::class, 'export'])->name('export');
|
||||||
Route::resource('hubungan-penghuni-jaminan', HubunganPenghuniJaminanController::class);
|
});
|
||||||
|
Route::resource('hubungan-penghuni-jaminan', HubunganPenghuniJaminanController::class);
|
||||||
|
|
||||||
Route::name('arah-mata-angin.')->prefix('arah-mata-angin')->group(function () {
|
Route::name('arah-mata-angin.')->prefix('arah-mata-angin')->group(function () {
|
||||||
Route::get('restore/{id}', [ArahMataAnginController::class, 'restore'])->name('restore');
|
Route::get('restore/{id}', [ArahMataAnginController::class, 'restore'])->name('restore');
|
||||||
Route::get('datatables', [ArahMataAnginController::class, 'dataForDatatables'])
|
Route::get('datatables', [ArahMataAnginController::class, 'dataForDatatables'])->name('datatables');
|
||||||
->name('datatables');
|
Route::get('export', [ArahMataAnginController::class, 'export'])->name('export');
|
||||||
Route::get('export', [ArahMataAnginController::class, 'export'])->name('export');
|
});
|
||||||
});
|
Route::resource('arah-mata-angin', ArahMataAnginController::class);
|
||||||
Route::resource('arah-mata-angin', ArahMataAnginController::class);
|
|
||||||
|
|
||||||
Route::name('jaminan.')->prefix('{id}/jaminan')->group(function () {
|
Route::name('jaminan.')->prefix('{id}/jaminan')->group(function () {
|
||||||
Route::get('download/{dokumen}', [DokumenJaminanController::class, 'download'])->name('download');
|
Route::get('download/{dokumen}', [DokumenJaminanController::class, 'download'])->name('download');
|
||||||
@@ -299,137 +322,68 @@ Route::middleware(['auth'])->group(function () {
|
|||||||
Route::delete('{pemilik}', [PemilikJaminanController::class, 'destroy'])->name('destroy');
|
Route::delete('{pemilik}', [PemilikJaminanController::class, 'destroy'])->name('destroy');
|
||||||
});
|
});
|
||||||
|
|
||||||
Route::name('status-permohonan.')->prefix('status-permohonan')->group(function () {
|
Route::name('status-permohonan.')->prefix('status-permohonan')->group(function () {
|
||||||
Route::get('restore/{id}', [StatusPermohonanController::class, 'restore'])->name('restore');
|
Route::get('restore/{id}', [StatusPermohonanController::class, 'restore'])->name('restore');
|
||||||
Route::get('datatables', [StatusPermohonanController::class, 'dataForDatatables'])
|
Route::get('datatables', [StatusPermohonanController::class, 'dataForDatatables'])->name('datatables');
|
||||||
->name('datatables');
|
Route::get('export', [StatusPermohonanController::class, 'export'])->name('export');
|
||||||
Route::get('export', [StatusPermohonanController::class, 'export'])->name('export');
|
});
|
||||||
});
|
Route::resource('status-permohonan', StatusPermohonanController::class);
|
||||||
Route::resource('status-permohonan', StatusPermohonanController::class);
|
|
||||||
|
|
||||||
Route::name('kjpp.')->prefix('kjpp')->group(function () {
|
// Start Activity KJPP route
|
||||||
Route::get('datatables', [KJPPController::class, 'dataForDatatables'])
|
Route::name('kjpp.')->prefix('kjpp')->group(function () {
|
||||||
->name('datatables');
|
Route::get('datatables', [KJPPController::class, 'dataForDatatables'])->name('datatables');
|
||||||
Route::get('export', [KJPPController::class, 'export'])->name('export');
|
Route::get('export', [KJPPController::class, 'export'])->name('export');
|
||||||
});
|
});
|
||||||
|
|
||||||
Route::resource('kjpp', KJPPController::class);
|
Route::resource('kjpp', KJPPController::class);
|
||||||
|
// End Activity KJPP route
|
||||||
|
|
||||||
Route::name('ijin_usaha.')->prefix('ijin_usaha')->group(function () {
|
// Start Activity Ijin Usaha route
|
||||||
Route::get('datatables', [IjinUsahaController::class, 'dataForDatatables'])
|
Route::name('ijin_usaha.')->prefix('ijin_usaha')->group(function () {
|
||||||
->name('datatables');
|
Route::get('datatables', [IjinUsahaController::class, 'dataForDatatables'])->name('datatables');
|
||||||
Route::get('export', [IjinUsahaController::class, 'export'])->name('export');
|
Route::get('export', [IjinUsahaController::class, 'export'])->name('export');
|
||||||
});
|
});
|
||||||
|
|
||||||
Route::resource('ijin_usaha', IjinUsahaController::class);
|
Route::resource('ijin_usaha', IjinUsahaController::class);
|
||||||
});
|
// End Activity Ijin Usaha route
|
||||||
|
|
||||||
Route::name('debitur.')->prefix('debitur')->group(function () {
|
// Start Activity Jenis Laporan route
|
||||||
Route::get('restore/{id}', [DebitureController::class, 'restore'])->name('restore');
|
Route::name('jenis_laporan.')->prefix('jenis_laporan')->group(function () {
|
||||||
Route::get('datatables', [DebitureController::class, 'dataForDatatables'])
|
Route::get('datatables', [JenisLaporanController::class, 'dataForDatatables'])->name('datatables');
|
||||||
->name('datatables');
|
Route::get('export', [JenisLaporanController::class, 'export'])->name('export');
|
||||||
Route::get('export', [DebitureController::class, 'export'])->name('export');
|
});
|
||||||
|
|
||||||
|
Route::resource('jenis_laporan', JenisLaporanController::class);
|
||||||
|
// End Activity Jenis Laporan route
|
||||||
|
|
||||||
Route::name('jaminan.')->prefix('{id}/jaminan')->group(function () {
|
|
||||||
Route::get('download/{dokumen}', [DokumenJaminanController::class, 'download'])->name('download');
|
|
||||||
Route::get('/', [DokumenJaminanController::class, 'index'])->name('index');
|
|
||||||
Route::get('create', [DokumenJaminanController::class, 'create'])->name('create');
|
|
||||||
Route::get('{jaminan}/edit', [DokumenJaminanController::class, 'edit'])->name('edit');
|
|
||||||
Route::put('{jaminan}', [DokumenJaminanController::class, 'update'])->name('update');
|
|
||||||
Route::post('store', [DokumenJaminanController::class, 'store'])->name('store');
|
|
||||||
Route::delete('{jaminan}', [DokumenJaminanController::class, 'destroy'])->name('destroy');
|
|
||||||
});
|
|
||||||
|
|
||||||
Route::name('pemilik.')->prefix('{id}/pemilik')->group(function () {
|
|
||||||
Route::get('/', [PemilikJaminanController::class, 'index'])->name('index');
|
|
||||||
Route::get('create', [PemilikJaminanController::class, 'create'])->name('create');
|
|
||||||
Route::get('{pemilik}/edit', [PemilikJaminanController::class, 'edit'])->name('edit');
|
|
||||||
Route::put('{pemilik}', [PemilikJaminanController::class, 'update'])->name('update');
|
|
||||||
Route::post('store', [PemilikJaminanController::class, 'store'])->name('store');
|
|
||||||
Route::delete('{pemilik}', [PemilikJaminanController::class, 'destroy'])->name('destroy');
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
Route::resource('debitur', DebitureController::class);
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Route start Penilaian
|
|
||||||
*/
|
|
||||||
|
|
||||||
Route::name('penilaian.')->prefix('penilaian')->group(function () {
|
|
||||||
Route::get('restore/{id}', [PenilaianController::class, 'restore'])->name('restore');
|
|
||||||
Route::get('datatables', [PenilaianController::class, 'dataForDatatables'])->name('datatables');
|
|
||||||
Route::get('export', [PenilaianController::class, 'export'])->name('export');
|
|
||||||
Route::get('/getUserTeams/{id}', [PenilaianController::class, 'getUserTeams']);
|
|
||||||
|
|
||||||
Route::get('/', [PenilaianController::class, 'index'])->name('index');
|
|
||||||
Route::get('{id}/assignment', [PenilaianController::class, 'assignment'])->name('assignment');
|
|
||||||
Route::put('{id}', [PenilaianController::class, 'update'])->name('update');
|
|
||||||
Route::put('revisi/{nomor_registrasi}', [PenilaianController::class, 'revisi'])->name('revisi');
|
|
||||||
Route::post('create', [PenilaianController::class, 'create'])->name('create');
|
|
||||||
Route::post('store', [PenilaianController::class, 'store'])->name('store');
|
|
||||||
});
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Route end Penilaian
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Route start activity
|
|
||||||
*/
|
|
||||||
|
|
||||||
Route::name('activity.')->prefix('activity')->group(function () {
|
|
||||||
Route::get('restore/{id}', [ActivityController::class, 'restore'])->name('restore');
|
|
||||||
Route::get('datatables', [ActivityController::class, 'dataForDatatables'])->name('datatables');
|
|
||||||
Route::get('export', [ActivityController::class, 'export'])->name('export');
|
|
||||||
Route::get('/', [ActivityController::class, 'index'])->name('index');
|
|
||||||
|
|
||||||
Route::get('/{id}/show', [ActivityController::class, 'show'])->name('show');
|
|
||||||
Route::get('download/{id}', [ActivityController::class, 'download'])->name('download');
|
|
||||||
Route::get('senior', [ActivityController::class, 'senior'])->name('senior');
|
|
||||||
|
|
||||||
Route::name('progres.')->prefix('progres')->group(function () {
|
|
||||||
Route::get('/', [ActivityController::class, 'progres_activity'])->name('index');
|
|
||||||
Route::get('/datatables/{id}', [ActivityController::class, 'dataTablesForActivity'])->name('datatables');
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
Route::get('/teams/{regionId}', [ActivityController::class, 'dataTablesForActivity']);
|
Route::name('permohonan.')->prefix('permohonan')->group(function () {
|
||||||
|
Route::get('{id}/create', [PermohonanController::class, 'createPermohonan'])->name('create.debitur');
|
||||||
});
|
Route::get('download/{id}', [PermohonanController::class, 'download'])->name('download');
|
||||||
|
Route::get('restore/{id}', [PermohonanController::class, 'restore'])->name('restore');
|
||||||
/**
|
Route::get('datatables', [PermohonanController::class, 'dataForDatatables'])->name('datatables');
|
||||||
* Route end activity
|
Route::get('export', [PermohonanController::class, 'export'])->name('export');
|
||||||
*/
|
});
|
||||||
|
|
||||||
Route::name('permohonan.')->prefix('permohonan')->group(function () {
|
|
||||||
Route::get('{id}/create', [PermohonanController::class, 'createPermohonan'])->name('create.debitur');
|
|
||||||
Route::get('download/{id}', [PermohonanController::class, 'download'])->name('download');
|
|
||||||
Route::get('restore/{id}', [PermohonanController::class, 'restore'])->name('restore');
|
|
||||||
Route::get('datatables', [PermohonanController::class, 'dataForDatatables'])
|
|
||||||
->name('datatables');
|
|
||||||
Route::get('export', [PermohonanController::class, 'export'])->name('export');
|
|
||||||
});
|
|
||||||
|
|
||||||
Route::resource('permohonan', PermohonanController::class);
|
Route::resource('permohonan', PermohonanController::class);
|
||||||
|
|
||||||
Route::get('authorization', [PermohonanController::class, 'authorization'])->name('authorization.index');
|
Route::get('authorization', [PermohonanController::class, 'authorization'])->name('authorization.index');
|
||||||
Route::get('authorization/datatables', [PermohonanController::class, 'dataForAuthorization'])
|
Route::get('authorization/datatables', [PermohonanController::class, 'dataForAuthorization'])->name(
|
||||||
->name('authorization.datatables');
|
'authorization.datatables',
|
||||||
Route::get('authorization/{id}/edit', [PermohonanController::class, 'showAuthorization'])->name(
|
);
|
||||||
'authorization.show',
|
Route::get('authorization/{id}/edit', [PermohonanController::class, 'showAuthorization'])->name(
|
||||||
);
|
'authorization.show',
|
||||||
Route::put('authorization/{id}', [PermohonanController::class, 'updateAuthorization'])->name(
|
);
|
||||||
'authorization.update',
|
Route::put('authorization/{id}', [PermohonanController::class, 'updateAuthorization'])->name(
|
||||||
);
|
'authorization.update',
|
||||||
|
);
|
||||||
|
|
||||||
Route::name('debitur.')->prefix('debitur')->group(function () {
|
Route::name('debitur.')->prefix('debitur')->group(function () {
|
||||||
Route::get('restore/{id}', [DebitureController::class, 'restore'])->name('restore');
|
Route::get('restore/{id}', [DebitureController::class, 'restore'])->name('restore');
|
||||||
Route::get('datatables', [DebitureController::class, 'dataForDatatables'])
|
Route::get('datatables', [DebitureController::class, 'dataForDatatables'])->name('datatables');
|
||||||
->name('datatables');
|
Route::get('export', [DebitureController::class, 'export'])->name('export');
|
||||||
Route::get('export', [DebitureController::class, 'export'])->name('export');
|
|
||||||
|
|
||||||
|
|
||||||
Route::name('jaminan.')->prefix('{id}/jaminan')->group(function () {
|
Route::name('jaminan.')->prefix('{id}/jaminan')->group(function () {
|
||||||
@@ -454,41 +408,59 @@ Route::middleware(['auth'])->group(function () {
|
|||||||
|
|
||||||
Route::resource('debitur', DebitureController::class);
|
Route::resource('debitur', DebitureController::class);
|
||||||
|
|
||||||
Route::name('tender.')->prefix('tender')->group(function () {
|
Route::name('tender.')->prefix('tender')->group(function () {
|
||||||
// Penawaran
|
// Penawaran
|
||||||
Route::get('penawaran', [TenderController::class, 'penawaran_index'])->name('penawaran.index');
|
Route::get('penawaran', [TenderController::class, 'penawaran_index'])->name('penawaran.index');
|
||||||
Route::get('penawaran/create', [TenderController::class, 'penawaran_create'])->name('penawaran.create');
|
Route::get('penawaran/{id}/show', [TenderController::class, 'penawaran_show'])->name('penawaran.show');
|
||||||
|
Route::get('penawaran/{id}/create', [TenderController::class, 'penawaran_create'])->name(
|
||||||
|
'penawaran.createPenawaran',
|
||||||
|
);
|
||||||
|
Route::post('penawaran/{id}/store', [TenderController::class, 'penawaran_store'])->name(
|
||||||
|
'penawaran.storePenawaran',
|
||||||
|
);
|
||||||
|
Route::post('penawaran/{id}/update', [TenderController::class, 'penawaran_store'])->name(
|
||||||
|
'penawaran.updatePenawaran',
|
||||||
|
);
|
||||||
|
Route::get('penawaran/exportPenawaran', [TenderController::class, 'exportPenawaran'])->name(
|
||||||
|
'penawaran.exportPenawaran',
|
||||||
|
);
|
||||||
|
Route::get('penawaran/datatables', [TenderController::class, 'datatablesPenawaran'])->name(
|
||||||
|
'penawaran.datatables',
|
||||||
|
);
|
||||||
|
|
||||||
// Proses Penawaran
|
// Proses Penawaran
|
||||||
Route::get('proses_penawaran', [TenderController::class, 'proses_penawaran_index'])->name(
|
Route::get('proses_penawaran', [TenderController::class, 'proses_penawaran_index'])->name(
|
||||||
'proses_penawaran.index',
|
'proses_penawaran.index',
|
||||||
);
|
);
|
||||||
|
|
||||||
// Penawaran Ulang
|
// Penawaran Ulang
|
||||||
Route::get('penawaran_ulang', [TenderController::class, 'penawaran_ulang_index'])->name(
|
Route::get('penawaran_ulang', [TenderController::class, 'penawaran_ulang_index'])->name(
|
||||||
'penawaran_ulang.index',
|
'penawaran_ulang.index',
|
||||||
);
|
);
|
||||||
|
});
|
||||||
|
|
||||||
|
Route::name('penilaian.')->prefix('penilaian')->group(function () {
|
||||||
|
Route::get('restore/{id}', [PenilaianController::class, 'restore'])->name('restore');
|
||||||
|
Route::get('datatables', [PenilaianController::class, 'dataForDatatables'])->name('datatables');
|
||||||
|
Route::get('export', [PenilaianController::class, 'export'])->name('export');
|
||||||
|
Route::get('/getUserTeams/{id}', [PenilaianController::class, 'getUserTeams']);
|
||||||
|
|
||||||
|
Route::get('/', [PenilaianController::class, 'index'])->name('index');
|
||||||
|
Route::get('{id}/assignment', [PenilaianController::class, 'assignment'])->name('assignment');
|
||||||
|
Route::put('{id}', [PenilaianController::class, 'update'])->name('update');
|
||||||
|
Route::put('revisi/{nomor_registrasi}', [PenilaianController::class, 'revisi'])->name('revisi');
|
||||||
|
Route::post('create', [PenilaianController::class, 'create'])->name('create');
|
||||||
|
Route::post('store', [PenilaianController::class, 'store'])->name('store');
|
||||||
|
});
|
||||||
|
|
||||||
|
Route::name('activity.')->prefix('activity')->group(function () {
|
||||||
|
Route::get('restore/{id}', [ActivityController::class, 'restore'])->name('restore');
|
||||||
|
Route::get('datatables', [ActivityController::class, 'dataForDatatables'])->name('datatables');
|
||||||
|
Route::get('export', [ActivityController::class, 'export'])->name('export');
|
||||||
|
Route::get('/', [ActivityController::class, 'index'])->name('index');
|
||||||
|
Route::get('/{id}/show', [ActivityController::class, 'show'])->name('show');
|
||||||
|
Route::get('download/{id}', [ActivityController::class, 'download'])->name('download');
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
require __DIR__ . '/registrasi.php';
|
||||||
/**
|
|
||||||
* Route start surveyor
|
|
||||||
*/
|
|
||||||
|
|
||||||
Route::name('surveyor.')->prefix('surveyor')->group(function () {
|
|
||||||
Route::get('restore/{id}', [SurveyorController::class, 'restore'])->name('restore');
|
|
||||||
Route::get('datatables', [SurveyorController::class, 'dataForDatatables'])->name('datatables');
|
|
||||||
Route::get('export', [SurveyorController::class, 'export'])->name('export');
|
|
||||||
Route::get('/', [SurveyorController::class, 'index'])->name('index');
|
|
||||||
|
|
||||||
Route::get('/{id}/show', [SurveyorController::class, 'show'])->name('show');
|
|
||||||
Route::get('download/{id}', [SurveyorController::class, 'download'])->name('download');
|
|
||||||
});
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Route end activity
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|||||||
Reference in New Issue
Block a user