Pembaruan UI Menu SK
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
namespace App\Http\Controllers\Verifikasi\SK;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Http\Controllers\Verifikasi\SK\Concerns\FormatKolomSk;
|
||||
use App\Models\Verifikator\Periode;
|
||||
use App\Models\Verifikator\Team;
|
||||
use App\Services\SiskaService;
|
||||
@@ -13,6 +14,8 @@ use Yajra\DataTables\Facades\DataTables;
|
||||
|
||||
class PerluPerbaikanController extends Controller
|
||||
{
|
||||
use FormatKolomSk;
|
||||
|
||||
private $siskaService;
|
||||
|
||||
private $auth;
|
||||
@@ -110,14 +113,19 @@ class PerluPerbaikanController extends Controller
|
||||
->addColumn('no_anggota', function ($row) {
|
||||
return empty($row['anggota']);
|
||||
})
|
||||
->addColumn('tentang', function ($row) {
|
||||
$tentang = e($row['tentang'] ?? '-');
|
||||
if (empty($row['anggota'])) {
|
||||
return $tentang
|
||||
.'<br><small class="text-danger"><i class="uil-exclamation-triangle"></i> SK tidak memiliki anggota</small>';
|
||||
}
|
||||
->editColumn('no_sk', function ($row) {
|
||||
$peringatan = empty($row['anggota'])
|
||||
? [$this->peringatanSk('SK ini tidak memiliki anggota')]
|
||||
: [];
|
||||
|
||||
return $tentang;
|
||||
return $this->kolomNoSk(
|
||||
$row['no_sk'] ?? null,
|
||||
$row['id_unit_penandatangan'] ?? $row['id_unit'] ?? null,
|
||||
$peringatan
|
||||
);
|
||||
})
|
||||
->addColumn('tentang', function ($row) {
|
||||
return $this->kolomTentang($row['tentang'] ?? null, $row['id']);
|
||||
})
|
||||
->escapeColumns([])
|
||||
->make(true);
|
||||
|
||||
Reference in New Issue
Block a user