Request Information
-
Project Name
- {{ $project->name }}
-
Created By
- {{ $project->user->name }}
-
Start Date
- {{ $project->start_date }}
-
End Date
- {{ $project->end_date }}
-
Status
-
$project->status === 'active',
'bg-blue-50 text-blue-700 ring-blue-200' => $project->status === 'completed',
'bg-yellow-50 text-yellow-700 ring-yellow-200' => $project->status === 'on_hold',
'bg-red-50 text-red-700 ring-red-200' => $project->status === 'cancelled',
'bg-purple-50 text-purple-700 ring-purple-200' => $project->status === 'planning',
])>
{{ ucfirst($project->status) }}
@if ($project->description)
Description
{{ $project->description }}
@endif
@if ($project->tasks->isEmpty())
No tasks found for this project.
@else
| No |
Task |
Estimated Cost |
Actual Cost |
PIC |
Actions |
@php
$totalEstimatedCost = 0;
$totalActualCost = 0;
@endphp
@foreach ($project->tasks as $index => $task)
@php
$totalEstimatedCost += $task->estimated_cost;
$totalActualCost += $task->actual_cost ?? 0;
@endphp
|
{{ $index + 1 }}
|
{{ $task->name }}
@if ($task->description)
{{ $task->description }}
@endif
|
Rp {{ number_format($task->estimated_cost, 2, ',', '.') }}
|
Rp {{ number_format($task->actual_cost ?? 0, 2, ',', '.') }}
|
{{ $task->person_in_charge }}
|
|
@endforeach
|
Total |
Rp {{ number_format($totalEstimatedCost, 2, ',', '.') }}
|
Rp {{ number_format($totalActualCost, 2, ',', '.') }}
|
|
@endif