@extends('layouts.app') @section('content')
{{ __('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')}}{{$index |
{{__('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_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)) }} |