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

{{isset($produto) ? 'Editar' : 'Novo'}} Produto

@csrf

O produto de delivery depende do produto principal, isso é necessário para baixa de estoque


@if($errors->has('produto'))
{{ $errors->first('produto') }}
@endif
@if($errors->has('categoria'))
{{ $errors->first('categoria') }}
@endif
@if($errors->has('valor'))
{{ $errors->first('valor') }}
@endif
@if($errors->has('valor_anterior'))
{{ $errors->first('valor_anterior') }}
@endif
@if($errors->has('referencia'))
{{ $errors->first('referencia') }}
@endif
@foreach($tamanhos as $key => $t)
@if(isset($produto) && count($produto->pizza) > 0) @foreach($produto->pizza as $pp) @if($pp->tamanho_id == $t->id) @else @if(!$pp->tamanhoNaoCadastrado($t->id, $pp->produto) && !in_array($t->id, $controleEdit)) @endif @endif @endforeach @else @endif @if($errors->has('valor_'.$t->nome))
{{ $errors->first('valor_'.$t->nome) }}
@endif
@endforeach
@if($errors->has('limite_diario'))
{{ $errors->first('limite_diario') }}
@endif -1 = sem limite
@if($errors->has('descricao'))
{{ $errors->first('descricao') }}
@endif
galeria[0]->path)) style="background-image: url({{$produto->img}})" @else style="background-image: url(/imgs/no_image.png)" @endif>
.png, .jpg, .jpeg @if($errors->has('file'))
{{ $errors->first('file') }}
@endif

@endsection