@php $recentDays = ['today' => 'Today', 'upcoming' => 'Upcoming', 'nooverdue' => 'Past Due', 'completed' => 'Completed']; @endphp

{{$recentDays[$type]}} Tasks

@if(count($tasks) > 0) @foreach($tasks as $recentVal) @php $url = 'javascript:;'; if($recentVal->type == 'Job_Application'){ $url = route('applications.show', $recentVal->job_application_id).'?task=true'; }elseif($recentVal->type == 'Job'){ $url = route('pjobs.jobs.show', $recentVal->job_id).'?task=true'; }elseif($recentVal->type == 'Person'){ $url = route('peopleViewMarketPlace', $recentVal->person_id).'?task=true'; } @endphp
@php $viewTask = route('viewTaskById');@endphp {{$recentVal->subject}}
@if($recentVal->person)
Candidate Name : {{$recentVal->person->name}}
@endif
Due on
{{ showTimeFormat($recentVal['due_date'], 'm/d/Y')}}
Assigned to
{{$recentVal['assignTo'] ? $recentVal['assignTo']['name'] : ''}}
Status
{{$recentVal['status']}}
Created by
{{$recentVal['username']}}
Created Date
{{ showTimeFormat($recentVal['created_at'], 'M d, Y h:m a')}}
@if(count($recentVal['commentDetails']) > 0) @php $latestComments = $recentVal['commentDetails']->first();@endphp
LAST COMMENT BY {{$latestComments->user->name}} on {{showTimeFormat($latestComments->created_at, 'm/d/Y')}}
{!! $latestComments->comment !!}
@endif
@endforeach @else
@endif