From fc9683f0c931f802691d8b217ec5f05964af9a98 Mon Sep 17 00:00:00 2001 From: daengdeni Date: Thu, 4 Apr 2024 15:00:04 +0700 Subject: [PATCH] debug laporan penagihan --- Http/Controllers/ReportController.php | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/Http/Controllers/ReportController.php b/Http/Controllers/ReportController.php index df5aa1c..5e25ca3 100644 --- a/Http/Controllers/ReportController.php +++ b/Http/Controllers/ReportController.php @@ -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)) {