@vite('resources/css/app.css') @include('sidebar.users_sidebar')

@if(auth()->user()->employee_type === 'Content') On Going Contents @else On Going Graphics @endif

@if ($errors->any())
{{ $errors->first('error') }}
@endif
@foreach($projects as $project) @php $deadlineDate = \Carbon\Carbon::parse($project->deadline); $now = \Carbon\Carbon::now(); $fiveDaysBeforeDeadline = $deadlineDate->copy()->subDays(5); @endphp
{{ $project->client_name }}
Client Address: {{ $project->content_id }}
Content Status: {{ $project->content_status }}
Graphic Status: {{ $project->graphic_status }}
Your Deadline: {{ (new DateTime($project->deadline))->format('l, F jS, Y') }}
Project Deadline: {{ (new DateTime($project->end_date))->format('l, F jS, Y') }}
@if($project->signature_status === null) @elseif($now->gt($deadlineDate)) @elseif($now->diffInDays($deadlineDate) <= 5) @else @endif
@endforeach