@lang('dashboard::dashboard.last_updates.last_updates')

@if(count($lastUpdates) == 0) @lang('dashboard::dashboard.last_updates.no_updates') @else @foreach($lastUpdates as $update)
@lang('dashboard::dashboard.last_updates.asset') {!! $update->changes()['attributes']['asset_number'] !!} @lang('dashboard::dashboard.last_updates.'.$update->description )
@foreach($update->changes() as $field => $value) @if($update->description == 'updated') @foreach($value as $key => $v) @if($update->changes()['attributes'][$key] != $update->changes()['old'][$key]) @lang('dashboard::dashboard.last_updates.field') @lang('dashboard::dashboard.attributes.'.$key) @lang('dashboard::dashboard.last_updates.changed'):
@lang('dashboard::dashboard.last_updates.from') : @if(!is_array($update->changes()['old'][$key])) {!! $update->changes()['old'][$key] !!} @endif
@lang('dashboard::dashboard.last_updates.to'): {!! $update->changes()['attributes'][$key] !!}
@endif @endforeach @elseif($update->description != 'created') @foreach($value as $key => $v) @lang('dashboard::dashboard.last_updates.field') @lang('dashboard::dashboard.attributes.'.$key) @lang('dashboard::dashboard.last_updates.created'):
@endforeach @endif @break @endforeach
@lang('dashboard::dashboard.last_updates.by') {!! $update->user_name !!} @lang('dashboard::dashboard.last_updates.on') {!! \UserHelper::formatUserDateTime($update->updated_at) !!}
@endforeach @endif