- 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 ?? '-' }}