/**
     * Datatables data
     *
     * @return Datatables JSON
     */
    public function data()
    {
        //		$query = TechStatus::select(array('statuses.id','statuses.name','statuses.description'))
        //			->orderBy('statuses.name', 'ASC');
        //		$query = TechStatus::select('id', 'name' 'description', 'updated_at');
        //			->orderBy('name', 'ASC');
        $query = TechStatus::select('id', 'name', 'description', 'updated_at');
        //dd($query);
        return Datatables::of($query)->addColumn('actions', '
					<a href="{{ URL::to(\'admin/tech_statuses/\' . $id . \'/edit\' ) }}" class="btn btn-success btn-sm" >
						<span class="glyphicon glyphicon-pencil"></span>  {{ trans("kotoba::button.edit") }}
					</a>
				')->make(true);
    }
 /**
  * Update a role.
  *
  * @param  array  $inputs
  * @param  int    $id
  * @return void
  */
 public function update($input, $id)
 {
     //dd($input['enabled']);
     $status = TechStatus::find($id);
     $status->update($input);
 }