public function applicationstatuscode()
 {
     if ($this->applicationstatus_id == null) {
         return;
     } else {
         $output = statusCode::find($this->applicationstatus_id);
         return $output->statusCode;
     }
 }
 public static function getAllTravelStatusOptions($department = "", $accountType_id = "")
 {
     $statusCodes = statusCode::all();
     $output = "<option value = ''>Any status</option>";
     foreach ($statusCodes as $statusCode) {
         $selected = "";
         if (isset($_POST['travelstatus'])) {
             if ($_POST['travelstatus'] == $statusCode->id) {
                 $selected = " selected ";
             }
         }
         switch ($department) {
         }
         if ($department == "USEC" || $department == "OSEC") {
             if ($statusCode->id < 4) {
                 continue;
             }
         }
         $output .= "<option {$selected} value = '{$statusCode->id}'>{$statusCode->statusCode}</option>";
     }
     switch ($department) {
         case "IMMIGRATION":
             $output = "\n\t\t\t\t<option selected value = 'APPROVED'>APPROVED</option>\n\t\t\t\t";
             return $output;
             break;
     }
     return $output;
 }