@if(isset($formares))
Forma de Receb. de Resposta
@php $contaadmin = 0; @endphp @foreach($formares as $statu) @if ($statu->forma == "0") @php $contaadmin++; @endphp @endif @endforeach @if ( $contaadmin != 0) @endif @php $contaadmin = 0; @endphp @foreach($formares as $statu) @if ($statu->forma == "Email") @php $contaadmin++; @endphp @endif @endforeach @if ( $contaadmin != 0) @endif @php $contaadmin = 0; @endphp @foreach($formares as $statu) @if ($statu->forma == "SMS") @php $contaadmin++; @endphp @endif @endforeach @if ( $contaadmin != 0) @endif @php $contaadmin = 0; @endphp @foreach($formares as $statu) @if ($statu->forma == "Telefone") @php $contaadmin++; @endphp @endif @endforeach @if ( $contaadmin != 0) @endif
Forma de Recebimento Quantidade Porcentagem
AnĂ´nimo {{$contaadmin}} @php $status2 = $formares->count(); $total = $status2; $pctm = $contaadmin; $valor_descontado = ($pctm / $total ); $valor = $valor_descontado * 100; @endphp {{ number_format($valor, 2, ',', '.')}}%
E-mail {{$contaadmin}} @php $status2 = $formares->count(); $total = $status2; $pctm = $contaadmin; $valor_descontado = ($pctm / $total ); $valor = $valor_descontado * 100; @endphp {{ number_format($valor, 2, ',', '.')}}%
SMS {{$contaadmin}} @php $status2 = $formares->count(); $total = $status2; $pctm = $contaadmin; $valor_descontado = ($pctm / $total ); $valor = $valor_descontado * 100; @endphp {{ number_format($valor, 2, ',', '.')}}%
Telefone {{$contaadmin}} @php $status2 = $formares->count(); $total = $status2; $pctm = $contaadmin; $valor_descontado = ($pctm / $total ); $valor = $valor_descontado * 100; @endphp {{ number_format($valor, 2, ',', '.')}}%
Total: {{$formares->count()}}
@endif