Пример #1
0
 public function newProgram()
 {
     $orgName = CommonFunction::companySetupOrgName()->org_name;
     $organizations = DB::table('users')->lists('organization');
     $inspectors = DB::table('users')->where('organization', $orgName)->orderBy('emp_id')->get();
     $prgramList = DB::table('sia_program')->where('soft_delete', '<>', '1')->orderBy('created_at', 'desc')->paginate(10);
     return View::make('surveillance.newProgram')->with('PageName', 'New Program')->with('active', 'sia')->with('organizations', $organizations)->with('dates', parent::dates())->with('toDay', date("d F Y"))->with('months', parent::months())->with('years_from', parent::years_from())->with('years', parent::years())->with('inspectors', $inspectors)->with('prgramList', $prgramList);
 }