perbaikan kertas kerja, paparan, dan lampiran
This commit is contained in:
@@ -190,7 +190,6 @@ class PenilaiController extends Controller
|
||||
*/
|
||||
public function paparan(Request $request)
|
||||
{
|
||||
$permohonanId = $request->query('permohonanId');
|
||||
|
||||
$permohonanId = $request->query('permohonanId');
|
||||
$documentId = $request->query('documentId');
|
||||
@@ -198,9 +197,15 @@ class PenilaiController extends Controller
|
||||
$jaminanId = $request->query('jaminanId');
|
||||
|
||||
$permohonan = $this->surveyorController->getPermohonanJaminanId($permohonanId, $documentId, $jaminanId);
|
||||
$inspeksi = Inspeksi::where('permohonan_id', $permohonanId)->where('dokument_id', $documentId)->first();
|
||||
$penilai = Penilai::where('permohonan_id', $permohonanId)->where('dokument_id', $documentId)->first();
|
||||
$inspeksi = Inspeksi::where('permohonan_id', $permohonanId)->where
|
||||
('dokument_id', $documentId)->first();
|
||||
$formFoto = null;
|
||||
if ($inspeksi) {
|
||||
$formFoto = json_decode($inspeksi->foto_form, true);
|
||||
}
|
||||
|
||||
return view('lpj::penilai.components.paparan');
|
||||
return view('lpj::penilai.components.paparan', compact('permohonan', 'formFoto', 'penilai'));
|
||||
}
|
||||
|
||||
|
||||
@@ -296,21 +301,15 @@ class PenilaiController extends Controller
|
||||
]);
|
||||
}
|
||||
|
||||
public function export_kertas_kerja($id, $jaminanId)
|
||||
public function export_kertas_kerja(Request $request)
|
||||
{
|
||||
$data = Inspeksi::where('permohonan_id', $id)->where('dokument_id', $jaminanId)->first();
|
||||
|
||||
// $data = null;
|
||||
// $headerInfo = [
|
||||
// 'tanggal_penilaian' => '',
|
||||
// 'nama_pemilik' => '',
|
||||
// 'nama_pemberi_tugas' => '',
|
||||
// 'lokasi_lengkap' => '',
|
||||
// 'nama_debitur' => ''
|
||||
// ];
|
||||
$permohonanId = $request->query('permohonanId');
|
||||
$documentId = $request->query('documentId');
|
||||
$inspeksiId = $request->query('inspeksiId');
|
||||
$jaminanId = $request->query('jaminanId');
|
||||
|
||||
// $datas = json_decode($data->data_pembanding);
|
||||
// return response()->json(['data' =>$datas ]);
|
||||
$data = Inspeksi::where('permohonan_id', $permohonanId)->where('dokument_id', $documentId)->first();
|
||||
|
||||
// return view('lpj::component.kertas-kerja', compact('data'));
|
||||
return Excel::download(new KertasKerjaExport($data), 'kertas-kerja.xlsx');
|
||||
|
||||
Reference in New Issue
Block a user