@extends('layouts.app') @section('title', 'Task Intelligence') @push('styles') @endpush @section('content') @php $actionsHtml = ' New Task'; @endphp @include('components.page-header', [ 'title' => 'Engineering Task Control', 'description' => 'Monitor and manage development tasks across all active projects with real-time delivery intelligence.', 'breadcrumbs' => ['Home' => route('admin.dashboard'), 'Tasks' => '#'], 'actions' => $actionsHtml, 'stats' => [ ['label' => 'Total Backlog', 'value' => $tasks->total(), 'icon' => 'bi-list-task', 'color' => 'var(--accent-cream)'], ['label' => 'Critical Priority', 'value' => $tasks->where('priority', 'critical')->count(), 'icon' => 'bi-fire', 'color' => '#ff4b4b'], ['label' => 'In Progress', 'value' => $tasks->where('status.slug', 'in_progress')->count(), 'icon' => 'bi-play-circle-fill', 'color' => 'var(--accent-green)'], ['label' => 'Delivery This Week', 'value' => $tasks->where('deadline', '<=', now()->endOfWeek())->count(), 'icon' => 'bi-calendar-check', 'color' => 'var(--accent-yellow)'] ] ])

Intelligent Filtering

Task Manifest

ACTIVE ENGINEERING BACKLOG
@forelse($tasks as $task) @empty @endforelse
Task Identity Project Status Priority Deadline Delivery Progress Operations
{{ $task->title }}
#{{ str_pad($task->id, 5, '0', STR_PAD_LEFT) }}
{{ $task->project?->name ?? 'Unassigned' }} @php $statusClass = match($task->status?->slug) { 'done', 'completed' => 'badge-whatsapp', 'in_progress' => 'badge-email', 'review' => 'badge-sms', 'todo' => 'badge-low', default => 'badge-low' }; @endphp {{ $task->status?->name }} @php $prioClass = match(strtolower($task->priority)) { 'critical' => 'badge-low', // Using red-ish 'high' => 'badge-sms', // Orange-ish 'medium' => 'badge-email', default => 'badge-inapp' }; if(strtolower($task->priority) == 'critical') $prioStyle = 'background: rgba(244, 63, 94, 0.1); color: #f43f5e; border-color: rgba(244, 63, 94, 0.2);'; else if(strtolower($task->priority) == 'high') $prioStyle = 'background: rgba(245, 158, 11, 0.1); color: #f59e0b; border-color: rgba(245, 158, 11, 0.2);'; else $prioStyle = ''; @endphp @if(in_array(strtolower($task->priority), ['critical', 'high'])) @endif {{ strtoupper($task->priority) }}
{{ $task->deadline ? $task->deadline->format('M d, Y') : 'No Date' }}
{{ $task->progress_percent }}%
@csrf @method('DELETE')

No engineering tasks detected

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