Example #1
0
 public function readLogDetail($id_policy, $db_key, $session_key)
 {
     $reportLog = RmanOutput::where('db_key', $db_key)->where('session_key', $session_key)->get();
     $execDetail = RmanBackupJobDetails::where('db_key', $db_key)->where('session_key', $session_key)->first();
     $policyDetail = Policy::find($id_policy);
     //dd($reportLog);
     return View::make('reports.reportsReadLogDetail')->with('policyDetail', $policyDetail)->with('reportLog', $reportLog)->with('execDetail', $execDetail);
 }
Example #2
0
 public function delete($id_policy)
 {
     Policy::destroy($id_policy);
     return redirect()->action('PoliciesController@read')->withInput(Request::only('id_policy'));
 }