display call_back_at in activity table

This commit is contained in:
Simon Pocrnjič 2026-03-09 19:31:03 +01:00
parent 2cc765912e
commit 5f9d00b575
2 changed files with 11 additions and 3 deletions

View File

@ -28,12 +28,12 @@ class Activity extends Model
'client_case_id', 'client_case_id',
]; ];
protected function casts(): array /*protected function casts(): array
{ {
return [ return [
'call_back_at' => 'datetime', 'call_back_at' => 'datetime',
]; ];
} }*/
protected $hidden = [ protected $hidden = [
'action_id', 'action_id',

View File

@ -741,8 +741,16 @@ const copyToClipboard = async (text) => {
<span class="text-gray-500">D:</span> <span class="text-gray-500">D:</span>
<span class="ml-1">{{ fmtDate(row.due_date) }}</span> <span class="ml-1">{{ fmtDate(row.due_date) }}</span>
</div> </div>
<div v-if="row.call_back_at" class="leading-tight">
<span class="text-gray-500">K:</span>
<span class="ml-1">{{ fmtDateTime(row.call_back_at) }}</span>
</div>
<div <div
v-if="!row.due_date && (!row.amount || Number(row.amount) === 0)" v-if="
!row.due_date &&
(!row.amount || Number(row.amount) === 0) &&
!row.call_back_at
"
class="text-gray-400" class="text-gray-400"
> >