diff --git a/.env b/.env index 9c7ed0a..039e4ea 100644 --- a/.env +++ b/.env @@ -3,8 +3,10 @@ APP_ENV=local APP_DEBUG=true APP_KEY=base64:HrWQ9AV3Zt2TU0iq1OeUUpTUaXwNUdh8xHmx7RXTif4= APP_URL=https://mivita.local/ -APP_DOMAIN=mivita.local -APP_PROTOCOL=http:// +APP_DOMAIN=mivita +APP_TLD_CARE=.local +APP_TLD_SHOP=.lshop +APP_PROTOCOL=https:// APP_URL_MAIN= APP_URL_CHECKOUT=checkout. #APP_URL_MAIN=dev. diff --git a/.idea/mivita.care.iml b/.idea/mivita.care.iml index 2f0edf4..f1fcdb1 100644 --- a/.idea/mivita.care.iml +++ b/.idea/mivita.care.iml @@ -34,6 +34,7 @@ + @@ -82,22 +83,29 @@ - + + + + + + + + diff --git a/.idea/php.xml b/.idea/php.xml index 2c12eee..1f86948 100644 --- a/.idea/php.xml +++ b/.idea/php.xml @@ -100,9 +100,17 @@ - + + + + + + + + + diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 2a195ba..2746dfc 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,12 +2,84 @@ + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - log - same_as_billing - select - back_to_shop - secu - checkUserShopName - shop_name_description - shop_contact_help - user_shop_name_check - ok - billing_cou - mail - MailVerifyContact - Dear customer - Dear Customer you will receive - For further - reset - jackon - trans - tra - checkout_subject - transmitted_data - data_protected - data - data_prote - data_pro - birthday - datepicker-birthday - datepicker - Mail:: - - - - - - $PROJECT_DIR$/app/Http/Controllers - $PROJECT_DIR$/database/migrations - $PROJECT_DIR$/resources/views/user - $PROJECT_DIR$/resources/views/web - $PROJECT_DIR$/resources/views - $PROJECT_DIR$/resources - $PROJECT_DIR$/app - $PROJECT_DIR$/app/Http - - @@ -144,63 +126,6 @@ - - - @@ -304,199 +229,28 @@ - + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +
+   + {{ __('back') }} +
+ + @include('admin.category.form') + +
+   + {{ __('back') }} +
+ + {!! Form::close() !!} + + + @include('admin.category.images') + + +@endsection diff --git a/resources/views/admin/category/form.blade.php b/resources/views/admin/category/form.blade.php new file mode 100755 index 0000000..c80cb62 --- /dev/null +++ b/resources/views/admin/category/form.blade.php @@ -0,0 +1,67 @@ + +
+ +
+ {{ __('Kategorie') }} + +
+ +
+ +
+
+ + + {{ Form::text('name', $category->name, array('placeholder'=>__('Name'), 'class'=>'form-control', 'id'=>'name', 'required')) }} +
+
+ +
+
+ + {{ Form::text('headline', $category->headline, array('placeholder'=>__('Produktwelt'), 'class'=>'form-control', 'id'=>'name', 'required')) }} +
+
+ +
+
+ + +
+
+ + {{ Form::text('pos', $category->pos, array('placeholder'=>__('pos'), 'class'=>'form-control', 'id'=>'pos')) }} +
+
+ +
+
+ + +
+
+ {{ __('Übersetzungen') }} +
+
+ @foreach($trans as $lang) + @if($lang != 'de') +
+
+ + {{ Form::text('trans_name['.$lang.']', $category->getTrans('name', $lang), array('class'=>'form-control', 'id'=>'trans_name_'.$lang)) }} +
+
+ + {{ Form::text('trans_headline['.$lang.']', $category->getTrans('headline', $lang), array('class'=>'form-control', 'id'=>'trans_headline_'.$lang)) }} +
+
+ @endif + @endforeach +
+
+ diff --git a/resources/views/admin/category/images.blade.php b/resources/views/admin/category/images.blade.php new file mode 100755 index 0000000..c4428b4 --- /dev/null +++ b/resources/views/admin/category/images.blade.php @@ -0,0 +1,93 @@ + + + + +
+ +
+ {{ __('Headline Bild') }} + +
+ + +
+ + @if($category->id>0) + + +
+ +
+

Bild wird rechts hinter die Headline gesetzt und automatisch auf eine Höhe von 60 Pixel skaliert.

+
+
+ +
+ @if($category->headline_image_id) +
+ +
+ Bild löschen + @if($category->iq_image->active) + + @else + + @endif +
+ @endif +
+
+
+ + @if(!$category->headline_image_id) +
+
+
+ @csrf + +
+
+ +
+ +
+ +
+
+
+
+ @else +

