@extends('layout.main') @use('App\Services\Konfigurasi\FormatLogAktivitas', 'Format') @use('App\Models\Pertanian\Petani') @section('content')
| Waktu | Pengguna | Jenis | Aktivitas | Rincian |
|---|---|---|---|---|
| {{ $item->created_at->translatedFormat('d M Y') }} {{ $item->created_at->format('H:i:s') }} | @if ($item->causer) {{ $item->causer->name }} {{ $item->causer->role?->label() }} @else Sistem / tamu @endif | {{ $j['label'] }} | {{ $item->description }} @if ($item->subject_type && $item->subject_type !== Petani::class) #{{ $item->subject_id }}{{ $namaData ? ' ยท ' . $namaData : '' }} @endif @if ($petaniId) {{ $namaPetani[$petaniId] ?? $namaData ?? 'Petani #' . $petaniId }} @endif |
@if ($item->log_name === 'verifikasi')
{{ Format::status($prop['dari'] ?? null) }}
{{ Format::status($prop['ke'] ?? null) }}
@if (! empty($prop['catatan']))
Catatan: {{ $prop['catatan'] }}
@endif
@elseif ($item->log_name === 'auth')
IP: {{ $prop['ip'] ?? '-' }}
@if (! empty($prop['identitas']))
Login: {{ $prop['identitas'] }}
@endif
@elseif ($baru)
@php
$isian = collect($baru)->when(! $lama, fn ($c) => $c->reject(fn ($v) => $v === null || $v === ''));
$batas = $lama ? $isian->count() : 5;
@endphp
|
| Belum ada aktivitas yang tercatat. | ||||