with('industries', Cache::get('industries')->each(function ($industry) { $industry->name = trans('industries.'.$industry->name); })->sortBy(function ($industry) { return $industry->name; })); $view->with('countries', Cache::get('countries')->each(function ($country) { $country->name = trans('countries.'.$country->name); })->sortBy(function ($country) { return $country->name; })); $view->with('paymentTypes', Cache::get('paymentTypes')->each(function ($pType) { $pType->name = trans('texts.payment_types.'.$pType->name); })->sortBy(function ($pType) { return $pType->name; })); } }