{!! Layout::openCard() !!} @if(isset($records)) @foreach($records as $record) @if($record->event == "created") @elseif($record->event == "deleted") @else @endif @endforeach
Usuário Aula Quando Operação Antes Depois
@if($record->user)

{{$record->user->nome}}

(id {{$record->user->id}})

@endif
@if($record->auditable)

{{$record->auditable->data}}

@else

Aula já removida

@endif

(id {{$record->auditable_id}})

{{$record->created_at}} Aula criadaAula excluídaAlteração @foreach($record->antes as $key => $value) @if(!in_array($key, $fieldsToSupress))

{{ucwords(str_replace('_',' ',$key))}}: {!! $value !!}

@endif @endforeach
@foreach($record->depois as $key => $value) @if(!in_array($key, $fieldsToSupress))

{{ucwords(str_replace('_',' ',$key))}}: {!! $value !!}

@endif @endforeach
@endif {!! Layout::closeCard() !!}