debug laporan penagihan

This commit is contained in:
daengdeni 2024-04-04 15:00:04 +07:00
parent 0bce51fe45
commit fc9683f0c9

View File

@ -230,21 +230,25 @@
->get();
}
echo json_encode($data);exit;
//echo json_encode($data);exit;
return DataTables::of($data)->editColumn('tanggal_hapus_buku', function ($row) {
$date = Carbon::create($row->tanggal_hapus_buku);
return $date->locale('id')->translatedFormat('d F Y');
})->editColumn('branch', function ($row) {
return $row->branch->kode . ' - ' . $row->branch->name;
return 'A';
//return $row->branch->kode . ' - ' . $row->branch->name;
})->editColumn('debitur', function ($row) {
return $row->debitur->kode . ' - ' . $row->debitur->name;
return 'B';
//return $row->debitur->kode . ' - ' . $row->debitur->name;
})->editColumn('alamat', function ($row) {
return $row->debitur->address;
})->editColumn('facility_type', function ($row) {
return $row->facility_type->kode . ' - ' . $row->facility_type->name;
return 'C';
//return $row->facility_type->kode . ' - ' . $row->facility_type->name;
})->editColumn('loan_type', function ($row) {
return $row->loan_type->kode . ' - ' . $row->loan_type->name;
return 'D';
//return $row->loan_type->kode . ' - ' . $row->loan_type->name;
})->editColumn('guarantee_type', function ($row) {
$guarantee = GuaranteeType::where('id', $row->guarantee_type_id)->first();
if (isset($guarantee->id)) {