@extends('relatorios.default') @section('content') @php $soma = 0; $inc = 0; @endphp @foreach($vendas as $key => $v) @foreach($v['itens'] as $i) @endforeach @endforeach
# Total
{{$i->quantidade}} x {{$i->produto->nome}} {{$i->produto->str_grade}} {{$i->produto->unidade_venda}} x {{number_format($i->valor, 2, ',', '.')}} = R$ {{number_format(($i->quantidade * $i->valor), 2, ',', '.')}}
{{$v['data']}} {{number_format($v['total'], 2, ',', '.')}}
Total de vendas {{$inc}} Valor total R$ {{number_format($soma, 2, ',', '.')}}
@endsection