@extends('layouts.admin') @section('title', 'Employee Task History') @php $priorityClass = ['urgent' => 'danger', 'high' => 'warning', 'normal' => 'secondary', 'low' => 'light']; $statusClass = ['pending' => 'secondary', 'in_progress' => 'info', 'done' => 'success', 'cancelled' => 'dark']; @endphp @section('content')
General task history, including tasks created by employees. Dates and times use {{ $timezone }}. Unknown historical times appear as —.
@if ($errors->any())No tasks match this filter.
@else| Task | Assigned to | Assigned by | Created | Started | Completed | Due | Priority | Status | Action |
|---|---|---|---|---|---|---|---|---|---|
|
{{ $item->title }}
@if ($item->description)
{{ \Illuminate\Support\Str::limit($item->description, 100) }}
@endif
|
{{ $item->assignee?->name }} | {{ $item->assigner?->name ?? '—' }} | {{ $item->created_at?->timezone($timezone)->format('d M Y, h:i:s A') ?? '—' }} | {{ $item->started_at?->timezone($timezone)->format('d M Y, h:i:s A') ?? '—' }} | {{ $item->completed_at?->timezone($timezone)->format('d M Y, h:i:s A') ?? '—' }} | @if ($item->due_date) {{ $item->due_date->format('d M Y') }} @else — @endif | {{ ucfirst($item->priority) }} | {{ $item->status === 'done' ? 'Completed' : ucfirst(str_replace('_', ' ', $item->status)) }} | Edit |