@php $nm = ""; $cnt = 1; foreach($user_pending as $assigns){ $history = DB::table('tm_project_target_date_his')->where('task_id', $assigns->id)->select('target_date')->get(); if(count($history) > 0) $prev_target_date = date("d-m-Y",strtotime($history[0]->target_date)); else $prev_target_date = ""; @endphp @php if($ddl_users == 0){ if($nm != ucwords(strtolower($assigns->name))){ echo ""; echo ""; $cnt++; }else{ echo ""; echo ""; } }else{ echo ""; echo ""; $cnt++; } $nm = ucwords(strtolower($assigns->name)); @endphp @php } @endphp
PENDING TASKS
No. Name Project Module Description Priority Target Date
".$cnt."".ucwords(strtolower($assigns->name))."".$cnt."".ucwords(strtolower($assigns->name))."{{ $assigns->project }} {{ $assigns->module }} {{ $assigns->description }} {{ $assigns->priority }} {{ date("d-m-Y",strtotime($assigns->target_dt)) }}
{{ $prev_target_date }}