public function getWeighInEntryData()
 {
     $fishingCategories = array_filter((new CategoryTransformer())->transformCollection(Category::all()->toArray()));
     $fishingLocations = array_filter((new LocationTransformer())->transformCollection(Location::all()->toArray()));
     $fishingSectors = array_filter((new SectorTransformer())->transformCollection(Sector::all()->toArray()));
     $speciesList = array_filter((new SpeciesTransformer())->transformCollection(Species::with(['type', 'weights'])->get()->toArray()));
     return $this->respond(['fishingCategories' => $fishingCategories ?: null, 'fishingLocations' => $fishingLocations ?: null, 'fishingSectors' => $fishingSectors ?: null, 'speciesList' => $speciesList ?: null]);
 }
 /**
  * Show the form for creating a new resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function create()
 {
     $speciesTypes = Helpers::getSpeciesTypes();
     $sectors = Sector::all();
     return view('admin.pages.species.create', compact('speciesTypes', 'sectors'));
 }
 /**
  * Returns an array of Weigh-In Sites
  *
  * @return array
  */
 public static function getWeighInSectors()
 {
     $sectors = [];
     foreach (Sector::all() as $sector) {
         $sectors[$sector->id] = $sector->name;
     }
     return $sectors;
 }