Relátorio de Lucro Detalhado
@if($data_inicial)
Data: {{$data_inicial}}
@endif
HORÁRIO
LOCAL
CLIENTE
VALOR VENDA/COMPRA
LUCRO
%LUCRO
@foreach($lucros as $key => $v)
{{$v['horario']}}
{{$v['local']}}
{{$v['cliente']}}
{{number_format($v['valor_venda'], 2)}} / {{number_format($v['valor_compra'], 2)}}
{{number_format($v['lucro'], 2)}}
{{$v['lucro_percentual']}}
@endforeach
Total lucro:
R$ {{number_format($somaLucro, 2)}}
% Médio:
{{number_format(($somaPerc/sizeof($lucros)), 2)}}