Skip to content

Commit

Permalink
Sesuaikan
Browse files Browse the repository at this point in the history
  • Loading branch information
yogiperdana committed Aug 18, 2024
1 parent 46e99f7 commit 2443e53
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/Http/Controllers/Data/AdminKomplainController.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

namespace App\Http\Controllers\Data;

use App\Enums\Anonim;
use App\Http\Controllers\Controller;
use App\Models\DataDesa;
use App\Models\JawabKomplain;
Expand Down Expand Up @@ -93,10 +94,10 @@ public function getDataKomplain()
})
->editColumn('anonim', function ($row) {
$anonim = '';
if ($row->anonim == 0) {
if ($row->anonim == Anonim::Tampilkan) {
$anonim = '<span class="label label-success">Ditampilkan</span>';
}
if ($row->anonim == 1) {
if ($row->anonim == Anonim::Sembunyikan) {
$anonim = '<span class="label label-danger">Disembunyikan</span>';
}

Expand Down

0 comments on commit 2443e53

Please sign in to comment.