@lang('app.task') #{{ $task->id }}
@php $pin = $task->pinned() @endphp @php \Log::info('$task->board_column->slug---->>>>'.$task->board_column->slug); @endphp @if ($task->board_column->slug != 'completed' && $task->board_column->slug != 'hold') @if(!is_null($task->project_id) && ($task->project->status != 'canceled' && $task->project->status != 'finished')) @if(is_null($dependentTasks)) @if (is_null($task->activeTimer) && !is_null($task->is_task_user)) @lang('modules.timeLogs.startTimer') @elseif (!is_null($task->activeTimer) && !is_null($task->is_task_user)) {{ $task->activeTimer->timer }} @endif @else @php $allCompleted = $dependentTasks->dependentTasks->every(fn($task) => $task->board_column && $task->board_column->slug === 'completed'); @endphp @if($allCompleted) @if (is_null($task->activeTimer) && !is_null($task->is_task_user)) @lang('modules.timeLogs.startTimer') @elseif (!is_null($task->activeTimer) && !is_null($task->is_task_user)) {{ $task->activeTimer->timer }} @endif @endif @endif @endif @endif @lang('app.edit') @if ($task->board_column->slug != 'completed') @if (count($task->activeTimerAll) > 0) @lang('modules.projects.activeTimers') {{ count($task->activeTimerAll) }} @endif @endif

{{ ucwords($task->heading) }}

@if(!is_null($task->project_id))

{{ ucfirst($task->project->project_name) }}

@endif
@if($task->task_category_id) @endif

@foreach ($task->users as $item) {{ ucwords($item->name) }} @endforeach
@if($task->create_by)

{{ ucwords($task->create_by->name) }}
@endif @if($task->start_date)

{{ \Carbon\Carbon::parse($task->start_date)->format($global->date_format) }}
@endif

due_date)->isPast()) class="text-danger" @endif> {{ \Carbon\Carbon::parse($task->due_date)->format($global->date_format) }} {{ $task->board_column->column_name }}
{{--Custom fields data--}} @if(isset($fields) && count($fields) > 0)
@foreach($fields as $field)

@if( $field->type == 'text') {{$task->custom_fields_data['field_'.$field->id] ?? '-'}} @elseif($field->type == 'password') {{$task->custom_fields_data['field_'.$field->id] ?? '-'}} @elseif($field->type == 'number') {{$task->custom_fields_data['field_'.$field->id] ?? '-'}} @elseif($field->type == 'textarea') {{$task->custom_fields_data['field_'.$field->id] ?? '-'}} @elseif($field->type == 'radio') {{ !is_null($task->custom_fields_data['field_'.$field->id]) ? $task->custom_fields_data['field_'.$field->id] : '-' }} @elseif($field->type == 'select') {{ (!is_null($task->custom_fields_data['field_'.$field->id]) && $task->custom_fields_data['field_'.$field->id] != '') ? $field->values[$task->custom_fields_data['field_'.$field->id]] : '-' }} @elseif($field->type == 'checkbox') {{ !is_null($task->custom_fields_data['field_'.$field->id]) ? $field->values[$task->custom_fields_data['field_'.$field->id]] : '-' }} @elseif($field->type == 'date') {{ !is_null($task->custom_fields_data['field_'.$field->id]) ? \Carbon\Carbon::parse($task->custom_fields_data['field_'.$field->id])->format($global->date_format) : '--'}} @endif

@endforeach
@endif {{--custom fields data end--}}

{!! $task->description ?? __('messages.noDescriptionAdded') !!}
@lang('app.add') @lang('modules.tasks.subTask')
@lang('modules.tasks.subTask') @if (count($task->subtasks) > 0) {{ count($task->completedSubtasks) }}/{{ count($task->subtasks) }} {{ floor((count($task->completedSubtasks)/count($task->subtasks))*100) }}% @endif
    @foreach($task->subtasks as $subtask)
  • status == 'complete') checked @endif> {{ ucfirst($subtask->title) }}
    @if($subtask->due_date) - @lang('modules.invoices.due'): {{ Carbon\Carbon::parse($subtask->due_date)->format($global->date_format) }}@endif
     
  • @endforeach
{{ csrf_field() }}
    @forelse($task->files as $file)
  • {{ $file->filename }}
    {{ $file->created_at->diffForHumans() }}
    @if(is_null($file->external_link)) @endif
  • @empty
  • @lang('messages.noFileUploaded')
  • @endforelse
@forelse ($employees as $item) @empty @endforelse
@lang('app.employee') @lang('modules.employees.hoursLogged')
{{ ucwords($item->name) }}
@php $timeLog = intdiv($item->total_minutes, 60) . ' ' . __('app.hrs') . ' '; if (($item->total_minutes % 60) > 0) { $timeLog .= ($item->total_minutes % 60) . ' ' . __('app.mins'); } @endphp {{ $timeLog }}
@lang('messages.noRecordFound')

@lang('modules.tasks.comment')

@forelse($task->comments as $comment)
{{ ucwords($comment->user->name) }} {{ ucfirst($comment->created_at->diffForHumans()) }}
{!! ucfirst($comment->comment) !!}
@empty
@lang('messages.noCommentFound')
@endforelse

@lang('app.notes')

@forelse($task->notes as $note)
{{ ucwords($note->user->name) }} {{ ucfirst($note->created_at->diffForHumans()) }}
{!! ucfirst($note->note) !!}
@empty
@lang('messages.noNoteFound')
@endforelse
@if ($task->board_column->slug != 'completed' && !is_null($task->activeTimer)) @endif @if ($task->board_column->slug != 'completed' && !is_null($task->activeTimer)) @endif