@foreach($zoneHistory as $history)
@if($history->key == 'created_at' && !$history->old_value)
@elseif($history->key == 'deleted_at' && !$history->old_value)
@else
@endif
@endforeach
{{ __('texte.zones_arr.history.zone_created')}} {{__('texte.zones_arr.history.by')}} {{$history->userResponsible()->name }} | {{__('texte.zones_arr.history.on')}} {{ date("d.m.Y",strtotime($history->created_at)) }} {{__('texte.zones_arr.history.at')}} {{ date("H:i",strtotime($history->created_at)) }}
|
{{ __('texte.zones_arr.history.zone_deleted')}} {{ __('texte.zones_arr.history.by')}} {{ $history->userResponsible()->name }} | {{ __('texte.zones_arr.history.on')}} {{ date("d.m.Y",strtotime($history->created_at)) }} {{ __('texte.zones_arr.history.at')}} {{ date("H:i",strtotime($history->created_at)) }} |
{{ $history->userResponsible()->name }} {{__('texte.zones_arr.history.changed_field')}}
@switch($history->fieldName())
@case('zone')
{{__('texte.zones_arr.history.zone')}}
{{__('texte.zones_arr.history.from')}}
{{ $history->oldValue()==null ? '" "' : $history->oldValue()}}
{{__('texte.zones_arr.history.to')}} {{ $history->newValue() }}
@break
@case('active')
{{__('texte.zones_arr.history.active')}}
{{__('texte.zones_arr.history.from')}}
{{ $history->oldValue()==null ? '" "' : __('texte.replies_arr')[$history->oldValue()]}}
{{__('texte.zones_arr.history.to')}} {{ __('texte.replies_arr')[$history->newValue()] }}
@break
@default
{{$history->fieldName()}}
{{__('texte.zones_arr.history.from')}}
{{ $history->oldValue()==null ? '" "' : $history->oldValue()}}
{{__('texte.zones_arr.history.to')}} {{ $history->newValue() }}
@break
@endswitch
|
{{__('texte.zones_arr.history.on')}} {{ date("d.m.Y",strtotime($history->created_at)) }} {{__('texte.zones_arr.history.at')}} {{ date("H:i",strtotime($history->created_at)) }} |