@extends('layouts.front.app') @section('og') @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/categories/'; 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); $resumo = $getPontos->getPointsResume(auth()->user()->cpf_cnpj); $somaTotal = intval($resumo->saldo) + intval($pontosUsados->resgate) + intval($pontosVencidos); } @endphp
@include(config('site.domain').'.front.rewards.navbar') @if (!is_null($getRewards) && $getRewards->cliente_ponto_ativo && $getRewards->cliente_ponto_dh_ativo < Carbon::now())
@if(config('site.resgate_aberto'))

{{ number_format($resumo->saldo, 0, "", ".") }}

@endif

Pontos VĂ¡lidos

@if(config('site.resgate_aberto'))

{{ number_format($pontosUsados->resgate, 0, "", ".")}}

@endif

Pontos Utilizados

@if(config('site.resgate_aberto'))

{{ number_format($pontosVencidos, 0, "", ".") }}

@endif

Pontos Expirados

@if(config('site.resgate_aberto'))

{{ number_format($somaTotal, 0, "", ".") }}

@endif

Total de pontos

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