public function get_provider_types() { $settings = Settings::where('key', 'default_distance_unit')->first(); $unit = $settings->value; if ($unit == 0) { $unit_set = 'kms'; } elseif ($unit == 1) { $unit_set = 'miles'; } $types = ProviderType::paginate(10); $title = ucwords(trans('customize.Provider') . " " . trans('customize.Types')); /* 'Provider Types' */ return View::make('list_provider_types')->with('title', $title)->with('page', 'provider-type')->with('unit_set', $unit_set)->with('types', $types); }
public function get_provider_types() { $types = ProviderType::paginate(10); return View::make('list_provider_types')->with('title', 'Provider Types')->with('page', 'provider-type')->with('types', $types); }