Guest User

Untitled

a guest
Jan 18th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. $datacol[] = array(
  2. 'button' => '<a href="tasks/details/{{ $task->id }}" class="btn btn-sm">
  3. <i class="bookmark big icon" data-toggle="tooltip" data-placement="top" title="Task Details"></i></a>',
  4. 'id' => $task->id,
  5. 'task_type' => (DB::table('tasktypes')->where('id','=', $task->task_type_id)->value('task_type')),
  6. 'related_block' => (DB::table('chapters')->where('id','=', $task->related_block)->value('description')),
  7. 'assigned_to' => (DB::table('users')->where('id','=', $task->assigned_to)->value('display_name')),
  8. 'time' => (DB::table('task_interactions')->where('task_id','=', $task->id)->pluck('task_time')->sum()),
  9. 'start_date' => (DB::table('task_interactions')->where('task_id','=', $task->id)->where('status','=','In Progress')->pluck('created_at')->first()),
  10. 'end_date' => (DB::table('task_interactions')->where('task_id','=', $task->id)->where('status','=','Finished')->pluck('created_at')->first()),
  11. 'status' => (DB::table('tasks')->where('id','=', $task->id)->value('status')),
  12. 'comments' => (DB::table('tasks')->where('id','=', $task->id)->value('comments'))
  13. );
Add Comment
Please, Sign In to add comment