@extends('web.include.master') @section('content')

@lang('arsh.cart_txt1') @if(count($cartItems) > 0) @php $protype = $cartItems->first(); @endphp ({{ $protype->attributes->product_type }}) @endif

@if($lg=='en') @lang('arsh.cart_txt2') @else @lang('arsh.cart_txt2') @endif
@if(count($cartItems) > 0) {{-- {{ dd($cartItems) }} --}} @php $BasePrice = 0; $vatprice = 0; @endphp @foreach ($cartItems as $item) @endforeach
@lang('arsh.cart_txt3') @lang('arsh.cart_txt4') @lang('arsh.cart_txt5') @lang('arsh.cart_txt6') @lang('arsh.cart_txt7') @lang('arsh.cart_txt8')
@if($item->attributes->image) @if(!empty(Auth::guard('customer')->user()) && Auth::guard('customer')->user()->is_business==2 && $lg=='en') @else {{ $item->name }} @endif @endif
{{ $item->quantity }}
{{ $item->name }} @if($item->attributes->weight)
Gewicht: {{ $item->attributes->weight }}
@endif
@php $BasePrice+=$item->price*$item->quantity; if($item->attributes->vat_rate) { $vatprice = round($item->price*$item->attributes->vat_rate/100,2); $vatprice = $vatprice*$item->quantity; } @endphp
{{ number_format((float)$item->price, 2, '.', '') }} {{ config('app.symbol')}}
@if($item->attributes->vat_rate) {{ $item->attributes->vat_rate }}% @else 0% @endif {{ number_format((float)$item->getPriceWithConditions(), 2, '.', '') }} {{ config('app.symbol')}} {{ number_format((float)$item->getPriceSumWithConditions(), 2, '.', '') }} {{ config('app.symbol')}}
@else @endif
@if(count($cartItems) > 0)
@csrf

@foreach($couponName as $items) Gutscheinname: {{ $items->getName() }} Entfernen

Totaler Rabatt: {{ $items->getValue() }}

@endforeach

@if(!empty(Auth::guard('customer')->user()) && Auth::guard('customer')->user()->is_business==2 && $lg=='en') @else @endif
@lang('arsh.cart_txt12') @lang('arsh.cart_txt6') @lang('arsh.cart_txt13')
@lang('arsh.cart_txt14') {{ config('app.symbol')}} {{ number_format((float)$BasePrice, 2, '.', '') }} @if($vatprice){{ config('app.symbol')}} {{ $vatprice }} @endif {{ config('app.symbol')}} {{ number_format((float)\Cart::getSubTotal(), 2, '.', '') }}
@lang('arsh.cart_txt15') {{ config('app.symbol')}} {{ number_format((float)$BasePrice, 2, '.', '') }} @if($vatprice){{ config('app.symbol')}} {{ $vatprice }} @endif {{ config('app.symbol')}} {{ number_format((float)\Cart::getTotal(), 2, '.', '') }}
@lang('arsh.cart_txt16')
@endif
@endsection