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

{{__('texte.producer_marks_arr.history.show_mark_history')}}

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