debug laporan penagihan
This commit is contained in:
parent
0bce51fe45
commit
fc9683f0c9
@ -230,21 +230,25 @@
|
|||||||
->get();
|
->get();
|
||||||
}
|
}
|
||||||
|
|
||||||
echo json_encode($data);exit;
|
//echo json_encode($data);exit;
|
||||||
|
|
||||||
return DataTables::of($data)->editColumn('tanggal_hapus_buku', function ($row) {
|
return DataTables::of($data)->editColumn('tanggal_hapus_buku', function ($row) {
|
||||||
$date = Carbon::create($row->tanggal_hapus_buku);
|
$date = Carbon::create($row->tanggal_hapus_buku);
|
||||||
return $date->locale('id')->translatedFormat('d F Y');
|
return $date->locale('id')->translatedFormat('d F Y');
|
||||||
})->editColumn('branch', function ($row) {
|
})->editColumn('branch', function ($row) {
|
||||||
return $row->branch->kode . ' - ' . $row->branch->name;
|
return 'A';
|
||||||
|
//return $row->branch->kode . ' - ' . $row->branch->name;
|
||||||
})->editColumn('debitur', function ($row) {
|
})->editColumn('debitur', function ($row) {
|
||||||
return $row->debitur->kode . ' - ' . $row->debitur->name;
|
return 'B';
|
||||||
|
//return $row->debitur->kode . ' - ' . $row->debitur->name;
|
||||||
})->editColumn('alamat', function ($row) {
|
})->editColumn('alamat', function ($row) {
|
||||||
return $row->debitur->address;
|
return $row->debitur->address;
|
||||||
})->editColumn('facility_type', function ($row) {
|
})->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) {
|
})->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) {
|
})->editColumn('guarantee_type', function ($row) {
|
||||||
$guarantee = GuaranteeType::where('id', $row->guarantee_type_id)->first();
|
$guarantee = GuaranteeType::where('id', $row->guarantee_type_id)->first();
|
||||||
if (isset($guarantee->id)) {
|
if (isset($guarantee->id)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user