chore: add short name in table government agencies
This commit is contained in:
parent
c55e66eb13
commit
18de674acc
@ -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();
|
||||
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -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 },
|
||||
|
||||
Loading…
Reference in New Issue
Block a user