@extends('adminlte::page') @section('title', 'Produtos') @section('content_header')

Produtos

@stop @section('content')
[+] Novo [<>] Atualizar
@if ($message = Session::get('success'))

{{ $message }}

@endif

Produtos Cadastrados

@foreach ($produtos as $key => $value) @foreach($generos as $genero) @if($genero->id == $value->genero_id) @endif @endforeach @endforeach
# Nome do Produto Código do Produto Gênero Valor Ativo Action
{{ $value->id }} {!! $value->nome_produto !!} {{ $value->codigo_produto }}{{ $genero->descricao }}{{ number_format($value->valor,2,',','.') }} {{ ($value->ativo == 'S') ? "SIM" : "NÃO"; }}
@csrf @method('DELETE') @php if($value->ativo == 'S') { $ic_active = ''; $active_acao = 'N'; } else { $ic_active = ''; $active_acao = 'S'; } @endphp {!! $ic_active !!}
@endsection