@php use App\Helpers\Helper; use Request as Input; use Carbon\Carbon; @endphp @extends('layouts.master') @section('title', 'Task Details') @section('content')
@include('admin.errors.error') @section('breadcrumbs') @endsection

Details

  • Task No: #{{ $task->sequence_no }}
  • Title: {{ $task->title }}
  • Assigned To: {{ isset($task->getAssignName) ? $task->getAssignName->ownerName : '-' }}
  • Due Date: {{ isset($task->due_date) ? Carbon::createFromFormat('Y-m-d', $task->due_date)->format(config('const.displayDate')) : '-' }}
  • Description: {!! $task->descriptions !!}
  • Notes: {!! $task->notes !!}
  • Created By: {{ isset($task->getCreatedByName) ? $task->getCreatedByName->first_name.' '.$task->getCreatedByName->last_name : '-'}}
  • Updated By: {{ isset($task->getUpdatedByName) ? $task->getUpdatedByName->first_name.' '.$task->getUpdatedByName->last_name : '-' }}
  • Status: {!! Helper::displayTaskStatus($task->status) !!}
@if (auth()->user()->can('update-task') && auth()->user()->roles[0]->id !== config('const.roleSuperAdmin')) Edit @endif   Back

Attachments

@if (count($task->getTaskAttachment) > 0) @foreach ($task->getTaskAttachment as $key => $attachment) @endforeach @else @endif
# File Name Action
{{ $key + 1 }} {{ $attachment->file_name }} @if(auth()->user()->can('list-task')) @endif @if(auth()->user()->can('delete-task')) @endif
Attachments Not Found.

Comment

{!! Form::open([ 'route' => ['admin.task.add-comment'], 'id' => 'addcomment', 'name' => 'addcomment', 'enctype' => 'multipart/form-data', ]) !!} @csrf
{!! Form::label('comment', 'Enter Comment', ['class' => 'form-label', 'for' => 'title']) !!} * {!! Form::textarea('comment', Input::old('comment'), [ 'id' => 'v', 'class' => 'form-control', 'placeholder' => 'Enter Comment', 'tabindex' => '5', 'rows' => '6', ]) !!}
{!! Form::close() !!}
Task History
    @if (count($task->getTaskHistory) > 0) @php $i=0; @endphp @foreach ($task->getTaskHistory as $key => $history)
  • @if ($history->status_to == config('const.taskstatusNewInt')) @endif @if ($history->status_to == config('const.taskstatusInProgressInt')) @endif @if ($history->status_to == config('const.taskstatusOnHoldInt')) @endif @if ($history->status_to == config('const.taskstatusCompletedInt')) @endif
    @if ($history->status_to == config('const.taskstatusNewInt')) {!! Helper::displayTaskStatus($history->status_to) !!} @endif @if ($history->status_to == config('const.taskstatusInProgressInt')) {!! Helper::displayTaskStatus($history->status_to) !!} @endif @if ($history->status_to == config('const.taskstatusOnHoldInt')) {!! Helper::displayTaskStatus($history->status_to) !!} @endif @if ($history->status_to == config('const.taskstatusCompletedInt')) {!! Helper::displayTaskStatus($history->status_to) !!} @endif @if($key==0) New Update @endif {{ $history->created_at->diffForHumans() }}
    @php $userID = isset($history->getCommenterUser) ? $history->getCommenterUser->id : '' @endphp Avatar
    {{ isset($history->getCommenterUser) ? $history->getCommenterUser->ownerName : '' }}
    {{ isset($history->getCommenterUser->roles) ? $history->getCommenterUser->roles[0]->name : '' }}

    {{ isset($history->comment) ? $history->comment : '' }}

  • @endforeach @endif
@include('admin.confirmalert') @endsection @section('scripts') @endsection