Finalizadas
@php $soma = 0; @endphp
@foreach($atividadesConcluidas as $a)
{{ \Carbon\Carbon::parse($a->created_at)->format('H:i')}} - R$ {{number_format($a->total, 2, ',', '.')}}
@php $soma += $a->total; @endphp
@endforeach
Soma: {{number_format($soma, 2, ',', '.')}}
Pendentes
@php $soma = 0; @endphp
@foreach($atividadesPendentes as $a)
{{ \Carbon\Carbon::parse($a->created_at)->format('H:i')}} - R$ {{number_format($a->total, 2, ',', '.')}}
@php $soma += $a->total; @endphp
@endforeach
Soma: {{number_format($soma, 2, ',', '.')}}
@if($adm)
Somatório total: R$ {{number_format($somatorio, 2, ',', '.')}}
@foreach($somaEmGrupo as $s)
{{$s->forma_pagamento ?? 'Outros'}} - R$ {{number_format($s->total, 2, ',', '.')}}
@endforeach
@endif