public function sendEmailsToSubscribers($job_id)
 {
     $notif = new Notifications();
     $notif->sendEmailsToSubscribersMail($job_id);
 }
     if ($j->deleteJob($token)) {
         $app->flash('success', "Job {$id} has been deleted successfully.");
         $app->redirect(ADMIN_URL);
     } else {
         $app->flash('danger', "Job {$id} could not be deleted.");
         $app->redirect(ADMIN_MANAGE);
     }
 });
 // activate job
 $app->get('/:id/activate/:token', 'validateUser', function ($id, $token) use($app) {
     $j = new Jobs($id);
     if ($j->activateJob($token)) {
         $job = $j->showJobDetails();
         $title = $j->getSlugTitle();
         $notif = new Notifications();
         $notif->sendEmailsToSubscribersMail($id);
         $app->flash('success', "Job {$id} has been activated successfully.");
         $app->redirect(ADMIN_URL . "jobs/{$job->id}/{$title}");
     } else {
         $app->flash('danger', "Job {$id} could not be activated.");
         $app->redirect(ADMIN_URL . "jobs/{$id}");
     }
 });
 // deactivate job
 $app->get('/:id/deactivate/:token', 'validateUser', function ($id, $token) use($app) {
     $j = new Jobs($id);
     if ($j->deactivateJob($token)) {
         $job = $j->showJobDetails();
         $title = $j->getSlugTitle();
         $app->flash('success', "Job {$id} has been deactivated successfully.");
         $app->redirect(ADMIN_URL . "jobs/{$job->id}/{$title}");