@php use App\Services\Configprodutos\Proposta\PropostaOrcamentoItensValidacaoService; use App\Services\ItensValidacaoService; use App\Models\Unico\Pessoas\Representante; use Illuminate\Support\Facades\Auth; $ativo = $categoria?->getAttribute('orcamentoItemCategoria')?->situacao ?? true; @endphp
@php $arrayVariacoes = $categoria->getAttribute('propostaOrcamentoItemCategoria') ? PropostaOrcamentoItensValidacaoService::montaoJson($categoria->getAttribute('propostaOrcamentoItemCategoria')) : $categoria->itensVariacao(); $count = 0; @endphp
@php $pessoaAuth = Auth::user()->pessoa; $representante = false; if($pessoaAuth){ $representante = (bool)Representante::find(Auth::user()->pessoa->id); } @endphp