@extends('layouts.app') @section('title') Task Details @endsection @section('page_css') @endsection @section('content')
@include('flash::message')

{{$task->prefix_task_number}}{{$task->title}}

Project {{$task->project->name}}
Created {{$task->created_at->format('dS F, Y h:i A')}}
Status @if(isset($taskStatus[$task->status])) {{$taskStatus[$task->status]}} @endif
Updated {{$task->updated_at->format('dS F, Y h:i A')}}
Reporter {{(isset($task->createdUser->name) ? $task->createdUser->name : '')}}
Priority {{ucfirst($task->priority)}}
@if(!empty($task->due_date))
Due Date {{\Carbon\Carbon::parse($task->due_date)->format('dS F, Y')}}
@endif @if(!empty($task->taskAssignee->pluck('name')->toArray()))
Assignee {{implode(", ",$task->taskAssignee->pluck('name')->toArray())}}
@endif @if(!empty($task->tags->pluck('name')->toArray()))
Tags {{implode(", ",$task->tags->pluck('name')->toArray())}}
@endif @if(!empty($task->timeEntries->isNotEmpty())) @endif
@if(!empty($task->description))
Description
{!! html_entity_decode($task->description) !!}
@else
Description N/A
@endif
Attachments
id."/add-attachment")}}" enctype="multipart/form-data" class="dropzone" id="dropzone"> {{csrf_field()}}
Comments No comments added yet
@foreach($task->comments as $comment)
User Image @php $deletedUser = (isset($comment->createdUser->deleted_at)) ? "(deactivated user)" : '' @endphp {!! isset($comment->createdUser->name) ? $comment->createdUser->name . ' ' . $deletedUser : '' !!} @if($comment->created_by == Auth::id())         @endif {{timeElapsedString($comment->created_at)}}
{!! html_entity_decode($comment->comment) !!}
@if($comment->created_by == Auth::id())
@endif
@endforeach
{!! Form::label('add_comment', 'Add comment') !!}
{!! Form::button('Save', ['type'=>'button','class' => 'btn btn-primary','id'=>'btnComment','data-loading-text'=>" Processing..."]) !!}
@include('tasks.edit_modal') @include('tasks.time_tracking_modal')
@endsection @section('page_js') @endsection @section('scripts') @endsection