private function getDropdowns() { $countries = Country::withTranslation()->whereIsActive()->orderByTranslation('sortas')->get()->lists('name', 'id'); $region_types = RegionType::withTranslation()->orderByTranslation('sortas')->get()->lists('name', 'id'); view()->share('countries', $countries); view()->share('region_types', $region_types); }
private function getDropdowns() { $countries = Country::withTranslation()->whereIsActive()->orderByTranslation('sortas')->get()->lists('name', 'id'); $languages = Language::orderBy('name')->get()->lists('name', 'id'); $currencies = Currency::withTranslation()->orderByTranslation('sortas')->get()->lists('name', 'id'); view()->share('countries', $countries); view()->share('languages', $languages); view()->share('currencies', $currencies); }