membership register

This commit is contained in:
Kevin Adametz 2020-02-15 14:53:32 +01:00
parent 3711fcc8d0
commit 37cb2b06c7
38 changed files with 1261 additions and 463 deletions

View file

@ -16,7 +16,7 @@ class Util
}
public static function formatDate(){
if(\App::getLocale() == "en"){
if(\App::getLocale() === "en"){
return 'yyyy-mm-dd';
}
return 'dd.mm.yyyy';
@ -24,19 +24,26 @@ class Util
}
public static function formatDateDB(){
if(\App::getLocale() == "en"){
if(\App::getLocale() === "en"){
return 'Y-m-d';
}
return 'd.m.Y';
}
public static function formatDateTimeDB(){
if(\App::getLocale() == "en"){
if(\App::getLocale() === "en"){
return 'Y-m-d - H:i';
}
return 'd.m.Y - H:i';
}
public static function formatNumber($value){
if(\App::getLocale() === "en"){
return number_format($value, 2, '.', ',');
}
return number_format($value, 2, ',', '.');
}
public static function utf8ize( $mixed ) {
if (is_array($mixed)) {
foreach ($mixed as $key => $value) {
@ -95,6 +102,10 @@ class Util
return false;
}
public static function getMyMivitaUrl($protocol = true){
$pro = $protocol ? config('app.protocol') : "";
return $pro.config('app.pre_url_crm').config('app.domain').config('app.tld_care');
}
public static function getUserShopBackUrl($reference = ""){
if(\Session::has('user_shop')){