Complete Task Report

All tasks regardless of user role • Comprehensive filtering and export capabilities

@if(auth()->user()->hasPermission('data.export')) Full Page View @endif
@if($showFilters)
@endif
{{ $tasks->total() }} tasks found @if($tasks->total() > 0) • Showing {{ $tasks->firstItem() }}-{{ $tasks->lastItem() }} of {{ $tasks->total() }} @endif
@forelse($tasks as $task) @empty @endforelse
Task @if($sortBy === 'title') @if($sortDirection === 'asc') @else @endif @endif
Matter / Client @if($sortBy === 'matter_id') @if($sortDirection === 'asc') @else @endif @endif
Assigned To @if($sortBy === 'assigned_to') @if($sortDirection === 'asc') @else @endif @endif
Status @if($sortBy === 'status') @if($sortDirection === 'asc') @else @endif @endif
Priority @if($sortBy === 'priority') @if($sortDirection === 'asc') @else @endif @endif
Due Date @if($sortBy === 'due_date') @if($sortDirection === 'asc') @else @endif @endif
Hours @if($sortBy === 'estimated_hours') @if($sortDirection === 'asc') @else @endif @endif
Category @if($sortBy === 'category_id') @if($sortDirection === 'asc') @else @endif @endif
{{ $task->title }}
@if($task->description)
{{ Str::limit($task->description, 50) }}
@endif
@if($task->matter)
{{ $task->matter->subject ?? 'Untitled Matter' }}
@if($task->matter->client)
{{ $task->matter->client->company_name ?? 'No Client' }}
@endif @else
No matter assigned
@endif
@if($task->assignedTo)
{{ $task->assignedTo->name }}
{{ $task->assignedTo->email }}
@else
Unassigned
@endif
{{ ucfirst(str_replace('_', ' ', $task->status)) }} {{ ucfirst($task->priority) }}
@if($task->due_date) {{ $task->due_date->format('M j, Y') }} @if($task->due_date->isPast() && !in_array($task->status, ['completed', 'cancelled'])) (Overdue) @endif @else No due date @endif
@if($task->estimated_hours) Est: {{ $task->estimated_hours }}h @endif @if($task->actual_hours) Act: {{ $task->actual_hours }}h @endif
@if($task->category) {{ $task->category->name }} @else No category @endif

No tasks found

Try adjusting your search or filter criteria.

@if($tasks->hasPages())
{{ $tasks->links() }}
@endif
@if($showExportModal)

Export Task Report

Select the fields you want to include in the export:

@foreach($exportFields as $field => $enabled) @endforeach
@endif @if($showPreviewModal)

Export Preview - Full Screen

Preview Information

Showing first 50 records of {{ $this->totalExportCount }} total records that will be exported. @if($this->totalExportCount > 50) Only the first 50 records are shown in this preview. @endif

Preview shows essential columns only. Full export includes all data.

Preview columns: Task, Description, Notes, Matter, Client, Assigned To, Start Date, Due Date, Hours, Department

Total Estimated Hours: {{ $this->totalEstimatedHours }} • Total Actual Hours: {{ $this->totalActualHours }}

@if(!empty($this->previewData)) @foreach(array_keys($this->previewData[0]) as $header) @endforeach @foreach($this->previewData as $index => $row) @php $isLastRow = $index === count($this->previewData) - 1; @endphp @foreach($row as $column => $value) @endforeach @endforeach
{{ $header }}
@if($isLastRow && ($column === 'Estimated Hours' || $column === 'Actual Hours')) {{ $value }} @elseif($isLastRow) - @else {{ Str::limit($value, 50) }} @endif
@else

No data to preview

Try adjusting your filters or selecting different export fields.

@endif
@endif