@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')
Employee task history
Assign task

General task history, including tasks created by employees. Dates and times use {{ $timezone }}. Unknown historical times appear as —.

@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
Reset
@if ($items->isEmpty())

No tasks match this filter.

@else
@foreach ($items as $item) @endforeach
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
@csrf @method('DELETE')
{{ $items->links('pagination::bootstrap-5') }}
@endif
@endsection