Nur ein Bild möglich, vor neuem Upload Bild löschen

+ @endif +
+
+ @else +

Kategorie erst anlegen

+ + + @endif + + +
+
diff --git a/resources/views/admin/category/index.blade.php b/resources/views/admin/category/index.blade.php index c0edc30..d3dbd58 100755 --- a/resources/views/admin/category/index.blade.php +++ b/resources/views/admin/category/index.blade.php @@ -12,7 +12,7 @@   {{__('Pos')}} {{__('Hauptkategorie')}} - {{__('Unterkategorie')}} + {{__('Headline')}} {{__('Translate') }} {{__('Status')}} @@ -22,20 +22,15 @@ @foreach($values as $value) - + {{ $value->pos }} @if($value->parent) {{ $value->parent->name }} @else {{ $value->name }} @endif @if($value->parent) {{ $value->name }} @else - @endif - {{ $value->getTranNames() }} + {{ $value->headline }} + @if($value->active) @else@endif @@ -44,102 +39,22 @@
- + + {{__('Neue Kategorie erstellen')}} +
- - - - - diff --git a/resources/views/web/templates/_categories.blade.php b/resources/views/web/templates/_categories.blade.php index 0bed069..b37ef41 100644 --- a/resources/views/web/templates/_categories.blade.php +++ b/resources/views/web/templates/_categories.blade.php @@ -1,14 +1,10 @@ -
- +

Kategorien

- - -
diff --git a/resources/views/web/templates/card.blade.php b/resources/views/web/templates/card.blade.php index c18cb5d..781dab8 100644 --- a/resources/views/web/templates/card.blade.php +++ b/resources/views/web/templates/card.blade.php @@ -77,6 +77,7 @@ .cartContent .yard .total_price { padding-top: 10px; } + } @media only screen and (min-width: 992px) { .cartContent .yard .total_price { @@ -119,7 +120,7 @@ @if(Yard::instance('shopping')->content()->count()) - {!! Form::open(['url' => route(Util::getPostRoute().'card_update', Util::addRoute()), 'class' => 'cartContent clearfix', 'id'=>'']) !!} + {!! Form::open(['url' => url(Util::getPostRoute().'card/update'), 'class' => 'cartContent clearfix', 'id'=>'']) !!}
@@ -148,7 +149,7 @@ {{ $row->name }} Lieferzeit: 1-3 Werktage - +
{{ $row->subtotal() }}
× {{ $row->price() }} €
@@ -157,8 +158,8 @@ @endforeach
- Warenkorb löschen - + Warenkorb löschen +
@@ -199,7 +200,7 @@
Versandland:
-
+ @@ -225,7 +226,7 @@ {{ Yard::instance('shopping')->totalWithShipping() }} € Gesamtsumme: - zur Kasse + zur Kasse

Sie werden auf unseren checkout Server weitergeletet, die Verbindung ist mit SSL verschlüsselt.

diff --git a/resources/views/web/templates/produkte-item.blade.php b/resources/views/web/templates/produkte-item.blade.php index 26230a9..6c7ea70 100644 --- a/resources/views/web/templates/produkte-item.blade.php +++ b/resources/views/web/templates/produkte-item.blade.php @@ -1,5 +1,11 @@ - +
@@ -7,20 +13,22 @@ @php ($set = 'first') - @foreach($product->images as $image) - @if($image->slug) - @if($set == 'hover') - {{ $product->getLang('name') }} - @php($set = 'done') - @endif + @foreach($product->imagesActive as $image) + @if($image->active) + @if($image->slug) + @if($set == 'hover') + + @php($set = 'done') + @endif - @if($set == 'first') - {{ $product->getLang('name') }} - @php($set = 'hover') + @if($set == 'first') + {{ $product->getLang('name') }} + @php($set = 'hover') + @endif @endif @endif @endforeach @@ -30,26 +38,30 @@ @if($user_shop)
-

{{ $product->getLang('name') }}

- +

{{ $product->getLang('name') }}

- + @if($product->price_old > 0) +
+ {{ $product->getFormattedPriceOld() }} € + {{ $product->getFormattedPrice() }} € +
+ @else +
+ {{ $product->getFormattedPrice() }} € +
+ @endif -
- {{ $product->getFormattedPrice() }} € -
+
@else + + @endif diff --git a/resources/views/web/templates/produkte-show.blade.php b/resources/views/web/templates/produkte-show.blade.php index 73046e8..66d4620 100644 --- a/resources/views/web/templates/produkte-show.blade.php +++ b/resources/views/web/templates/produkte-show.blade.php @@ -26,7 +26,7 @@ font-size: 16px; } -