@extends('layouts.front.app') @section('og') @endsection @section('content') @php $menu_banner = [ ['link' => route('front.category.slug', ['romantico', 15]), 'banner' => 'banner/112.jpg'], ['link' => route('front.category.slug', ['aniversario', 19]), 'banner' => 'banner/113.jpg'], ['link' => route('front.category.slug', ['maternidade', 3]), 'banner' => 'banner/114.jpg'], ['link' => route('front.category.slug', ['presentes', 14]), 'banner' => 'banner/116.jpg'], ['link' => route('front.category.slug', ['decoracao', 20]), 'banner' => 'banner/117.jpg'], ]; @endphp @include(config('site.domain').'.layouts.front.menu-superior') @include(config('site.domain').'.layouts.front.menu-banner')
@if($cartItems->count() > 0) @foreach($cartItems as $cartItem) @php $product = \App\Shop\Products\Product::find($cartItem->product->id); @endphp @endforeach
PRODUTO
PREÇO
QUANTIDADE
SUBTOTAL
@if($cartItem->cover) @php $linkCart = config('site.url')."storage/".$product->cover; @endphp {{ $cartItem->name }} @else {{ $cartItem->name }} @endif
{{ $cartItem->name }}
@if ($cartItem->product->sale_price && ($cartItem->sale_price_ini < date("Y-m-d")) && ($cartItem->sale_price_fim >= date("Y-m-d"))) {{ config('cart.currency_symbol') }} {{ number_format($cartItem->product->price, 2, ',', '.') }} {{config('cart.currency_symbol')}} {{ number_format($cartItem->product->sale_price, 2, ',', '.') }} @else {{config('cart.currency_symbol')}} {{ number_format($cartItem->product->price, 2, ',', '.') }} @endif
{{ csrf_field() }}
{{ config('cart.currency_symbol') }} {{ number_format(($cartItem->price * $cartItem->qty), 2, ',', '.') }}
{{ csrf_field() }}
Total: {{ config('cart.currency_symbol') }} {{ number_format($cartTotal, 2, ',', '.') }}
@if (auth()->check()) @else FINALIZAR COMPRA @endif
@else

Seu carrinho está vazio

Para continuar comprando, navegue pelas categorias do site ou faça uma busca pelo seu produto.

Escolher produtos
@endif
@endsection @section('js') @endsection