{{__('texte.price_lists_arr.history.price_list_history')}}
@foreach($price_listHistory as $history)
@if($history->key == 'created_at' && !$history->old_value)
@elseif($history->key == 'deleted_at' && !$history->old_value)
@else
@endif
@endforeach
{{ __('texte.price_lists_arr.history.price_list_created')}} {{__('texte.price_lists_arr.history.by')}} {{$history->userResponsible()->name }} | {{__('texte.price_lists_arr.history.on')}} {{ date("d.m.Y",strtotime($history->created_at)) }} {{__('texte.price_lists_arr.history.at')}} {{ date("H:i",strtotime($history->created_at)) }}
|
{{ __('texte.price_lists_arr.history.price_list_deleted')}} {{ __('texte.price_lists_arr.history.by')}} {{ $history->userResponsible()->name }} | {{ __('texte.price_lists_arr.history.on')}} {{ date("d.m.Y",strtotime($history->created_at)) }} {{ __('texte.price_lists_arr.history.at')}} {{ date("H:i",strtotime($history->created_at)) }} |
{{ $history->userResponsible()->name }} {{__('texte.price_lists_arr.history.changed_field')}}
@switch($history->fieldName())
@case('active')
{{__('texte.price_lists_arr.history.active')}}
{{__('texte.price_lists_arr.history.from')}}
{{ $history->oldValue()==null ? '" "' : __('texte.replies_arr')[$history->oldValue()]}}
{{__('texte.price_lists_arr.history.to')}} {{ __('texte.replies_arr')[$history->newValue()] }}
@break
@case('validity')
{{__('texte.price_lists_arr.history.validity')}}
{{__('texte.price_lists_arr.history.from')}}
@if ($history->oldValue()!=null)
@foreach(explode(',',$history->oldValue()) as $index=>$item)
@switch($item)
@case('repr')
{{__('texte.price_lists_arr.history.repr')}}{{$indexoldValue()))-1 ? ',': ''}}
@break
@case('ext_repr')
{{__('texte.price_lists_arr.history.ext_repr')}}{{$indexoldValue()))-1 ? ',': ''}}
@break
@case('clients')
{{__('texte.price_lists_arr.history.clients')}}{{$indexoldValue()))-1 ? ',': ''}}
@break
@default
{{$storages[$item]->name ?? ''}}{{$indexoldValue()))-1 ? ',': ''}}
@break
@endswitch
@endforeach
@endif
{{__('texte.price_lists_arr.history.to')}}
@if ($history->newValue()!=null)
@foreach(explode(',',$history->newValue()) as $index=>$item)
@switch($item)
@case('repr')
{{__('texte.price_lists_arr.history.repr')}}{{$indexnewValue()))-1 ? ',': ''}}
@break
@case('ext_repr')
{{__('texte.price_lists_arr.history.ext_repr')}}{{$indexnewValue()))-1 ? ',': ''}}
@break
@case('clients')
{{__('texte.price_lists_arr.history.clients')}}{{$indexnewValue()))-1 ? ',': ''}}
@break
@default
{{$storages[$item]->name ?? ''}} {{$indexnewValue()))-1 ? ',': ''}}
@break
@endswitch
@endforeach
@endif
@break
@default
{{__('texte.price_lists_arr.history.'.$history->fieldName())}}
{{__('texte.price_lists_arr.history.from')}}
{{ $history->oldValue()==null ? '" "' : $history->oldValue()}}
{{__('texte.price_lists_arr.history.to')}} {{ $history->newValue() }}
@break
@endswitch
|
{{__('texte.price_lists_arr.history.on')}} {{ date("d.m.Y",strtotime($history->created_at)) }} {{__('texte.price_lists_arr.history.at')}} {{ date("H:i",strtotime($history->created_at)) }} |
{{__('texte.price_lists_arr.history.price_list_conditions_history')}}
@foreach($childrenHistory as $childHistory)
@foreach($childHistory as $history)
@if($history->key == 'created_at' && !$history->old_value)
@elseif($history->key == 'deleted_at' && !$history->old_value)
@else
@endif
@endforeach
@endforeach
{{ __('texte.price_lists_arr.history.price_list_condition_created')}} {{$history->revisionable_id}} {{ __('texte.price_lists_arr.history.is_created')}} {{__('texte.price_lists_arr.history.by')}} {{$history->userResponsible()->name }} | {{__('texte.price_lists_arr.history.on')}} {{ date("d.m.Y",strtotime($history->created_at)) }} {{__('texte.price_lists_arr.history.at')}} {{ date("H:i",strtotime($history->created_at)) }}
|
{{ __('texte.price_lists_arr.history.price_list_condition_deleted')}} {{ __('texte.price_lists_arr.history.by')}} {{ $history->userResponsible()->name }} | {{ __('texte.price_lists_arr.history.on')}} {{ date("d.m.Y",strtotime($history->created_at)) }} {{ __('texte.price_lists_arr.history.at')}} {{ date("H:i",strtotime($history->created_at)) }} |
{{ $history->userResponsible()->name ?? ''}} {{__('texte.price_lists_arr.history.changed_field')}}
@switch($history->fieldName())
@case('category')
{{__('texte.price_lists_arr.history.category')}}
{{__('texte.price_lists_arr.history.from')}}
{{ $history->oldValue()==0 ? '" "' : $categories[$history->oldValue()]->name}}
{{__('texte.price_lists_arr.history.to')}} {{$history->newValue()==0 ? '" "' : $categories[$history->newValue()]->name }}
@break
@case('producer')
{{__('texte.price_lists_arr.history.producer')}}
{{__('texte.price_lists_arr.history.from')}}
{{ $history->oldValue()==0 ? '" "' : $producers[$history->oldValue()]->name}}
{{__('texte.price_lists_arr.history.to')}} {{$history->newValue()==0 ? '" "' : $producers[$history->newValue()]->name }}
@break
@case('mark')
{{__('texte.price_lists_arr.history.mark')}}
{{__('texte.price_lists_arr.history.from')}}
{{ $history->oldValue()==0 ? '" "' : $marks[$history->oldValue()]->name}}
{{__('texte.price_lists_arr.history.to')}} {{$history->newValue()==0 ? '" "' : $marks[$history->newValue()]->name }}
@break
@case('package')
{{__('texte.price_lists_arr.history.package')}}
{{__('texte.price_lists_arr.history.from')}}
{{ $history->oldValue()==0 ? '" "' : $packages[$history->oldValue()]->name}}
{{__('texte.price_lists_arr.history.to')}} {{$history->newValue()==0 ? '" "' : $packages[$history->newValue()]->name }}
@break
@case('product')
{{__('texte.price_lists_arr.history.product')}}
{{__('texte.price_lists_arr.history.from')}}
{{ $history->oldValue()==0 ? '" "' : $products[$history->oldValue()]->name}}
{{__('texte.price_lists_arr.history.to')}} {{$history->newValue()==0 ? '" "' : $products[$history->newValue()]->name }}
@break
@case('material')
{{__('texte.price_lists_arr.history.material')}}
{{__('texte.price_lists_arr.history.from')}}
{{ $history->oldValue()==0 ? '" "' : $materials[$history->oldValue()]->name}}
{{__('texte.price_lists_arr.history.to')}} {{$history->newValue()==0 ? '" "' : $materials[$history->newValue()]->name }}
@break
@case('price')
{{__('texte.price_lists_arr.history.price')}}
{{__('texte.price_lists_arr.history.from')}}
{{ $history->oldValue()==0 ? '" "' : __('texte.full_price_arr')[$history->oldValue()]}}
{{__('texte.price_lists_arr.history.to')}} {{$history->newValue()==0 ? '" "' : __('texte.full_price_arr')[$history->newValue()] }}
@break
@default
{{__('texte.price_lists_arr.history.'.$history->fieldName())}}
{{__('texte.price_lists_arr.history.from')}}
{{ $history->oldValue()==null ? '" "' : $history->oldValue()}}
{{__('texte.price_lists_arr.history.to')}} {{ $history->newValue()==null ? '" "' : $history->newValue() }}
@break
@endswitch
|
{{__('texte.price_lists_arr.history.on')}} {{ date("d.m.Y",strtotime($history->created_at)) }} {{__('texte.price_lists_arr.history.at')}} {{ date("H:i",strtotime($history->created_at)) }} |