set default country and some styling

This commit is contained in:
Cüneyt Şentürk
2021-09-08 11:40:03 +03:00
parent 9a95426d90
commit 643c907d60
7 changed files with 232 additions and 150 deletions

View File

@ -68,8 +68,6 @@ class Companies extends Controller
$real_key = 'localisation.' . $key;
break;
case 'country':
$countries = trans('countries');
$value = array_search($value, $countries);
$real_key = 'company.' . $key;
break;
default:
@ -99,6 +97,10 @@ class Companies extends Controller
}
setting()->set($real_key, $value);
if ($key == 'country') {
setting()->set('default.' . $key, $value);
}
}
// Save all settings