public function getEditTemplate($id)
 {
     try {
         $template = SchemaTemplate::findOrFail($id);
         $times = Config::get('times', NULL);
         $policies = Policy::lists('name', 'id');
         return View::make('admin.schematemplates.add-edit', ['template' => $template, 'times' => $times, 'policies' => $policies]);
     } catch (Illuminate\Database\Eloquent\ModelNotFoundException $e) {
         App::abort(404);
     }
 }
 public function getFreePlan()
 {
     $plan = FRINTERNET::find(1);
     $policies = Policy::lists('name', 'id');
     return View::make('admin.plans.free')->with('policies', $policies)->with('plan', $plan);
 }