@csrf
editar item
@if ($errors->has('description')) {{ $errors->first('description') }} @endif
@if ($errors->has('category_id')) {{ $errors->first('category_id') }} @endif
@if ($errors->has('unity_measure')) {{ $errors->first('unity_measure') }} @endif
@if ($errors->has('cod_interno')) {{ $errors->first('cod_interno') }} @endif
@if ($errors->has('cod_barras')) {{ $errors->first('cod_barras') }} @endif
@switch($agency_item_edit->type_id) @case($types->where('name', 'imagem')->first()->id)
@break @case($types->where('name', 'texto')->first()->id)
@if ($errors->has('text')) {{ $errors->first('text') }} @endif
@break @case($types->where('name', 'video')->first()->id)
@break @case($types->where('name', 'página web')->first()->id)
@if ($errors->has('page')) {{ $errors->first('page') }} @endif
@break @case($types->where('name', 'produto')->first()->id)
@if ($errors->has('price')) {{ $errors->first('price') }} @endif
@break @case($types->where('name', 'video web')->first()->id)
@if ($errors->has('video')) {{ $errors->first('video') }} @endif
@break @endswitch