@extends('layouts.app') @section('link')
@endsection @section('content')
@include('shared.messages')
{{__('texte.product_prices_arr.create.back')}}
{{__('texte.product_prices_arr.create.product_prices')}}
{{ csrf_field() }} @permission('product_price-form-date_from-read')
{{__('texte.product_prices_arr.create.date_from')}}
@if ($errors->has('date_from'))
{{ $errors->first('date_from') }}
@endif
@endpermission @permission('product_price-form-category-read')
{{__('texte.product_prices_arr.create.category')}}
@foreach($categories as $current_category)
{{$current_category->name}}
@if(count($current_category->children)>0) @foreach($current_category->children as $current_sub_category)
{{$current_category->name."\\ ".$current_sub_category->name}}
@if(count($current_sub_category->children)>0) @foreach($current_sub_category->children as $current_sub_sub_category)
{{$current_category->name."\\ ".$current_sub_category->name."\\ ".$current_sub_sub_category->name}}
@endforeach @endif @endforeach @endif @endforeach
@if ($errors->has('category'))
{{ $errors->first('category') }}
@endif
@endpermission @permission('product_price-form-producer-read')
{{__('texte.product_prices_arr.create.producer')}}
@foreach ($producers as $producer)
id ? 'selected' : ''}}>{{ $producer->name }}
@endforeach
@if ($errors->has('producer'))
{{ $errors->first('producer') }}
@endif
@endpermission @permission('product_price-form-mark-read')
{{__('texte.product_prices_arr.create.mark')}}
@if ($errors->has('mark'))
{{ $errors->first('mark') }}
@endif
@endpermission @permission('product_price-form-package-read')
{{__('texte.product_prices_arr.create.package')}}
@foreach ($packages as $package)
id ? 'selected' : ''}}>{{ $package->name }}
@endforeach
@if ($errors->has('package'))
{{ $errors->first('package') }}
@endif
@endpermission @permission('product_price-form-material-read')
{{__('texte.product_prices_arr.create.material')}}
@foreach ($materials as $material)
id ? 'selected' : ''}}>{{ $material->name }}
@endforeach
@if ($errors->has('material'))
{{ $errors->first('material') }}
@endif
@endpermission @permission('product_price-form-size-read')
{{__('texte.product_prices_arr.create.size')}}
@foreach ($sizes as $size)
id ? 'selected' : ''}}>{{ $size->value }} {{$size->unit==0 ? __('texte.product_prices_arr.create.l') : __('texte.product_prices_arr.create.kg')}}
@endforeach
@if ($errors->has('size'))
{{ $errors->first('size') }}
@endif
@endpermission @permission('product_price-form-product-read')
{{__('texte.product_prices_arr.create.product')}}
@foreach ($products as $product)
id ? "selected" : ""}}>{{ $product->name }}
@endforeach
@endpermission
{{__('texte.product_prices_arr.create.wrappage_applicable')}}
@permission('product_price-form-change_mode-read')
{{__('texte.product_prices_arr.create.change_mode')}}
{{__('texte.product_prices_arr.create.auto')}}
{{__('texte.product_prices_arr.create.hand')}}
@if ($errors->has('price_change_mode'))
{{ $errors->first('price_change_mode') }}
@endif
@endpermission
@permission('product_price-form-price-read')
{{__('texte.product_prices_arr.create.price_from')}}
--- {{__('texte.product_prices_arr.create.price')}} ---
@foreach(Lang::get('texte.table_price_arr') as $key=>$value)
{{$value}}
@endforeach
@if ($errors->has('price'))
{{ $errors->first('price_from') }}
@endif
@endpermission @permission('product_price-form-price-read')
{{__('texte.product_prices_arr.create.price_to')}}
--- {{__('texte.product_prices_arr.create.price')}} ---
@foreach(Lang::get('texte.table_price_arr') as $key=>$value)
{{$value}}
@endforeach
@if ($errors->has('price_to'))
{{ $errors->first('price_to') }}
@endif
@endpermission @permission('product_price-form-change_type-read')
{{__('texte.product_prices_arr.create.change_type')}}
{{__('texte.product_prices_arr.create.amount')}}
{{__('texte.product_prices_arr.create.percent')}}
@if ($errors->has('price_change_type'))
{{ $errors->first('price_change_type') }}
@endif
@endpermission @permission('product_price-form-price_change-read')
{{__('texte.product_prices_arr.create.price_change')}}
@if ($errors->has('price_change'))
{{ $errors->first('price_change') }}
@endif
@endpermission @permission('product_price-form-price_change_direction-read')
{{__('texte.product_prices_arr.create.change_direction')}}
{{__('texte.product_prices_arr.create.increase')}}
{{__('texte.product_prices_arr.create.decrease')}}
@if ($errors->has('price_change_direction'))
{{ $errors->first('price_change_direction') }}
@endif
@endpermission
@permission('product_price-form-price-read')
{{__('texte.product_prices_arr.create.price')}}
--- {{__('texte.product_prices_arr.create.price')}} ---
@foreach(Lang::get('texte.table_price_arr') as $key=>$value)
{{$value}}
@endforeach
@if ($errors->has('price'))
{{ $errors->first('price') }}
@endif
@endpermission
{{__('texte.product_prices_arr.create.show_changes')}}
@endsection