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

Edit Project

Update your project information and settings

{{-- ── Two-Panel Layout ──────────────────────────────────── --}} @php $colors = ['#6366f1','#8b5cf6','#06b6d4','#10b981','#f59e0b','#ef4444','#ec4899']; $projectColor = $colors[strlen($project->name) % count($colors)]; $statusMap = [ 'not_started' => ['label'=>'Not Started','class'=>'not-started'], 'in_progress' => ['label'=>'In Progress','class'=>'in-progress'], 'completed' => ['label'=>'Completed', 'class'=>'completed'], 'closed' => ['label'=>'Closed', 'class'=>'closed'], ]; $statusInfo = $statusMap[$project->status] ?? $statusMap['not_started']; @endphp
{{-- ── Left Info Panel ──────────────────────────────── --}}
Project
{{ strtoupper(substr($project->name, 0, 1)) }}
{{ $project->name }}
{{ $statusInfo['label'] }}
@if($project->start_date)
Start {{ \Carbon\Carbon::parse($project->start_date)->format('M d, Y') }}
@endif @if($project->end_date)
Due {{ \Carbon\Carbon::parse($project->end_date)->format('M d, Y') }}
@endif @if($project->budget)
Budget ${{ number_format($project->budget, 0) }}
@endif
Updated {{ $project->updated_at->diffForHumans() }}
Owner {{ auth()->user()->name }}
{{-- ── Right Form Sections ───────────────────────────── --}}
@csrf @method('PUT')
{{-- General Info --}}
General Info
@error('name')
{{ $message }}
@enderror
@error('description')
{{ $message }}
@enderror
{{-- Timeline & Budget --}}
Timeline & Budget
@error('start_date')
{{ $message }}
@enderror
@error('end_date')
{{ $message }}
@enderror
@error('budget')
{{ $message }}
@enderror
{{-- Status --}}
Status Select current state
status) == 'not_started' ? 'checked' : '' }}>
status) == 'in_progress' ? 'checked' : '' }}>
status) == 'completed' ? 'checked' : '' }}>
status) == 'closed' ? 'checked' : '' }}>
@error('status')
{{ $message }}
@enderror
Cancel
{{-- ── Danger Zone (full-width, below grid) ─────────────── --}}
Danger Zone
Delete this project

Permanently removes all tasks, files, and associated data. This cannot be undone.

@csrf @method('DELETE')