@extends('default.layout') @section('content')


Lista de Produtos

Tabela

Grade

@foreach($produtos as $p) inativo) style="background: #ffcdd2;" @endif> @if($p->grade) @else @endif @endforeach
NOME CATEGORIA VALOR DE VENDA VALOR DE COMPRA UN. COMPRA UN. VENDA GERENCIAR ESTOQUE TIPO GRADE ESTOQUE AÇÕES
{{$p->nome}} {{$p->categoria->nome}} {{$p->valoresGrade()}} {{number_format($p->valor_venda, 2, ',', '.')}} {{number_format($p->valor_compra, 2, ',', '.')}} {{$p->unidade_compra}} {{$p->unidade_venda}} @if($p->gerenciar_estoque) Sim @else Não @endif @if($p->grade) Sim @else Não @endif @if($p->estoque) @if($p->unidade_venda == 'UN' || $p->unidade_venda == 'UNID') {{number_format($p->estoque_atual)}} @else {{$p->estoque_atual}} @endif @else 0 @endif @if($p->composto) @endif @if($p->ecommerce) @endif @if($p->grade) @endif
@foreach($produtos as $p)
@if($p->imagem != '') image @else image @endif

{{$p->id}} - {{substr($p->nome, 0, 30)}}

Gerenciar estoque: @if($p->gerenciar_estoque) SIM @else NÃO @endif
Ecommerce: @if($p->ecommerce) SIM @else NÃO @endif
Delivery: @if($p->delivery) SIM @else NÃO @endif
Grade: @if($p->grade) SIM @else NÃO @endif
@php $est = 0; @endphp
@endforeach
@if(isset($links)) {{$produtos->links()}} @endif
@endsection