Merge branch 'staging' into feature/senior-officer

This commit is contained in:
majid
2025-01-23 11:03:22 +07:00
5 changed files with 22 additions and 6 deletions

View File

@@ -68,6 +68,10 @@
<span class="sort"> <span class="sort-label"> Due Date SLA </span>
<span class="sort-icon"> </span> </span>
</th>
<th class="min-w-[150px]" data-datatable-column="status">
<span class="sort"> <span class="sort-label"> Status</span>
<span class="sort-icon"> </span> </span>
</th>
<th class="min-w-[50px] text-center" data-datatable-column="actions">Action</th>
</tr>
</thead>
@@ -178,10 +182,16 @@
return `${formatDate(new Date(data.created_at))}`;
},
},
status: {
title: 'Status',
render: (item, data) => {
return `<span class="badge badge-sm badge-default uppercase flex justify-center">${data.status.replace(/-/g, ' ')}</span>`;
},
},
actions: {
title: 'Action',
render: (item, data) => {
if (data.status === 'done' || data.status === 'proses-laporan') {
if (data.status === 'done' || data.status === 'proses-laporan' || data.status === 'paparan') {
return `
<div class="flex flex-nowrap justify-center gap-1.5">
<a class="btn btn-sm btn-outline btn-info" href="penilai/${data.id}/show">