@extends('relatorios.default') @section('content') @if($data_inicial && $data_final)
Periodo: {{$data_inicial}} - {{$data_final}}
@endif| Código | Descrição | Vl. custo | Vl. venda | Quantidade | Total custo/venda | |
|---|---|---|---|---|---|---|
| {{$i['id']}} | {{$i['nome']}} @if($i['grade']) {{$i['str_grade']}} @endif | {{number_format($i['valor_compra'], 2, ',', '.')}} | {{number_format($i['valor_venda'], 2, ',', '.')}} | @if($i['unidade'] == 'UN'){{number_format($i['total'])}} {{$i['unidade']}} | @else{{number_format($i['total'], 2)}} {{$i['unidade']}} | @endif{{number_format($i['valor_compra']*$i['total'], 2, ',', '.')}}/{{number_format($i['valor_venda']*$i['total'], 2, ',', '.')}} |
| Soma custo | R$ {{number_format($somaCusto, 2, ',', '.')}} | Soma venda | R$ {{number_format($somaVenda, 2, ',', '.')}} | Soma itens | {{ $somaItens }} |
|---|