{{-- ── Gradient Header ──────────────────────────────────── --}}

Edit Task

Update task details and requirements

{{-- ── Two-Panel Layout ──────────────────────────────────── --}} @php $statusMap = [ 'to_do' => ['label'=>'To Do', 'class'=>'to-do'], 'in_progress' => ['label'=>'In Progress', 'class'=>'in-progress'], 'on_hold' => ['label'=>'On Hold', 'class'=>'on-hold'], 'in_review' => ['label'=>'In Review', 'class'=>'in-review'], 'completed' => ['label'=>'Completed', 'class'=>'completed'], ]; $priorityMap = [ 'low' => ['label'=>'Low', 'class'=>'low'], 'medium' => ['label'=>'Medium', 'class'=>'medium'], 'high' => ['label'=>'High', 'class'=>'high'], ]; $priorityColors = ['high'=>'#dc2626','medium'=>'#f59e0b','low'=>'#16a34a']; $avatarColor = $priorityColors[$task->priority] ?? '#7c3aed'; $statusInfo = $statusMap[$task->status] ?? $statusMap['to_do']; $priorityInfo = $priorityMap[$task->priority] ?? $priorityMap['medium']; @endphp
{{-- ── Left Panel ───────────────────────────────────── --}}
Task
TASK-{{ str_pad($task->id, 4, '0', STR_PAD_LEFT) }}
{{ $task->title }}
{{ $statusInfo['label'] }}
{{ $priorityInfo['label'] }} Priority
@if($task->project)
Project {{ $task->project->name }}
@endif @if($task->due_date)
Due {{ \Carbon\Carbon::parse($task->due_date)->format('M d, Y') }}
@endif @if($task->estimated_hours)
Est. {{ $task->estimated_hours }} hrs
@endif
Assigned {{ $task->user->name }}
Updated {{ $task->updated_at->diffForHumans() }}
{{-- ── Right Form Sections ───────────────────────────── --}}
@csrf @method('PUT')
{{-- General Info --}}
General Info
@error('title')
{{ $message }}
@enderror
@error('description')
{{ $message }}
@enderror
{{-- Schedule & Assignment --}}
Schedule & Assignment
@error('due_date')
{{ $message }}
@enderror
@error('estimated_hours')
{{ $message }}
@enderror
@error('project_id')
{{ $message }}
@enderror
@error('user_id')
{{ $message }}
@enderror
{{-- Status --}}
Status Current task state
status) == 'to_do' ? 'checked' : '' }}>
status) == 'in_progress' ? 'checked' : '' }}>
status) == 'on_hold' ? 'checked' : '' }}>
status) == 'in_review' ? 'checked' : '' }}>
status) == 'completed' ? 'checked' : '' }}>
@error('status')
{{ $message }}
@enderror
{{-- Priority --}}
Priority Task urgency level
priority) == 'low' ? 'checked' : '' }}>
priority) == 'medium' ? 'checked' : '' }}>
priority) == 'high' ? 'checked' : '' }}>
@error('priority')
{{ $message }}
@enderror
Cancel
{{-- ── Danger Zone ───────────────────────────────────────── --}}
Danger Zone
Delete this task

Permanently removes this task and its checklist items. This cannot be undone.

@csrf @method('DELETE')