Project Details

Project Name
{{ $project->name }}
Project Code
{{ $project->code }}
Status
@php $statusColors = [ 'pending' => 'bg-yellow-100 text-yellow-800', 'ongoing' => 'bg-blue-100 text-blue-800', 'completed' => 'bg-green-100 text-green-800', 'on-hold' => 'bg-gray-100 text-gray-800', 'cancelled' => 'bg-red-100 text-red-800', ]; $color = $statusColors[strtolower(str_replace(' ', '-', $project->status?->value ?? 'pending'))] ?? 'bg-gray-100 text-gray-800'; @endphp {{ $project->status?->label() ?? 'N/A' }}
Location
{{ $project->location ?? '-' }}

Timeline

Start Date
{{ $project->start_date?->format('d M Y') ?? '-' }}
Expected End Date
{{ $project->expected_end_date?->format('d M Y') ?? '-' }}
Created By
{{ $project->creator?->name ?? '-' }}

Overall Progress

{{ $project->progress_percentage }}%
@if ($project->description)

Description

{{ $project->description }}

@endif
{ location.reload(); }, 1500); } else { $root.message = { type: 'error', text: data.message || 'Failed to update project' }; } } catch (error) { $root.message = { type: 'error', text: 'An error occurred while saving' }; } finally { $root.loading = false; } }" >