<div class="table-responsive">
    <table class="table table-list">
        <thead>
        {!! tableHeader('validation.attributes.device_id') !!}
        {!! tableHeader('validation.attributes.type') !!}
        {!! tableHeader('validation.attributes.message') !!}
        {!! tableHeader('validation.attributes.time') !!}
        </thead>
        <tbody>
        @if (count($events))
            @foreach ($events as $event)
                <tr>
                    <td>{{ $event->device->name }}</td>
                    <td>{{ $event->name }}</td>
                    <td>{{ $event->detail }}</td>
                    <td>{{ $event->time }}</td>
                </tr>
            @endforeach
        @else
            <tr>
                <td class="no-data" colspan="4">{!!trans('front.no_events')!!}</td>
            </tr>
        @endif
        </tbody>
    </table>
</div>
<div class="text-right">
    <a class="link" href="{{ \Tobuli\Lookups\Tables\EventsLookupTable::route('index') }}" data-url="{{ \Tobuli\Lookups\Tables\EventsLookupTable::route('index') }}" data-modal="events_lookup">
        {{ trans('global.view_details') }}
    </a>
</div>