public static function arrayCats() { $catlist = Data_Claims_Cat::all(); $arrayCats = array(); $arrayCats[0] = 'Choose Category'; foreach ($catlist as $value) { $arrayCats[$value->claimcatid] = $value->claims_cat_name; } return $arrayCats; }
public function get_request() { $data['claimsCat'] = Cat::arrayCats(); $data['claimlist'] = Claims_App::listIndClaims(); return View::make('claims.request.request', $data); }