Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $datacol[] = array(
- 'button' => '<a href="tasks/details/{{ $task->id }}" class="btn btn-sm">
- <i class="bookmark big icon" data-toggle="tooltip" data-placement="top" title="Task Details"></i></a>',
- 'id' => $task->id,
- 'task_type' => (DB::table('tasktypes')->where('id','=', $task->task_type_id)->value('task_type')),
- 'related_block' => (DB::table('chapters')->where('id','=', $task->related_block)->value('description')),
- 'assigned_to' => (DB::table('users')->where('id','=', $task->assigned_to)->value('display_name')),
- 'time' => (DB::table('task_interactions')->where('task_id','=', $task->id)->pluck('task_time')->sum()),
- 'start_date' => (DB::table('task_interactions')->where('task_id','=', $task->id)->where('status','=','In Progress')->pluck('created_at')->first()),
- 'end_date' => (DB::table('task_interactions')->where('task_id','=', $task->id)->where('status','=','Finished')->pluck('created_at')->first()),
- 'status' => (DB::table('tasks')->where('id','=', $task->id)->value('status')),
- 'comments' => (DB::table('tasks')->where('id','=', $task->id)->value('comments'))
- );
Add Comment
Please, Sign In to add comment