Relátorio de Lucro Detalhado

@if($data_inicial)

Data: {{$data_inicial}}

@endif
@foreach($lucros as $key => $v) @endforeach
HORÁRIO LOCAL CLIENTE VALOR VENDA/COMPRA LUCRO %LUCRO
{{$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']}}

Total lucro: R$ {{number_format($somaLucro, 2)}}

% Médio: {{number_format(($somaPerc/sizeof($lucros)), 2)}}