@extends('layouts.app') @section('content')
@include('shared.messages')

{{__('texte.intangibles_arr.history.show_intangible_history')}}

@foreach($intangibleHistory as $history) @if($history->key == 'created_at' && !$history->old_value) @elseif($history->key == 'deleted_at' && !$history->old_value) @else @endif @endforeach
{{ __('texte.intangibles_arr.history.intangible_created')}} {{__('texte.intangibles_arr.history.by')}} {{$history->userResponsible()->name }} {{__('texte.intangibles_arr.history.on')}} {{ date("d.m.Y",strtotime($history->created_at)) }} {{__('texte.intangibles_arr.history.at')}} {{ date("H:i",strtotime($history->created_at)) }}
{{ __('texte.intangibles_arr.history.intangible_deleted')}} {{ __('texte.intangibles_arr.history.by')}} {{ $history->userResponsible()->name }} {{ __('texte.intangibles_arr.history.on')}} {{ date("d.m.Y",strtotime($history->created_at)) }} {{ __('texte.intangibles_arr.history.at')}} {{ date("H:i",strtotime($history->created_at)) }}
{{ $history->userResponsible()->name }} {{__('texte.intangibles_arr.history.changed_field')}} @switch($history->fieldName()) @case('name') {{__('texte.intangibles_arr.history.name')}} {{__('texte.intangibles_arr.history.from')}} {{ $history->oldValue()==null ? '" "' : $history->oldValue()==0 ? __('texte.intangibles_arr.history.liter') : __('texte.intangibles_arr.history.kg') }} {{__('texte.intangibles_arr.history.to')}} {{ $history->newValue()==0 ? __('texte.intangibles_arr.history.liter') : __('texte.intangibles_arr.history.kg') }} @break @case('reference_effect') {{__('texte.intangibles_arr.history.reference_effect')}} {{__('texte.intangibles_arr.history.from')}} {{ $history->oldValue()==null ? '" "' : __('texte.replies_arr')[$history->oldValue()]}} {{__('texte.intangibles_arr.history.to')}} {{ __('texte.replies_arr')[$history->newValue()] }} @break @case('active') {{__('texte.intangibles_arr.history.active')}} {{__('texte.intangibles_arr.history.from')}} {{ $history->oldValue()==null ? '" "' : __('texte.replies_arr')[$history->oldValue()]}} {{__('texte.intangibles_arr.history.to')}} {{ __('texte.replies_arr')[$history->newValue()] }} @break @default {{$history->fieldName()}} {{__('texte.intangibles_arr.history.from')}} {{ $history->oldValue()==null ? '" "' : $history->oldValue()}} {{__('texte.intangibles_arr.history.to')}} {{ $history->newValue() }} @break @endswitch {{__('texte.intangibles_arr.history.on')}} {{ date("d.m.Y",strtotime($history->created_at)) }} {{__('texte.intangibles_arr.history.at')}} {{ date("H:i",strtotime($history->created_at)) }}
@endsection