@extends('layouts.app') @section('content')
{{-- Header Section --}}

Task Management

Manage and track all assigned tasks

+ New Task
{{-- Stats Cards --}}

Total Tasks

{{ \App\Models\Task::count() }}

Pending

{{ \App\Models\Task::where('status', 'pending')->count() }}

Approved

{{ \App\Models\Task::where('status', 'approved')->count() }}

Rejected

{{ \App\Models\Task::where('status', 'approved')->count() }}

{{-- Tasks Table --}}
@forelse($tasks as $task) @empty @endforelse
Task Details Assigned To Progress Status Action
{{ substr($task->project_name, 0, 1) }}
{{ $task->project_name }} ID: #TSK-{{ $task->id }} @if($task->employee_feedback)

{{ $task->employee_feedback }}

@endif
{{ $task->user->name ?? 'N/A' }}
{{ $task->progress_percent }}%
{{ ucfirst($task->status) }}
@csrf @method('DELETE')

No Tasks Found

Create your first task to get started

+ Create Task
{{-- Pagination --}} @if($tasks->hasPages())
{{ $tasks->links() }}
@endif
@endsection