@extends('relatorios.default') @section('content') @isset($marca)
Total de registros {{ sizeof($data) }}
| # | Produto | Vl. venda | Vl. compra | Dt. cadastro | @if(__countLocalAtivo() > 1)Disponibilidade | @endifEstoque | @if($tipo == 1 || $tipo == -1)Qtd. vendida | @endif @if($tipo == 2 || $tipo == -2)Qtd. comprada | @endif
|---|---|---|---|---|---|---|---|---|
| {{ $key2 + 1 }} | {{ $item->nome }} {{ $v->descricao }} | {{ __moeda($item->valor) }} | {{ __moeda($item->valor_compra) }} | {{ __data_pt($item->created_at) }} | @if(__countLocalAtivo() > 1)@foreach($item->locais as $l) @if($l->localizacao) {{ $l->localizacao->descricao }} @if(!$loop->last) | @endif @endif @endforeach | @foreach($item->estoqueLocais as $e) @if($e->local && $v->id == $e->produto_variacao_id) {{ $e->local->descricao }}: @if($item->unidade == 'UN' || $item->unidade == 'UNID') {{ number_format($e->quantidade_vendida, 0) }} @else {{ number_format($e->quantidade_vendida, 3) }} @endif @endif @endforeach | @else{{ $item->estoque ? number_format($item->estoque->quantidade, 2) : '0' }} - {{ $item->unidade }} | @endif|
| {{ $key + 1 }} | {{ $item->nome }} | {{ __moeda($item->valor_unitario) }} | {{ __moeda($item->valor_compra) }} | {{ __data_pt($item->created_at) }} | @if(__countLocalAtivo() > 1)@foreach($item->locais as $l) @if($l->localizacao) {{ $l->localizacao->descricao }} @if(!$loop->last) | @endif @endif @endforeach | @foreach($item->estoqueLocais as $e) @if($e->local) {{ $e->local->descricao }}: @if($item->unidade == 'UN' || $item->unidade == 'UNID') {{ number_format($e->quantidade, 0) }} @else {{ number_format($e->quantidade, 3) }} @endif @endif @if(!$loop->last) | @endif @endforeach | @else{{ $item->estoque ? number_format($item->estoque->quantidade, 2) : '0' }} - {{ $item->unidade }} | @endif @if($tipo != ''){{ $item->quantidade_vendida }} | @endif