@extends('layouts.admin')

@section('content')

<h2>Log Kegiatan</h2>

<table>
<tr>
    <th>Nama</th>
    <th>Tindakan</th>
    <th>Tanggal</th>
</tr>

@foreach($logs as $log)
<tr>
    <td>{{ $log->user_name }}</td>
    <td>{{ $log->action }}</td>
    <td>{{ $log->created_at->format('d M Y H:i') }}</td>
</tr>
@endforeach

</table>

@endsection