379 lines
No EOL
18 KiB
PHP
379 lines
No EOL
18 KiB
PHP
@extends($user_shop ?'web.user.layouts.layout' : 'web.layouts.layout')
|
|
|
|
@section('content')
|
|
|
|
<section class="page-header page-header-xlg parallax parallax-3"
|
|
style="background-image:url('/assets/images/vision-min.jpg')">
|
|
<div class="overlay dark-1"><!-- dark overlay [1 to 9 opacity] --></div>
|
|
|
|
<div class="container">
|
|
</div>
|
|
</section>
|
|
<!-- /PAGE HEADER -->
|
|
|
|
<style>
|
|
/* div.shop-item {
|
|
margin-bottom:30px;
|
|
border: 1px solid #ddd;
|
|
}
|
|
div.shop-item > .thumbnail, .thumbnail {
|
|
border: none;
|
|
}
|
|
div.shop-item-summary {
|
|
padding: 8px;
|
|
}
|
|
div.shop-item-summary h2 a {
|
|
color: #9aa983;
|
|
font-size: 1.2em;
|
|
margin: 0 0 10px 0;
|
|
}
|
|
div.shop-item-buttons {
|
|
padding: 0 8px 10px 8px;
|
|
}
|
|
div.shop-item-buttons .btn-xs{
|
|
padding: 4px;
|
|
}
|
|
.cartContent a.remove_item {
|
|
background: transparent;
|
|
}
|
|
.cartContent .product_name {
|
|
font-size: 1.15em;
|
|
}
|
|
.cartContent .product_name > small {
|
|
line-height: 20px;
|
|
}
|
|
|
|
.cartContent .head .product_name {
|
|
min-height: auto;
|
|
padding-left: 20px;
|
|
}
|
|
|
|
a.shop-item-hl {
|
|
color: #9aa983;
|
|
font-size: 1.2em;
|
|
}
|
|
|
|
.table-mi-bordered > thead > tr > td, .table-bordered > tbody > tr > td, .table-bordered > tfoot > tr > td {
|
|
border: 1px solid #ddd !important;
|
|
}
|
|
|
|
|
|
@media only screen and (max-width: 1200px) {
|
|
.cartContent .yard .product_name {
|
|
padding-bottom: 0;
|
|
min-height: 60px;
|
|
width: 60%;
|
|
}
|
|
.cartContent .yard .remove_item {
|
|
clear: right;
|
|
}
|
|
.cartContent .yard .total_price {
|
|
width: auto;
|
|
padding-top: 30px;
|
|
clear: right;
|
|
}
|
|
.cartContent .yard .item .qty {
|
|
float: left;
|
|
text-align: left;
|
|
}
|
|
.cartContent .yard .item.head {
|
|
display: none;
|
|
}
|
|
|
|
}
|
|
@media only screen and (min-width: 768px) {
|
|
|
|
.cartContent .yard .total_price {
|
|
padding-top: 10px;
|
|
}
|
|
|
|
}
|
|
@media only screen and (min-width: 992px) {
|
|
.cartContent .yard .total_price {
|
|
padding-top: 30px;
|
|
}
|
|
}
|
|
@media only screen and (min-width: 1200px) {
|
|
.cartContent .yard .total_price {
|
|
padding-top: 10px;
|
|
}
|
|
}
|
|
*/
|
|
|
|
select.form-control:not([size]):not([multiple]) {
|
|
height: 38px;
|
|
color: #6f6f6f;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.yard-items-head {
|
|
border-bottom: 1px solid #ddd;
|
|
padding-bottom: 8px;
|
|
margin-bottom: 8px;
|
|
}
|
|
.yard-item {
|
|
position: relative;
|
|
border-bottom: 1px solid #ddd;
|
|
padding-bottom: 8px;
|
|
|
|
}
|
|
.yard-item a.shop-item-hl {
|
|
color: #9aa983;
|
|
font-size: 1.1em;
|
|
font-weight: bold;
|
|
}
|
|
.yard-item .options {
|
|
margin-top: 4px;
|
|
}
|
|
.yard-item a.auto-delete-product {
|
|
font-size: 0.7em;
|
|
font-weight: bold;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.yard-item .quantity {
|
|
position: relative;
|
|
}
|
|
.quantity-select {
|
|
text-align: right;
|
|
}
|
|
.quantity-select select.form-control:not([size]):not([multiple]) {
|
|
width: auto;
|
|
min-width: 5em;
|
|
display: inline-block;
|
|
}
|
|
.yard-item .price-total {
|
|
margin-top: 6px;
|
|
white-space: nowrap;
|
|
|
|
}
|
|
.yard-item .font-semi-bold {
|
|
color: #393939;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.yard-item .font-semi-bold .small {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.yard-item .font-bold {
|
|
color:#393939;
|
|
font-weight: bold;
|
|
}
|
|
.price-single {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.btn-default {
|
|
border: none;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
|
|
|
|
</style>
|
|
<!-- -->
|
|
<section>
|
|
<div class="container">
|
|
|
|
<h1 class="mb-0">{{ __('weborder.shopping_cart') }}</h1>
|
|
|
|
<!-- CART -->
|
|
<div class="row">
|
|
|
|
<!-- LEFT -->
|
|
<div class="col-lg-9 col-md-8 col-sm-12">
|
|
|
|
<h4 class="weight-400"> {!! __('order.you_has_article_in_shopping_cart', ['num'=> Yard::instance('shopping')->count() ]) !!}</h4>
|
|
@if(Yard::instance('shopping')->getShippingFree())
|
|
<div class="alert alert-success py-2">{!! __('weborder.free_shipping_at', ['value'=>formatNumber(Yard::instance('shopping')->getShippingFree())]) !!}
|
|
@if(Yard::instance('shopping')->getShippingFreeMissingValue() > 0)
|
|
<br>{!! __('weborder.only_missing_free_shipping_at', ['value'=>formatNumber(Yard::instance('shopping')->getShippingFreeMissingValue())]) !!}
|
|
@else
|
|
<br><i class="fa fa-check"></i> {{ __('weborder.free_shipping') }}
|
|
@endif
|
|
</div>
|
|
@endif
|
|
|
|
|
|
@if(Yard::instance('shopping')->content()->count())
|
|
<!-- CART -->
|
|
{!! Form::open(['url' => url(Util::getPostRoute().'card/update'), 'class' => 'cartContent clearfix', 'id'=>'']) !!}
|
|
<!-- cart content -->
|
|
<div id="cartContent">
|
|
<div class="yard-items-head">
|
|
<div class="row hidden-sm-down">
|
|
<div class="col-xs-3 col-sm-2">
|
|
</div>
|
|
<div class="col-xs-9 col-sm-10">
|
|
<div class="row">
|
|
<div class="col-sm-6 col-md-7">
|
|
{{ __('order.article') }}
|
|
</div>
|
|
<div class="col-sm-3 col-md-2 text-left">
|
|
{{ __('order.unit_price') }}
|
|
</div>
|
|
<div class="ol-sm-3 col-md-3 text-right">
|
|
{{ __('order.quantity') }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
@foreach(Yard::instance('shopping')->content() as $row)
|
|
@php($product = \App\Models\Product::find($row->id))
|
|
|
|
<div class="row yard-item">
|
|
|
|
<div class="col-xs-3 col-sm-2">
|
|
<a href="{{ url('/produkte/alle-produkte/'.$row->options->slug) }}" title="" class="image">
|
|
@if($row->options->has('image'))
|
|
<img src="{{ route('product_image', [$row->options->image]) }}" class="img-responsive" alt="">
|
|
@else
|
|
<img src="{{ asset('/assets/images/1x1.png') }}" width="80" alt="">
|
|
@endif
|
|
</a>
|
|
</div>
|
|
|
|
<div class="col-xs-9 col-sm-10">
|
|
<div class="row">
|
|
<div class="col-xs-12 col-sm-6 col-md-7 description">
|
|
<a href="{{ url('/produkte/alle-produkte/'.$row->options->slug) }}" class="shop-item-hl"><span>{{ $row->name }}</span></a>
|
|
<div style="font-size: 13px; color:#1d1d1d; font-weight: 500;">{{ __('order.content') }}: {{ $product->contents }}</div>
|
|
<div style="font-size: 13px; color:#1d1d1d; font-weight: 500;">{{ __('order.art_no') }}: {{ $product->number }}</div>
|
|
<div style="font-size: 13px; color:#6e6e6e; font-weight: 400;"><em>{{ __('weborder.delivery_time_1_3') }}</em></div>
|
|
<div class="options">
|
|
<a class="auto-delete-product" href="{{ url(Util::getPostRoute().'card/remove', $row->rowId) }}"><i class="fa fa-times"></i> {{ __('order.article_remove') }}</a>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-xs-6 col-sm-3 col-md-2 text-left font-semi-bold price-single">
|
|
<div style="">{{ $row->price() }} €</div>
|
|
@if(Yard::instance('shopping')->isPriceCurrency())
|
|
<span class="small">~{{ Yard::instance('shopping')->getCurrencyByKey('price', $row, 2) }} {{ Yard::instance('shopping')->getPriceCurrencyUnit() }} </span>
|
|
@endif
|
|
<div class="small">{{ $product->getBasePriceFormattedFullWith(Yard::instance('shopping')->getUserTaxFree(), false, Yard::instance('shopping')->getUserCountry()) }}</div>
|
|
<div class="small">
|
|
@if(Yard::instance('shopping')->getUserTaxFree())
|
|
* {{ __('order.net_price') }}
|
|
@else
|
|
* {{ __('weborder.incl') }} {{ number_format($row->taxRate, 0)}}% {{ __('weborder.VAT') }}
|
|
@endif
|
|
@if(Yard::instance('shopping')->getShippingFree() && $row->options->no_free_shipping)
|
|
<br>**{{ __('weborder.not_free_shipping') }}
|
|
@endif
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-xs-6 col-sm-3 col-md-3 quantity">
|
|
<div class="quantity-select">
|
|
<select class="form-control" name="quantity[{{$row->rowId}}]" onchange="this.form.submit()">
|
|
{!! HTMLHelper::getOptionRange($row->qty, 1, 50) !!}
|
|
</select>
|
|
</div>
|
|
<div class="price-total text-right">
|
|
<span class="font-bold text-price-total">{{ $row->subtotal() }}</span> €
|
|
@if(Yard::instance('shopping')->isPriceCurrency())
|
|
<br>
|
|
<span class="small">~{{ Yard::instance('shopping')->getCurrencyByKey('subtotal', $row, 2) }} {{ Yard::instance('shopping')->getPriceCurrencyUnit() }} </span>
|
|
@endif
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endforeach
|
|
<a href="{{url(Util::getPostRoute().'card/delete')}}" class="btn btn-default btn-xs pull-left"><i class="glyphicon glyphicon-remove"></i> {{ __('order.shopping_cart_delete') }}</a>
|
|
<button type="submit" class="btn btn-xs btn-default pull-right "><i class="glyphicon glyphicon-refresh"></i> {{ __('order.shopping_cart_update') }}</button>
|
|
<div class="clearfix"></div>
|
|
</div>
|
|
{!! Form::close() !!}
|
|
<!-- /CART -->
|
|
@endif
|
|
|
|
</div>
|
|
|
|
<!-- RIGHT -->
|
|
<div class="col-sm-8 col-sm-offset-4 col-md-4 col-md-offset-0 col-lg-3 col-lg-offset-0">
|
|
|
|
@if(Yard::instance('shopping')->content()->count())
|
|
<h3>{{ __('order.shopping_cart') }}</h3>
|
|
|
|
|
|
<div class="toggle-transparent toggle-bordered-full clearfix">
|
|
<div class="toggle active cart-content">
|
|
<div class="toggle-content">
|
|
|
|
<div class="clearfix mb-2">
|
|
<span class="pull-right">{{ Yard::instance('shopping')->total() }} €</span>
|
|
<strong class="pull-left">{{ __('order.subtotal') }}:</strong>
|
|
</div>
|
|
<hr class="mt-4 mb-4">
|
|
|
|
<div class="clearfix mb-2">
|
|
<span class="pull-right small"> {{ Yard::instance('shopping')->getShippingCountryName() }}</span>
|
|
<span class="pull-left small">{{ __('Delivery country') }}:</span>
|
|
</div>
|
|
|
|
{{-- <div class="clearfix mb-2">
|
|
<div class=" small">{{ __('Delivery country') }}:</div>
|
|
<div class="small">
|
|
<form action="{{ url(Util::getPostRoute().'card/show') }}" method="GET" style="margin-bottom: 0;">
|
|
<select name="selected_country" class="form-control" onchange="this.form.submit()">
|
|
{!! HTMLHelper::getCountriesForShipping(Yard::instance('shopping')->getShippingCountryId(), false) !!}
|
|
</select>
|
|
</form>
|
|
</div>
|
|
</div>--}}
|
|
|
|
<div class="clearfix mb-2">
|
|
<span class="pull-right small">{{ Yard::instance('shopping')->shipping() }} € </span>
|
|
<span class="pull-left small"><a href="{{ url('/versandkosten') }}" style="color:#666666;text-decoration: underline">{{ __('order.shipping_costs') }}</a>:</span>
|
|
</div>
|
|
<hr class="mt-4 mb-4">
|
|
@if(Yard::instance('shopping')->getUserTaxFree())
|
|
<div class="clearfix mb-2" style="font-size: 90%">
|
|
<span class="pull-right small">{{ Yard::instance('shopping')->subtotalWithShipping() }} €</span>
|
|
<span class="pull-left small">{{ __('order.sum_net') }}:</span>
|
|
</div>
|
|
@else
|
|
<div class="clearfix mb-2" style="font-size: 90%">
|
|
<span class="pull-right small">{{ Yard::instance('shopping')->subtotalWithShipping() }} €</span>
|
|
<span class="pull-left small">{{ __('order.total_without_VAT') }}:</span>
|
|
</div>
|
|
<div class="clearfix mb-2" style="font-size: 90%">
|
|
<span class="pull-right small">{{ Yard::instance('shopping')->taxWithShipping() }} €</span>
|
|
<span class="pull-left small">{{ __('order.plus_VAT') }}</span>
|
|
</div>
|
|
@endif
|
|
<hr />
|
|
<span class="clearfix ">
|
|
<span class="pull-right size-20"><strong>{{ Yard::instance('shopping')->totalWithShipping() }} €</strong></span>
|
|
<strong class="pull-left">{{ __('order.total_sum') }}:</strong>
|
|
</span>
|
|
<a href="{{ url(Util::getPostRoute().'card/checkout/server') }}" class="btn btn-primary btn-lg btn-block mt-4 btn-text-500 faa-parent animated-hover"><i class="fa fa-mail-forward faa-horizontal"></i> {{ __('weborder.to_checkout') }}</a>
|
|
<hr>
|
|
<p class="text-center" style="line-height: 1.2em;"><em class="small text-center"> <i class="fa fa-lock"></i> {{ __('payment.checkout_ssl_server') }}.</em></p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endif
|
|
|
|
</div>
|
|
</div>
|
|
<br><br>
|
|
<hr>
|
|
<p><em class="small" style="color: #828282">
|
|
{!! __('weborder.all_price_plus_VAT_info', ['link'=>'<a href="'.url('/versandkosten').'" style="text-decoration: underline">'.__('weborder.plus_shipping_cost').'</a>']) !!}
|
|
</em></p>
|
|
<!-- /CART -->
|
|
</div>
|
|
</section>
|
|
|
|
@endsection |