{{ $task->name }}
{{ $task->description ?? 'No description provided.' }}
Rp {{ number_format($task->estimated_cost, 2, ',', '.') }}
Rp {{ number_format($task->actual_cost ?? 0, 2, ',', '.') }}
{{ $task->person_in_charge }}
@if ($task->attachment && count($task->attachment) > 0)
@foreach ($task->attachment as $attachmentPath)
@php
$fileName = basename($attachmentPath);
preg_match('/^\d{14}_(.*)\.(.*)$/', $fileName, $matches);
$originalFileName = $matches ? $matches[1] . '.' . $matches[2] : $fileName;
@endphp
{{ $originalFileName }}
@endforeach
@endif