@extends('layouts.front.app') @section('og') @endsection @section('css') @endsection @section('content') @include(config('site.domain').'.front.shared.modal-product-details')
Produto |
Preço |
Quantidade |
SubTotal |
|
|---|---|---|---|---|
|
@if(isset($cartItem->cover))
@if(config('app.env') === 'production')
{{ $cartItem->name }}
@php
$description = str_ireplace([' |
{{ config('cart.currency_symbol') }} {{ number_format($cartItem->price, 2, ',', '.') }} |
{{-- |
{{ config('cart.currency_symbol') }} {{ number_format($cartItem->subtotal, 2, ',', '.') }} | |
| Continuar Comprando |
@php
$desconto = 0;
if(auth()->check()){
$cliente = \App\Shop\Customers\Customer::find(auth()->id());
if($cliente->orders->count() === 0) {
$desconto = (floatVal($cartTotal) / 100 * floatVal(config('cart.desconto_iniciante')));
}
}
$valorCarrinho = floatVal($cartTotal) - $desconto;
@endphp
Total {{ config('cart.currency_symbol') }} {{ number_format($valorCarrinho, 2, ',', '.') }} @if($desconto > 0) Desconto primeira compra: {{ config('cart.currency_symbol') }} {{ number_format($desconto, 2, ',', '.') }} ({{ config('cart.desconto_iniciante') }}%) @endif |
@if (auth()->check()) @else Finalizar @endif | ||
Você não possui itens em seu carrinho
Voltar à página inicial