@extends('layouts.app') @section('content')

{{__('texte.products_arr.edit.edit_product')}}

{{ method_field('PATCH') }} {{ csrf_field() }}

{{__('texte.products_arr.edit.general_information')}}

@if ($errors->has('name')) {{ $errors->first('name') }} @endif
@if ($errors->has('category')) {{ $errors->first('category') }} @endif
@if ($errors->has('producer')) {{ $errors->first('producer') }} @endif
@if ($errors->has('code')) {{ $errors->first('code') }} @endif
@if ($errors->has('unit')) {{ $errors->first('unit') }} @endif
@if ($errors->has('input_measure')) {{ $errors->first('input_measure') }} @endif

{{__('texte.products_arr.edit.wrappage_data')}}

@if ($errors->has('is_wrappage')) {{ $errors->first('is_wrappage') }} @endif
@if ($errors->has('wrappage_piece')) {{ $errors->first('wrappage_piece') }} @endif
@if ($errors->has('wrappage_package')) {{ $errors->first('wrappage_package') }} @endif
@if ($errors->has('wrappage_pallet')) {{ $errors->first('wrappage_pallet') }} @endif

{{__('texte.products_arr.edit.weights_barcodes')}}

{{__('texte.products_arr.edit.count')}} {{__('texte.products_arr.edit.barcode')}} {{__('texte.products_arr.edit.surface')}}
{{__('texte.products_arr.edit.single_piece')}} 1
@if ($errors->has('piece_weight')) {{ $errors->first('piece_weight') }} @endif
@if ($errors->has('piece_barcode')) {{ $errors->first('piece_barcode') }} @endif
@if ($errors->has('piece_surface')) {{ $errors->first('piece_surface') }} @endif
@if ($errors->has('package')) {{ $errors->first('package') }} @endif
@if ($errors->has('package_count')) {{ $errors->first('package_count') }} @endif
@if ($errors->has('package_weight')) {{ $errors->first('package_weight') }} @endif
@if ($errors->has('package_barcode')) {{ $errors->first('package_barcode') }} @endif
@if ($errors->has('package_surface')) {{ $errors->first('package_surface') }} @endif
{{__('texte.products_arr.edit.pallet')}}
@if ($errors->has('pallet_count')) {{ $errors->first('pallet_count') }} @endif
@if ($errors->has('pallet_weight')) {{ $errors->first('pallet_weight') }} @endif

{{__('texte.products_arr.edit.prices_quantities')}}

{{__('texte.products_arr.edit.with_vat')}} {{__('texte.products_arr.edit.without_vat')}}
@if ($errors->has('price_supply')) {{ $errors->first('price_supply') }} @endif
@if ($errors->has('price_base')) {{ $errors->first('price_base') }} @endif
@if ($errors->has('price_recommend')) {{ $errors->first('price_recommend') }} @endif
@if ($errors->has('min')) {{ $errors->first('min') }} @endif
@if ($errors->has('max')) {{ $errors->first('max') }} @endif
@foreach ($storages as $storage)
@endforeach

{{__('texte.products_arr.create.product_description')}}

@if ($errors->has('description')) {{ $errors->first('description') }} @endif
@if ($errors->has('active')) {{ $errors->first('active') }} @endif
@if(count($product->images)>0) @foreach($product->images as $image) @endforeach @endif
here goes the image
@if ($errors->has('images.*')) {{ $errors->first('images.*') }} @endif
@endsection