@php
$remainingDays = $project->deadline ? ($project->deadline->isFuture() ? now()->diffInDays($project->deadline) : 'Missed') : 'NULL';
$totalDays = $project->start_date && $project->deadline ? $project->start_date->diffInDays($project->deadline) : 'NULL';
if($remainingDays != 'NULL' && $totalDays != 'NULL')
$percentage = $totalDays ? ($remainingDays == 'Missed' ? 100 : round((($totalDays - $remainingDays) / $totalDays) * 100, 2)) : 0;
@endphp
@if ($remainingDays == 'Missed')
{{{__('Deadline Missed')}}}
@else
{{$remainingDays}} / {{$totalDays}} {{{__('Day(s) Remaining')}}}
@endif
@if ($remainingDays != 'NULL' && $totalDays != 'NULL')
{{$percentage}}%
@include('admin._partials.sections.progressBar', ['perc' => $percentage, 'color' => 'success'])
@endif