@lang('app.task')
@php $pin = $task->pinned() @endphp @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) @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--}}

{!! ucfirst($task->description) !!}
@lang('modules.tasks.subTask') @if (count($task->subtasks) > 0) {{ count($task->completedSubtasks) }}/{{ count($task->subtasks) }} @else 0/0 @endif @if (count($task->subtasks)){{ floor((count($task->completedSubtasks)/count($task->subtasks))*100) }}% @else 0% @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
     
  • @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(!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.noCommentFound')
    @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) !!}
    @empty
    @lang('messages.noNoteFound')
    @endforelse
    {{-- --}}