/**
  * Show a list of all the languages posts formatted for Datatables.
  *
  * @return Datatables JSON
  */
 public function data()
 {
     $notifications = Notification::join('package', 'package.id', '=', 'notification.package_id')->select(array('package.name', 'notification.id', 'notification.is_read', 'notification.title', 'notification.content', 'notification.created_at'))->orderBy('notification.id', 'ASC');
     //$notifications = Notification::select(array('notifications.id','notifications.name','notifications.email', 'notifications.created_at'))->orderBy('notifications.email', 'ASC');
     return Datatables::of($notifications)->add_column('actions', '<a href="{{{ URL::to(\'admin/notifications/\' . $id . \'/edit\' ) }}}" class="btn btn-success btn-sm iframe" ><span class="glyphicon glyphicon-pencil"></span>  {{ Lang::get("admin/modal.edit") }}</a>
                 <a href="{{{ URL::to(\'admin/notifications/\' . $id . \'/delete\' ) }}}" class="btn btn-sm btn-danger iframe"><span class="glyphicon glyphicon-trash"></span> {{ Lang::get("admin/modal.delete") }}</a>
             ')->add_column('check', '<input type="checkbox" name="check[]" value="{{$id}}"/>')->make(true);
 }