@extends('layouts.front.app') @section('og') @endsection @section('css') @endsection @section('content') @php use Illuminate\Support\Str; use Carbon\Carbon; $acessoLiberado = explode("|",config('site.login.integra_ls.acesso_liberado')); $getRewards = $getClientData->getRewardsInformation(); $base_img = config('site.url').'storage/products/'; if(!is_null($getRewards)) { $pontos = $getPontos->getPontosByCliente(auth()->user()->cpf_cnpj); $pontosUsados = $getPontos->getPontosUtilizados(auth()->user()->cpf_cnpj); $pontosAcumulados = $getPontos->getPontosAcumulados(auth()->user()->cpf_cnpj); $pontosVencidos = $getPontos->getPontosVencidos(auth()->user()->cpf_cnpj); $imagesProd = $imageItem->getImages($product->sku); $resumo = $getPontos->getPointsResume(auth()->user()->cpf_cnpj); } @endphp
@include(config('site.domain').'.front.rewards.navbar') @if (!is_null($getRewards) && $getRewards->cliente_ponto_ativo && $getRewards->cliente_ponto_dh_ativo < Carbon::now())

@if (intval($resumo->saldo) > intval($product->pontos)) {!! number_format($product->pontos, 0, ",", ".") !!} @else {!! number_format($product->pontos, 0, ",", ".") !!} @endif {{-- (Seus pontos: {!! number_format($resumo->saldo, 0, "", ".") !!}) --}}

{!! $product->name !!}

{!! $product->description !!}

@if (intval($resumo->saldo) > intval($product->pontos))
{{ csrf_field() }}
@else @endif

@else @include(config('site.domain').'.front.rewards.info', compact('getRewards')) @endif
@endsection