@include('Admin.sidebar')

Total Project

{{$totalproject}}

wallet

Total Employee: {{ $countWebDesigners }}

On going Project: {{$totalongoing}}

On hold Project: {{$totalpending}}

Completed Project: {{$totalcompleted}}

@foreach($projects as $project) @php $endDate = \Carbon\Carbon::parse($project->end_date); $fiveDaysFromNow = now()->addDays(5); $rowClass2 = ''; // Determine the row class based on conditions if ($endDate->lte($fiveDaysFromNow)) { $rowClass2 = 'bg-red-400'; } @endphp @endforeach

Projects

{{$project->project_name}}

{{$project->end_date}}

@if ($endDate->isPast())
The End Date has Already Passed.
@elseif ($endDate->lte($fiveDaysFromNow))
The Deadline is Rapidly Approaching.
@endif

{{$project->project_status}}