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

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

{{ $task->start_date->format($global->date_format) }}
@endif @if($task->due_date)

due_date->isPast()) class="text-danger" @endif> {{ $task->due_date->format($global->date_format) }} {{ $task->board_column->column_name }}
@endif
{{--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('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'): {{ $subtask->due_date->format($global->date_format) }}@endif
     
    @foreach($subtask->files as $key => $file)
  • {{ $file->filename }}
    {{ $file->created_at->diffForHumans() }}
    @if(is_null($file->external_link)) @endif
  • @endforeach @endforeach
@if($upload)
{{ csrf_field() }} {!! Form::hidden('task_id', $task->id) !!}
@else
@lang('messages.storageLimitExceed', ['here' => 'Here'])
@endif
    @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) !!}
@if($comment->user->id == $user->id || $user->cans('delete_tasks')) @endif
@if(!is_null($comment->comment_file)) @foreach ($comment->comment_file as $file )
  • {{ $file->filename }}
    @if(is_null($file->external_link)) @endif
  • @endforeach @endif
    @empty
    @lang('messages.noRecordFound')
    @endforelse
    @if($upload)
    {{ csrf_field() }}
    @else
    @lang('messages.storageLimitExceed', ['here' => 'Here'])
    @endif

    @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
    @if ($task->board_column->slug != 'completed' && !is_null($task->activeTimer)) @endif