@extends('layouts.app') @section('content')

Historial de cambios

@foreach ($logs as $item) @endforeach
ID Mensaje Cambios Hora
{{ $loop->iteration }} {{ $item->usuario->name . ' ' . $item->usuario->lastname . ' ' . $item->mensaje }} @if ($item->changed_data) @foreach ($item->changed_data as $clave => $valor) @if (gettype($valor) == 'string')

{{ $clave . ' => ' . $valor }}

@else

{{ $clave }}

@endif @endforeach @else SIN CAMBIOS @endif
{{ $item->created_at->format('H:i d-m-Y') }}
@endsection