@lang('app.task') #{{ $task->id }}
@if ($user->can('edit_tasks') || $user->id == $task->created_by) @lang('app.edit') @endif @if($task->board_column->slug != 'completed' && ($user->can('edit_tasks') || $task->created_by == $user->id)) @lang('modules.tasks.reminder') @endif @php $pin = $task->pinned() @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

{{ 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) @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 }}

{!! $task->description ?? __('messages.noDescriptionAdded') !!}
@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(\Carbon\Carbon::parse($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 @if($file->user_id == $user->id || $task->project->isProjectAdmin || $user->can('edit_projects')) @endif
  • @empty
  • @lang('messages.noFileUploaded')
  • @endforelse
@forelse ($employees as $item) @empty @endforelse
@lang('app.employee') @lang('modules.employees.timeLogged')
{{ 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.dashboard.taskActivityTimeline')
@forelse($taskActivities as $activity)
{{$activity->details}}
{{ $activity->created_at->timezone($global->timezone)->diffForHumans() }}
@empty
@lang("messages.noTaskActivity")
@endforelse

@lang('modules.tasks.comment')

@forelse($task->comments as $comment)
{{ ucwords($comment->user->name) }} {{ ucfirst($comment->created_at->diffForHumans()) }}
{!! ucfirst($comment->comment) !!}
@if($comment->user->id == $user->id || $user->can('delete_tasks')) @endif
@empty
@lang('messages.noRecordFound')
@endforelse

@lang('app.notes')

@forelse($task->notes as $note)
{{ ucwords($note->user->name) }} {{ ucfirst($note->created_at->diffForHumans()) }}
{!! ucfirst($note->note) !!}
@if ($note->user_id == $user->id) @endif
@empty
@lang('messages.noNoteFound')
@endforelse
@lang('modules.tasks.dependentTask')
    @if(!is_null($dependentTasks)) @foreach($dependentTasks->dependentTasks as $dependentTask)
  • board_column_id == TASK_COMPLETE ? 'checked' : '' }} disabled> {{ ucfirst($dependentTask->heading) }}
    @if(\Carbon\Carbon::parse($dependentTask->due_date)) - @lang('modules.invoices.due'): {{ \Carbon\Carbon::parse($dependentTask->due_date)->format($global->date_format) }}@endif
    {{ ucfirst($dependentTask->users->pluck('name')->implode(', ')) }}
    -assigned to
    {{ !is_null($dependentTask->completed_on) ? ucfirst($dependentTask->completed_on) : 'Not Completed' }}
    -completed at
  • @endforeach @endif
@if ($task->board_column->slug != 'completed' && !is_null($task->activeTimer)) @endif