@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']->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
Assigned To
@forelse ($users_data as $key => $get_user) @php $user_db = DB::table('users')->where('id',$get_user)->first(); @endphp @if($user_db != null) @if($key<3) {{ substr($user_db->name, 0, 1) }} @else +{{strtoupper($short)}} @endif @else {{ __('Not Assigned') }} @endif @empty {{ __('Not Assigned') }} @endforelse
@php $users_creater = $data['con_data']->created_by != "" ? $data['con_data']->created_by : null; $user_creater_db = DB::table('users')->where('id',$users_data)->first(); @endphp
Task Creator
@if ($user_creater_db != null) {{ substr($user_creater_db->name, 0, 1) }} @else - @endif
@if ($data['con_data']->subcontractor != 0) @php $users_subcon = $data['con_data']->subcontractor != "" ? $data['con_data']->created_by : null; $user_subcon_db = DB::table('users')->where('id',$users_data)->first(); @endphp @if ($user_subcon_db != null)
SubContractor
@if ($user_subcon_db != null) {{ substr($user_subcon_db->name, 0, 1) }} @endif
@endif @endif
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)}} --}} {{ Utility::site_date_format($data['con_data']->end_date, \Auth::user()->id) }}
Actual Start Date
{{ isset($actualStartDate->record_date) ? Utility::site_date_format($actualStartDate->record_date, \Auth::user()->id) : '-'}}
Actual End Date
@if($data['con_data']->progress==100) {{ isset($actualEndDate->record_date) ? Utility::site_date_format($actualEndDate->record_date, \Auth::user()->id) : '-' }} @else - @endif
Planned Progress
{{ round($current_Planed_percentage) }}%
Actual Progress
@if ($data['con_data']->progress != null) {{ $data['con_data']->progress >= 100 ? 100 : $data['con_data']->progress }}% @else 0% @endif
Planned Duration
{{ $data['con_data']->duration }} {{$data['con_data']->duration <= 1 ? 'day' : 'days'}}
Actual Duration
{{$total_count_of_task }} {{$total_count_of_task <= 1 ? 'day' : 'days'}}
Status
{{$statusData}}
@php $contract_subscription = Auth::user()->checkSubscriptionCount('contract_management',1); @endphp @if($contract_subscription > 0)
{{ __('Material')}}
@if($total_material->count != null) {{$total_material->count}} @else 0 @endif {{ __('Quantity')}}
@can('view costing')
@if($total_material->rate != null) {{$total_material->rate}} @else 0 @endif {{ __('Cost')}}
@endcan
{{ __('Labour')}}
@if($total_labour->count != null) {{$total_labour->count}} @else 0 @endif {{ __('Quantity')}}
@can('view costing')
@if($total_labour->rate != null) {{$total_labour->rate}} @else 0 @endif {{ __('Cost')}}
@endcan
{{ __('Equipment')}}
@if($total_equipment->count != null) {{$total_equipment->count}} @else 0 @endif {{ __('Quantity')}}
@can('view costing')
@if($total_equipment->rate != null) {{$total_equipment->rate}} @else 0 @endif {{ __('Cost')}}
@endcan
{{ __('Overhead')}}
@if($total_overhead->count != null) {{$total_overhead->count}} @else 0 @endif {{ __('Quantity')}}
@can('view costing')
@if($total_overhead->rate != null) {{$total_overhead->rate}} @else 0 @endif {{ __('Cost')}}
@endcan
@endif
@can('create project task') @if (Auth::user()->type != "consultant" && Auth::user()->type != "sub_contractor") @endif @endcan
{{-- --}} @if (Auth::user()->type != "consultant" && Auth::user()->type != "sub_contractor") @endif @can('manage project task') @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') }}{{ __('View') }}{{ __('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')