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