@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); } @endphp
@include(config('site.domain').'.front.rewards.navbar') @if (!is_null($getRewards) && $getRewards->cliente_ponto_ativo && $getRewards->cliente_ponto_dh_ativo < Carbon::now())
@foreach ($categories as $key => $category) @endforeach
@else @include(config('site.domain').'.front.rewards.info', compact('getRewards')) @endif
@endsection @section('js') @endsection