@php $check = false; $otherCheck = false; $queueCount = 1; if($ActiveSlug == 'in_progress'){ $sortedProjects = $projects; }else{ $sortedProjects = $projects->sortByDesc('statusLog.created_at'); } @endphp @foreach ($sortedProjects as $key => $project) @if ($loop->first && $project->status_text == 'In Progress')
{{ $project->status_text ?? '' }} Projects
@elseif ($project->status_text == 'In Queue') @if (!$check)
{{ $project->status_text ?? '' }} Projects
@endif @elseif ($project->status_text == 'Revision in Queue') @if (!$otherCheck)
{{ $project->status_text ?? '' }} Projects
@endif @else @if ($loop->first)
@endif @endif @if ($lastLoaded && $loop->iteration > $lastLoaded)

@else
@if ($project->getComments->count() > 0) @endif

{{ $project->title ?? '' }}

schedule @if ($project->statusLog || $project->status_text != 'Active') @if($project->assignedStatus->isNotEmpty() && $project->assignedStatusText()->status_text == 'In Progress') @if ($project->pending_time) Expected on {{ $project->pending_time->format('d M Y') ?? '' }} @else Created on {{ $project->created_at->format('d M Y') ?? '' }} @endif @else @if ($project->statusLog) {{ $project->statusLog->note ?? '' }} {{ $project->statusLog->created_at->format('d M Y') ?? ''}} @else Created on {{ $project->created_at->format('d M Y') ?? '' }} @endif @endif @else @if ($project->pending_time) Expected on {{ $project->pending_time->format('d M Y') ?? '' }} @else Created on {{ $project->created_at->format('d M Y') ?? '' }} @endif @endif

@if ($project->status_text == 'In Queue')
drag_indicator
@endif
@endif @if ($project->status_text == 'In Queue') @php $check = true; @endphp @php $queueCount++; @endphp @endif @if ($project->status_text == 'Revision in Queue') @php $otherCheck = true; @endphp @endif @if ($loop->last)
@endif @endforeach