{{ __('Id') }} {{ __('Usuario') }} {{ __('Rol Usuario') }} {{-- {{ __('Auditable') }} --}} {{ __('Evento') }} {{ __('Direccion ip') }} {{ __('Fecha de creación') }} {{ __('Opciones') }} @if(count($audits) > 0) @foreach ($audits as $audit)
{{ ($loop->index+1)+(($page-1)*$itemsPerPage) }}
{{ $this->getUserById($audit->user_id) ? $this->getUserById($audit->user_id)->name : '' }}
{{ $this->getUserById($audit->user_id) ? $this->getUserById($audit->user_id)->rol->name : '' }}
{{--
{{ $audit->auditable_type ? $audit->auditable_type: '' }}
--}}
@if($audit->event == 'created') {{ $this->getMessaggeByEventAudit($audit->auditable_type, $audit->event) }} @elseif($audit->event == 'updated') {{ $this->getMessaggeByEventAudit($audit->auditable_type, $audit->event) }} @endif
{{ $audit->ip_address }}
{{ $audit->created_at}}
{{ __('Ver') }} @endforeach @else

{{ __('No hay registros') }}

@endif
{{ $audits->links() }}