@extends('layouts.front.app') @section('css') @if (config('clearsale.fingerprint')) @endif @endsection @section('content') @if(config('site.domain') === 'operagarden') @include(config('site.domain').'.layouts.front.menu-banner') @endif
@php use Illuminate\Support\Str; $formaPagamento = explode(",", config('payees.name')); $order_id = ''; $order = null; $valFrete = ($valorFrete) ?? 0.00; $valTotal = ($total) ?? 0; $desconto = request()->desconto ?? 0.00; $subtotal = floatVal(request()->subTotal); if(request()->order_id) { $order_id = request()->order_id; } if (isset($pedido)) { // $valFrete = floatval($pedido->total_shipping); $valTotal = floatval($pedido->total); } if (session()->has('delivery')) { $valFrete = session('delivery')["w_pedido_vl_frete"]; $valTotal = floatval($valFrete) + floatval($cartTotal); } $valTotal = floatVal(request()->subTotal) - floatVal($desconto) + $valFrete; $total = $valTotal; $valorTotal = $valTotal; @endphp
@foreach ($formaPagamento as $key => $pagamento) @if(Str::contains($pagamento, 'cielo') || Str::contains($pagamento, 'erede') || Str::contains($pagamento, 'getnet'))
@include('layouts.front.payments.form-payment', ['order_id' => $order_id])
@endif @if(Str::contains($pagamento, 'transferencia'))
@include('layouts.front.payments.bank-transfer', ['order_id' => $order_id, 'valorFrete' => $valorFrete, 'valorTotal' => $valorTotal, 'order' => ''])
@endif @if(Str::contains($pagamento, 'pagseguro'))
@if ($total) @endif @include('layouts.front.payments.pagseguro-old', ['order_id' => $order_id]) {{-- @include('layouts.front.payments.form-payment', ['order_id' => $order_id, 'valFrete' => $valFrete, 'valorTotal' => ($valorTotal) ?? 0]) --}}
@endif @endforeach

Resumo

    @if ($getCartItems && $getCartItems->count() > 0)
  • Itens

    @foreach($getCartItems as $product)
    {{ $product->name }} @if (!$order && $product->options->combination) ({{ $product->options->combination[0]['value'] }}) @endif
    @if(isset($product->pivot)) {{ $product->pivot->quantity }} x @else @if(isset($product->qty)) {{ $product->qty }} x @endif @endif
    {{ config('cart.currency_symbol') }} {{ number_format($product->price, 2, ',', '.') }}
    @endforeach

  • Descontos @if (config('cart.desconto_dinheiro') || config('cart.desconto_avista')) (à vista) @endif
    {{ config('cart.currency_symbol') }} {{ number_format($desconto, 2, ',','.') }}
    @if ($desconto > 0)
    Valor com desconto
    @php $valorDescontado = floatVal($subtotal) - $desconto; @endphp {{ config('cart.currency_symbol') }} {{ number_format($valorDescontado, 2, ',','.') }}
    @endif @if (!isset($order_paid) || $order_paid > 1) @endif
  • Frete
    {{ config('cart.currency_symbol') }} {{ number_format(floatval($valFrete), 2, ",", ".") }}
  • Total
    {{ config('cart.currency_symbol') }} {{ number_format($valTotal, 2, ",", ".") }}
  • @endif @if (isset($pedido))
  • Produtos no pedido

    @foreach($pedido->products as $product)
    {{ $product->name }} @if ($product->attributes->count() > 0) @endif
    @if(isset($product->pivot)) {{ $product->pivot->quantity }} x @else @if(isset($product->qty)) {{ $product->qty }} x @endif @endif
    {{ config('cart.currency_symbol') }} {{ number_format(floatval($product->price), 2, ',', '.') }}
    @endforeach
  • Frete
    {{ config('cart.currency_symbol') }} {{ number_format(floatval($pedido->total_shipping), 2, ",", ".") }}
  • Total
    {{ config('cart.currency_symbol') }} {{ number_format(floatval($pedido->total), 2, ",", ".") }}
  • @endif @if(session()->has('delivery')) @php $delivery = collect(session('delivery')); @endphp
  • @if (intval($delivery["w_pedido_entr_tipo"]) === 2)
    Dados da entrega
    @else
    Pedido a ser retirado
    @endif
      @php $periodo = ($delivery["w_pedido_id_entr_periodo"] === 1) ? 'pela manhã' : 'na parte da tarde'; $comp = ($delivery["w_pedido_entrega_complem"]) ? "(" . $delivery["w_pedido_entrega_complem"] .")" : ""; $endereco = $delivery["w_pedido_entrega_logr"] . ", " . $delivery["w_pedido_entrega_numero"] . $comp . " - " . $delivery["w_pedido_entrega_bairro"] . "
      "; $endereco .= "CEP: ". $delivery["w_pedido_entrega_cep"] . "-" . $delivery["w_pedido_entrega_munic"] ."/".$delivery["w_pedido_entrega_uf"] ; @endphp @if (intval($delivery["w_pedido_entr_tipo"]) === 2)
    • Entregar para: {{$delivery["w_pedido_entrega_nome"]}}
    • Entregar no dia: {{$delivery["w_pedido_data_saida"]}}
    • Período {{$periodo}}
    • Local da entrega: {!! $endereco !!}
    • Referência {{$delivery["w_pedido_entrega_prox"]}}
    • @else
    • Irei retirar no dia: {{$delivery["w_pedido_data_saida"]}}
    • Período {{$periodo}}
    • @endif
    @if ($delivery["w_pedido_cartao_tit"] !== '')
  • Cartão de presente

    • Título: {{$delivery["w_pedido_cartao_tit"]}}
    • Mensagem: {{$delivery["w_pedido_cartao_msg"]}}
    • Assinado: {{$delivery["w_pedido_cartao_ass"]}}
  • @endif
  • @if (config('site.checkout.novo')) @else
    {{ csrf_field() }}
    @endif
  • @endif
@endsection @section('js') @if (config('pagseguro.method')) @else @endif @endsection