chore: add short name in table government agencies

This commit is contained in:
myuqinurrohman 2025-04-15 10:08:37 +07:00
parent c55e66eb13
commit 18de674acc
3 changed files with 5 additions and 0 deletions

View File

@ -362,6 +362,9 @@ public function governmentAgency(Request $request){
return DataTables::of($data)
->addIndexColumn()
->addColumn('short_name', function ($data) {
return filled($data->short_name) ? $data->short_name : '-';
})
->addColumn('issues', function ($data) {
$issueCount = $data->issues->count();

View File

@ -44,6 +44,7 @@
<tr>
<th style="width: 10% !important;">No</th>
<th>Nama</th>
<th>Singkatan Nama</th>
<th>Isu</th>
<th style="width: 10% !important;"></th>
</tr>

View File

@ -221,6 +221,7 @@
columns: [
{ data: 'DT_RowIndex', name: 'DT_RowIndex', orderable: false, searchable: false },
{ data: 'name', name: 'name' },
{ data: 'short_name', name: 'short_name' },
{ data: 'issues', name: 'issues' },
{ data: 'action', name: 'action', orderable: false, searchable: false },
{ data: 'created_at', name: 'created_at', visible: false },