{{ (in_array($activeFilter, ['archived'])) ? $task->closed_at->diffForHumans() : $task->created_at->diffForHumans() }}
|
{{ $task->subject->name }} ({{ $task->subject->id }}) |
@if($task->type()->getLink($task))
{{ $task->type()->getText($task) }}
@else
{{ $task->type()->getText($task) }}
@endif
|
@if($activeFilter == 'sent')
{{ $task->assignee->name }} ({{ $task->assignee->id }})
@else
@isset($task->creator)
{{ $task->creator->name }} ({{ $task->creator->id }})
@else
System
@endisset
@endif
|
@if(!in_array($activeFilter, ['sent', 'archived']))
@else
@if($task->status == \App\Helpers\TaskStatus::COMPLETED)
{{ Str::title(\App\Helpers\TaskStatus::COMPLETED->name) }}
@elseif($task->status == \App\Helpers\TaskStatus::DECLINED)
{{ Str::title(\App\Helpers\TaskStatus::DECLINED->name) }}
@elseif($task->status == \App\Helpers\TaskStatus::PENDING)
{{ Str::title(\App\Helpers\TaskStatus::PENDING->name) }}
@endif
@endif
|