diff --git a/app/Http/Controllers/ReportTransaksiController.php b/app/Http/Controllers/ReportTransaksiController.php index edde08e..d6986dc 100644 --- a/app/Http/Controllers/ReportTransaksiController.php +++ b/app/Http/Controllers/ReportTransaksiController.php @@ -85,8 +85,8 @@ public function gateData(Request $request) ->when(isset($request->status_transaksi), function ($q) use ($request) { return match ($request->status_transaksi) { - '0' => $q->whereNotIn('tp.status_transaksi', ['3','-1'])->whereNotNull('alasan'), - // '0' => $q->whereNotIn('tp.status_transaksi', '5')->whereNotNull('alasan'), + // '0' => $q->whereNotIn('tp.status_transaksi', ['3','-1'])->whereNotNull('alasan'), + '0' => $q->where('tp.status_transaksi', '0')->whereNull('alasan'), '3' => $q->where('tp.status_transaksi', '3')->whereNull('alasan'), '-1' => $q->where('tp.status_transaksi', '-1')->whereNotNull('alasan'), 'null' => $q->whereNull('alasan')