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

{{{ isset($produto) ? "Editar": "Cadastrar" }}} Produto

@csrf
@if(!isset($produto))

*Atenção campo referência é obrigatório para cadastrar novo produto

@endif
@if(isset($prodBd) && $prodBd != null)
@else
@if($errors->has('referencia'))
{{ $errors->first('referencia') }}
@endif
@endif @if(isset($prodBd) && $prodBd != null) @else @endif
@if($errors->has('nome'))
{{ $errors->first('nome') }}
@endif
@if($errors->has('valor'))
{{ $errors->first('valor') }}
@endif
@if($errors->has('valor_promocional'))
{{ $errors->first('valor_promocional') }}
@endif
@if($errors->has('estoque'))
{{ $errors->first('estoque') }}
@endif
@if($errors->has('codigo_barras'))
{{ $errors->first('codigo_barras') }}
@endif
@if($errors->has('largura'))
{{ $errors->first('largura') }}
@endif
@if($errors->has('altura'))
{{ $errors->first('altura') }}
@endif
@if($errors->has('comprimento'))
{{ $errors->first('comprimento') }}
@endif
@if($errors->has('peso'))
{{ $errors->first('peso') }}
@endif
@if($errors->has('descricao'))
{{ $errors->first('descricao') }}
@endif
@section('javascript') @endsection @endsection