final checkout and card
This commit is contained in:
parent
4bd21bd986
commit
1953c97cd0
33 changed files with 2131 additions and 1084 deletions
|
|
@ -2,7 +2,7 @@
|
|||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>mivita care</title>
|
||||
<title>@if($user_shop->title) {{ $user_shop->title }}@endif | mivita care</title>
|
||||
<meta name="description" content="" />
|
||||
<meta name="Author" content="" />
|
||||
|
||||
|
|
@ -43,8 +43,6 @@
|
|||
<!-- SCROLL TO TOP -->
|
||||
<a href="#" id="toTop"></a>
|
||||
|
||||
|
||||
|
||||
<!-- JAVASCRIPT FILES -->
|
||||
<script type="text/javascript">var plugin_path = "{{ url('/assets/plugins/').'/' }}"</script>
|
||||
<script type="text/javascript" src="{{ asset('/assets/plugins/jquery/jquery-2.2.3.min.js') }}"></script>
|
||||
|
|
@ -66,14 +64,22 @@
|
|||
// Shipping Address show|hide
|
||||
jQuery("#shipswitch").bind("click", function() {
|
||||
jQuery('#shipping').slideToggle(200, function() {
|
||||
|
||||
// scroll down to shipping area.
|
||||
if(jQuery('#shipping').is(":visible")) {
|
||||
_scrollTo('#shipping', 150);
|
||||
}
|
||||
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
if(!jQuery('#shipswitch').is(':checked')){
|
||||
jQuery('#shipping').show();
|
||||
}
|
||||
|
||||
|
||||
jQuery('.quick-cart-box-close').on('click', function () {
|
||||
jQuery('.quick-cart-box').css('display', 'none');
|
||||
});
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -1,22 +1,25 @@
|
|||
|
||||
<div class="alert alert-success bordered-bottom nomargin">
|
||||
<div class="container">
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-12"><!-- left text -->
|
||||
|
||||
<p class="font-lato weight-300 size-20 nomargin-bottom">
|
||||
Du möchtest Vertriebspartner werden oder hast Fragen zu unseren Produkten?
|
||||
</p>
|
||||
<h3>Jetzt Kontakt aufnehmen: <a href="{{url('/kontakt')}}" rel="nofollow" class="btn btn-primary btn-lg">zum Kontakt</a>
|
||||
@if(Util::isCheckout())
|
||||
|
||||
<h3>
|
||||
Jetzt Kontakt aufnehmen: <a href="{{ Util::getUserShopBackUrl('/kontakt') }}" rel="nofollow" class="btn btn-primary btn-lg">zum Kontakt</a>
|
||||
</h3>
|
||||
|
||||
@else
|
||||
<h3>
|
||||
Jetzt Kontakt aufnehmen: <a href="{{url('/kontakt')}}" rel="nofollow" class="btn btn-primary btn-lg">zum Kontakt</a>
|
||||
</h3>
|
||||
|
||||
@endif
|
||||
</div><!-- /left text -->
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<!-- /CALLOUT -->
|
||||
|
|
@ -26,27 +29,16 @@
|
|||
<div class="container">
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-4">
|
||||
<!-- Footer Logo -->
|
||||
<img class="footer-logo" src="{{asset('/assets/images/logo_dark.png')}}" alt=""/>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-4">
|
||||
<!-- Contact Address -->
|
||||
|
||||
|
||||
|
||||
|
||||
<br>
|
||||
|
||||
|
||||
<address>
|
||||
<ul class="list-unstyled">
|
||||
|
||||
|
||||
@if($user_shop->title)
|
||||
<li class="footer-sprite title">
|
||||
<strong style="color: #97b085; font-size: 1.1em;">{{ $user_shop->title }}</strong>
|
||||
|
|
@ -65,7 +57,16 @@
|
|||
<!-- /Contact Address -->
|
||||
</div>
|
||||
|
||||
|
||||
@if(Util::isCheckout())
|
||||
<div class="col-md-4">
|
||||
<!-- Links -->
|
||||
<h4 class="letter-spacing-1"> </h4>
|
||||
<a href="{{ Util::getUserShopBackUrl('/card/show') }}">
|
||||
<i class="fa fa-chevron-left"></i> zurück zum Warenkorb
|
||||
</a>
|
||||
<!-- /Links -->
|
||||
</div>
|
||||
@else
|
||||
<div class="col-md-4">
|
||||
<!-- Links -->
|
||||
<h4 class="letter-spacing-1">Inhalte</h4>
|
||||
|
|
@ -86,19 +87,29 @@
|
|||
<!-- /Links -->
|
||||
</div>
|
||||
|
||||
@endif
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="copyright">
|
||||
<div class="container">
|
||||
@if(Util::isCheckout())
|
||||
<ul class="pull-right nomargin list-inline mobile-block">
|
||||
<li class="{{ Request::is('datenschutz') ? ' active' : '' }}"><a
|
||||
href="{{ url('/datenschutz') }}">Datenschutzerklärung</a></li>
|
||||
<li><a href="{{ Util::getUserShopBackUrl('/datenschutz') }}">Datenschutzerklärung</a></li>
|
||||
<li>•</li>
|
||||
<li class="{{ Request::is('impressum') ? ' active' : '' }} "><a
|
||||
href="{{ url('/impressum') }}">Impressum</a></li>
|
||||
<li><a href="{{ Util::getUserShopBackUrl('/impressum') }}">Impressum</a></li>
|
||||
</ul>
|
||||
|
||||
@else
|
||||
<ul class="pull-right nomargin list-inline mobile-block">
|
||||
<li class="{{ Request::is('datenschutz') ? ' active' : '' }}"><a
|
||||
href="{{ url('/datenschutz') }}">Datenschutzerklärung</a></li>
|
||||
<li>•</li>
|
||||
<li class="{{ Request::is('impressum') ? ' active' : '' }} "><a
|
||||
href="{{ url('/impressum') }}">Impressum</a></li>
|
||||
</ul>
|
||||
@endif
|
||||
© All Rights Reserved, mivita.care
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -37,6 +37,17 @@
|
|||
#header.fixed ul.nav-second-main {
|
||||
margin-top: 8px;
|
||||
}
|
||||
#header li.quick-cart .quick-cart-box a.btn-sm{
|
||||
padding: 8px !important;
|
||||
font-size: 13px;
|
||||
line-height: 1.2em;
|
||||
|
||||
}
|
||||
#header li.quick-cart .quick-cart-box a.btn-default{
|
||||
background-color: transparent;
|
||||
border: #b0adb3 1px solid;
|
||||
}
|
||||
|
||||
</style>
|
||||
<!-- TOP NAV -->
|
||||
<header id="topNav">
|
||||
|
|
@ -47,98 +58,107 @@
|
|||
<i class="fa fa-bars"></i>
|
||||
</button>
|
||||
|
||||
<ul class="pull-right nav nav-pills nav-second-main has-topBar">
|
||||
@if(Util::isCheckout())
|
||||
<a class="logo pull-left" href="{{ Util::getUserShopBackUrl('/') }}">
|
||||
<img class="fixed_top" src="/assets/images/logo_mivita.png" alt="mivita" />
|
||||
<img class="fixed_scroll" src="/assets/images/logo_mivita_fixed.png" alt="mivita" />
|
||||
</a>
|
||||
|
||||
<!-- QUICK SHOP CART -->
|
||||
<li class="quick-cart">
|
||||
<div class="navbar-collapse pull-right nav-main-collapse collapse">
|
||||
<nav class="nav-main">
|
||||
<ul id="topMain" class="nav nav-pills nav-main nav-onepage">
|
||||
<li class="">
|
||||
<a href="{{ Util::getUserShopBackUrl('/card/show') }}">
|
||||
<i class="fa fa-chevron-left"></i> zurück zum Warenkorb
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
@else
|
||||
<ul class="pull-right nav nav-pills nav-second-main has-topBar">
|
||||
<!-- QUICK SHOP CART -->
|
||||
<li class="quick-cart">
|
||||
|
||||
<a href="#" style="border: 1px solid #c3c3c3; padding: 10px;">
|
||||
<a href="#" style="border: 1px solid #c3c3c3; padding: 10px;">
|
||||
<span style="position: relative">
|
||||
<span class="badge badge-success btn-xs badge-corner">{{ Yard::instance('shopping')->count() }}</span>
|
||||
<span class="badge badge-success btn-xs badge-corner faa-horizontal animated">{{ Yard::instance('shopping')->count() }}</span>
|
||||
<i class="fa fa-shopping-cart"></i>
|
||||
</span>
|
||||
|
||||
|
||||
@if(Yard::instance('shopping')->count())
|
||||
<span class="">{{ \Yard::instance('shopping')->subtotal() }} € </span>
|
||||
@endif
|
||||
</a>
|
||||
<div class="quick-cart-box" style="display: @if(Session::has('show-card-after-add')) block @else none @endif">
|
||||
<h4>Warenkorb</h4>
|
||||
|
||||
@if(Yard::instance('shopping')->count())
|
||||
<span class="">{{ \Yard::instance('shopping')->subtotal() }} € </span>
|
||||
@endif
|
||||
</a>
|
||||
<div class="quick-cart-box" style="display: none;">
|
||||
<h4>Warenkorb</h4>
|
||||
<div class="quick-cart-wrapper">
|
||||
@foreach(Yard::instance('shopping')->content() as $row)
|
||||
<a href="{{ url('/produkte/alle-produkte/'.$row->options->slug) }}"><!-- cart item -->
|
||||
@if($row->options->has('image'))
|
||||
<img src="{{ route('product_image', [$row->options->image]) }}" width="50" height="66" alt="">
|
||||
@else
|
||||
<img src="{{ asset('/assets/images/1x1.png') }}" width="50" height="66" alt="">
|
||||
@endif
|
||||
<h5>{{ $row->name }}</h5>
|
||||
<span class="price">{{ $row->qty }}x <strong>{{ $row->price() }} €</strong></span>
|
||||
|
||||
<div class="quick-cart-wrapper">
|
||||
</a><!-- /cart item -->
|
||||
@endforeach
|
||||
</div>
|
||||
<!-- quick cart footer -->
|
||||
<div class="quick-cart-footer clearfix">
|
||||
<div class="text-left">
|
||||
<strong>Zwischensumme:</strong> <strong class="pull-right">{{ Yard::instance('shopping')->subtotal() }} €</strong>
|
||||
<br>
|
||||
<em style="font-size: 0.9em">inkl. MwSt. zzgl. Versandkosten</em>
|
||||
</div>
|
||||
<a href="{{ route(Util::getPostRoute().'card_show', Util::addRoute()) }}" class="btn btn-primary btn-text-500 btn-block mt-3 faa-parent animated-hover">zum Warenkorb <i class="fa fa-shopping-cart faa-horizontal"></i></a>
|
||||
|
||||
|
||||
@foreach(Yard::instance('shopping')->content() as $row)
|
||||
|
||||
<a href="{{ url('/produkte/alle-produkte/'.$row->options->slug) }}"><!-- cart item -->
|
||||
@if($row->options->has('image'))
|
||||
<img src="{{ route('product_image', [$row->options->image]) }}" width="50" height="66" alt="">
|
||||
@else
|
||||
<img src="{{ asset('/assets/images/1x1.png') }}" width="50" height="66" alt="">
|
||||
@endif
|
||||
<h5>{{ $row->name }}</h5>
|
||||
<span class="price">{{ $row->qty }}x <strong>{{ $row->price() }} €</strong></span>
|
||||
|
||||
</a><!-- /cart item -->
|
||||
|
||||
@endforeach
|
||||
|
||||
</div>
|
||||
|
||||
<!-- quick cart footer -->
|
||||
<div class="quick-cart-footer clearfix">
|
||||
<div class="text-left">
|
||||
<strong>Zwischensumme:</strong> <strong class="pull-right">{{ Yard::instance('shopping')->subtotal() }} €</strong>
|
||||
<br>
|
||||
<em style="font-size: 0.9em">inkl. MwSt. zzgl. Versandkosten</em>
|
||||
<a href="#" class="btn btn-sm btn-default mt-3 quick-cart-box-close">schließen</a>
|
||||
|
||||
</div>
|
||||
<a href="{{ route(Util::getPostRoute().'card_show', Util::addRoute()) }}" class="btn btn-primary btn-block mt-3">zum Warenkorb</a>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
<!-- Logo -->
|
||||
<a class="logo pull-left" href="{{ url('/') }}">
|
||||
<img class="fixed_top" src="/assets/images/logo_mivita.png" alt="mivita" />
|
||||
<img class="fixed_scroll" src="/assets/images/logo_mivita_fixed.png" alt="mivita" />
|
||||
</a>
|
||||
<div class="navbar-collapse pull-right nav-main-collapse collapse">
|
||||
<nav class="nav-main">
|
||||
<ul id="topMain" class="nav nav-pills nav-main nav-onepage">
|
||||
<li class="{{ Request::is('/') ? ' active' : '' }}">
|
||||
<a href="/">
|
||||
Start
|
||||
</a>
|
||||
</li>
|
||||
<li class="{{ Request::is('aloevera') ? ' active' : '' }}">
|
||||
<a href="{{url('/aloevera')}}">
|
||||
Aloe Vera
|
||||
</a>
|
||||
</li>
|
||||
<li class="{{ Request::is('produkte/*') ? ' active' : '' }}">
|
||||
<a href="{{url('/produkte/alle-produkte')}}/">
|
||||
Produktwelt
|
||||
</a>
|
||||
</li>
|
||||
<li class="{{ Request::is('geschaeftsmodell/*') ? ' active' : '' }}">
|
||||
<a href="{{url('/geschaeftsmodell/karrierechancen')}} ">
|
||||
Karrierechancen
|
||||
</a>
|
||||
</li>
|
||||
<li class="{{ Request::is('kontakt') ? ' active' : '' }}">
|
||||
<a href="{{ url('kontakt') }}">
|
||||
Kontakt
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
</li>
|
||||
</ul>
|
||||
<!-- Logo -->
|
||||
<a class="logo pull-left" href="{{ url('/') }}">
|
||||
<img class="fixed_top" src="/assets/images/logo_mivita.png" alt="mivita" />
|
||||
<img class="fixed_scroll" src="/assets/images/logo_mivita_fixed.png" alt="mivita" />
|
||||
</a>
|
||||
<div class="navbar-collapse pull-right nav-main-collapse collapse">
|
||||
<nav class="nav-main">
|
||||
<ul id="topMain" class="nav nav-pills nav-main nav-onepage">
|
||||
<li class="{{ Request::is('/') ? ' active' : '' }}">
|
||||
<a href="/">
|
||||
Start
|
||||
</a>
|
||||
</li>
|
||||
<li class="{{ Request::is('aloevera') ? ' active' : '' }}">
|
||||
<a href="{{url('/aloevera')}}">
|
||||
Aloe Vera
|
||||
</a>
|
||||
</li>
|
||||
<li class="{{ Request::is('produkte/*') ? ' active' : '' }}">
|
||||
<a href="{{url('/produkte/alle-produkte')}}/">
|
||||
Produktwelt
|
||||
</a>
|
||||
</li>
|
||||
<li class="{{ Request::is('geschaeftsmodell/*') ? ' active' : '' }}">
|
||||
<a href="{{url('/geschaeftsmodell/karrierechancen')}} ">
|
||||
Karrierechancen
|
||||
</a>
|
||||
</li>
|
||||
<li class="{{ Request::is('kontakt') ? ' active' : '' }}">
|
||||
<a href="{{ url('kontakt') }}">
|
||||
Kontakt
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
</header>
|
||||
<!-- /Top Nav -->
|
||||
|
|
|
|||
|
|
@ -1,23 +1,10 @@
|
|||
@extends('web.user.layouts.application')
|
||||
|
||||
@section('layout-content')
|
||||
|
||||
@include('web.user.layouts.includes.header')
|
||||
|
||||
<!-- wrapper -->
|
||||
<div id="wrapper">
|
||||
|
||||
|
||||
|
||||
@yield('content')
|
||||
|
||||
|
||||
|
||||
<!-- /FOOTER -->
|
||||
@include('web.user.layouts.includes.footer')
|
||||
|
||||
|
||||
</div>
|
||||
<!-- /wrapper -->
|
||||
|
||||
@endsection
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue