Example #1
0
 public function get_review($ticketID)
 {
     $appeals = Appeal::where('ticketID', '=', $ticketID)->first();
     $rulings = Ruling::where('ticketID', '=', $ticketID)->first();
     if (Session::get('cwid') == $appeals->cwid) {
         $denyReasonsArray = array('none' => '', 'incomplete' => 'Incomplete/Illegible', 'past' => 'Past Due', 'nobasis' => 'No Basis for Appeal', 'insufficient' => 'Insufficient Evidence', 'other' => 'Other (specify)');
         if (!empty($rulings)) {
             $view = View::make('appeal.review')->with('appeals', $appeals)->with('rulings', $rulings)->with('denyReason', $denyReasonsArray[$rulings->denyreason]);
             $view->title = "Review Appeal";
         } else {
             $view = View::make('appeal.review')->with('appeals', $appeals)->with('rulings', $rulings);
             $view->title = "Review Appeal";
         }
         return $view;
     } else {
         return Redirect::to('appeal/')->with('alertMessage', 'You do not have access to that ticket.');
     }
 }
Example #2
0
 public function get_reviewclosed($ticketID)
 {
     //$this->filter('before','jboardOnly');
     $appeals = Appeal::where('ticketID', '=', $ticketID)->first();
     $rulings = Ruling::where('ticketID', '=', $ticketID)->first();
     $denyReasonsArray = array('none' => '', 'incomplete' => 'Incomplete/Illegible', 'past' => 'Past Due', 'nobasis' => 'No Basis for Appeal', 'insufficient' => 'Insufficient Evidence', 'other' => 'Other (specify)');
     $view = View::make('jboard.reviewclosed')->with('appeals', $appeals)->with('rulings', $rulings)->with('denyReason', $denyReasonsArray[$rulings->denyreason]);
     $view->title = "Review Appeal";
     return $view;
 }