diff --git a/app/Http/Controllers/LeadController.php b/app/Http/Controllers/LeadController.php index f234387..e98fa9c 100755 --- a/app/Http/Controllers/LeadController.php +++ b/app/Http/Controllers/LeadController.php @@ -97,7 +97,7 @@ class LeadController extends Controller $user->account = new UserAccount(); } } - $next_account_id = UserAccount::max('m_account') +1; + $next_account_id = UserAccount::withTrashed()->max('m_account') +1; if($user->account->m_account === null){ $user->account->m_account = $next_account_id; } diff --git a/app/Models/Product.php b/app/Models/Product.php index 07529e7..1261340 100644 --- a/app/Models/Product.php +++ b/app/Models/Product.php @@ -507,7 +507,7 @@ class Product extends Model public function getFormattedPriceCurrencyWith(Bool $net = true, Bool $ufactor = true, Country $country = null){ $ret = ""; - if($country->currency){ + if($country && isset($country->currency) && $country->currency){ $price = $this->getPriceWith($net, $ufactor, $country); $ret = formatNumber($price * $country->currency_faktor)." ".$country->currency_unit; return '~'.$ret.''; diff --git a/resources/views/admin/product/form.blade.php b/resources/views/admin/product/form.blade.php index d5ad2e6..ca2d9fa 100755 --- a/resources/views/admin/product/form.blade.php +++ b/resources/views/admin/product/form.blade.php @@ -25,16 +25,18 @@ - + {{ __('Kategorie (Mehrfachauswahl)') }}* {!! HTMLHelper::getCategoriesOptions($product->categories()->pluck('category_id')->toArray(), false) !!} + {{-- {{ __('Produkt anzeigen') }} alt {{ Form::select('show_at', $product->showATs, $product->show_at, array('data-live-search'=>'false', 'class'=>'selectpicker', 'id'=>'show_at') ) }} + --}} {{ __('Listenposition') }} diff --git a/resources/views/web/layouts/application.blade.php b/resources/views/web/layouts/application.blade.php index 2e7d97f..dce089b 100644 --- a/resources/views/web/layouts/application.blade.php +++ b/resources/views/web/layouts/application.blade.php @@ -71,6 +71,7 @@ div.side-nav ul.list-group-bordered > li.list-group-item.active > a:hover{ color: #fff !important; } + diff --git a/resources/views/web/user/layouts/application.blade.php b/resources/views/web/user/layouts/application.blade.php index 29f9280..34092d7 100644 --- a/resources/views/web/user/layouts/application.blade.php +++ b/resources/views/web/user/layouts/application.blade.php @@ -77,7 +77,6 @@ color: #535252 !important; border-color: #989a9c; } - @@ -100,7 +99,7 @@ Wenn du dein Land änderst, wirst du von deiner aktuellen Sitzung abgemeldet und dein Warenkorb wird geleert. {!! Form::open(['url' => '/change_website_lang']) !!} - Land* + Lieferland* @foreach ($mylangs as $mycid => $mycountry) id === $mycountry->id) selected @endif>{{ $mycountry->getLocated() }} diff --git a/resources/views/web/user/layouts/includes/header.blade.php b/resources/views/web/user/layouts/includes/header.blade.php index 0831f33..0b1b0f2 100644 --- a/resources/views/web/user/layouts/includes/header.blade.php +++ b/resources/views/web/user/layouts/includes/header.blade.php @@ -47,20 +47,33 @@ background-color: transparent; border: #b0adb3 1px solid; } + #topBar { + } + #topBar ul.top-links > li > a { + display: inline-block; + } @if(isset($mylangs)) + + - - @if (isset($mylangs[\App\Services\Shop::getUserShopLang()])) @php($country = $mylangs[\App\Services\Shop::getUserShopLang()]) - {{ $country->getLocated() }} + Lieferland: {{ $country->getLocated() }} @endif + {{-- Welcome to Smarty, John Doe MY ACCOUNT @@ -75,9 +88,6 @@ --}} - - - @endif