@include('new_layouts.header')
@include('construction_project.side-menu') @php $actual_task_progress = $data['con_data']->progress ? $data['con_data']->progress : '0'; if ($actual_task_progress < $current_Planed_percentage) { $style = 'color:red;'; } else { $style = ''; } if (strtotime($data['con_data']->end_date) < time() && $data['con_data']->progress < 100){ $spanClass = 'status-red'; $statusData = 'Pending'; } elseif(strtotime($data['con_data']->end_date) < time() && $data['con_data']->progress >= 100){ $spanClass = 'status-green'; $statusData = 'Completed'; } else{ $spanClass = 'status-blue'; $statusData = 'In-Progress'; } @endphp

{{$data['con_data']->task_id}}-{{ $data['con_data'] != null ? $data['con_data']->text : 'Task' }} Progress Details

Task Name
{{ $data['con_data'] != null ?$data['con_data']->text : 'Task' }}
@php $users_data = $data['con_data']->users != "" ? json_decode($data['con_data']->users) : array(); @endphp
Avatars list
@forelse ($users_data as $key => $get_user) @php $user_db = DB::table('users')->where('id',$get_user)->first(); @endphp @if($key<3) {{ substr($user_db->name, 0, 1) }} @else +{{strtoupper($short)}} @endif @empty {{ __('Not Assigned') }} @endforelse
Task Creator
Third Party
Planned Start Date
{{ Utility::site_date_format($data['con_data']->start_date, \Auth::user()->id) }}
Planned End Date
{{Utility::site_date_format_minus_day($data['con_data']->end_date, \Auth::user()->id, 1)}}
Actual Start Date
{{ isset($actualStartDate->record_date) ? Utility::site_date_format($actualStartDate->record_date, \Auth::user()->id) : '-'}}
Actual End Date
{{ isset($actualEndDate->record_date) ? Utility::site_date_format($actualEndDate->record_date, \Auth::user()->id) : '-' }}
Planned Progress
{{ round($current_Planed_percentage) }}%
Actual Progress
{{ $data['con_data']->progress != null ? $data['con_data']->progress : '0' }}%
Planned Duration
{{ $data['con_data']->duration }} days
Actual Duration
{{ $total_count_of_task }} days
Status
{{$statusData}}
@if (Auth::user()->type != "consultant" && Auth::user()->type != "sub_contractor") @endif
@if (Auth::user()->type != "consultant" && Auth::user()->type != "sub_contractor") @endif @can('edit active lookahead') @php $documentPath = \App\Models\Utility::get_file('uploads/task_particular_list'); @endphp @forelse ($data['get_task_progress'] as $task_progress) @if (Auth::user()->type != "consultant" && Auth::user()->type != "sub_contractor") @endif @empty @endforelse @endcan
{{ __('Planned Date') }} {{ __('Actual Date') }} {{ __('Status') }} {{ __('Actual Progress as per a Day') }} {{ __('FileName') }} {{ __('Description') }}{{ __('Action') }}
{{Utility::site_date_format($task_progress->created_at,\Auth::user()->id)}} {{Utility::site_date_format($task_progress->record_date,\Auth::user()->id)}} @if(date('Y-m-d', strtotime($task_progress->created_at)) > date('Y-m-d') && $task_progress->percentage >= '100') Incomplete @elseif ($task_progress->percentage >= '100') completed @else Incomplete @endif {{ $task_progress->percentage }}% @php $file_explode = explode(',', $task_progress->filename); @endphp @forelse ($file_explode as $file_show) @if ($file_show != '') {{ $file_show }}    
@else - @endif @empty @endforelse
{!! $task_progress->description !!}
@include('new_layouts.footer')