public static function getSectorDayChangeTitle($section) { $dayForTitle = SectorHistoricals::getSectorWeekDay(); if ($section == 'sectorDayGain') { return $dayForTitle . "'s Best Performing Sectors"; } elseif ($section == 'sectorDayLoss') { return $dayForTitle . "'s Worst Performing Sectors"; } }
public function sectorDayChanges($sectorName) { return view('layouts.partials.all-sectors-day-change-display')->with(['selectedSector' => $sectorName, 'sectors' => SectorHistoricals::getSectorDayChanges("sectorDayGain", 30), 'sectorWeekDay' => SectorHistoricals::getSectorWeekDay()]); }