@extends('admin.layout.master') @section('open-executive', 'open') @section('menu-executive', 'bg-gradient-to-r from-[#53BF6A] to-[#275931] text-white') @section('menu-history-activity', 'bg-gradient-to-r from-[#53BF6A] to-[#275931] text-white') @section('content') {{-- Breadcrumb --}} Executive Team › Riwayat Aktivitas {{-- Filter --}} {{-- Search causer --}} Pengguna {{-- Filter event --}} Event Semua Created Updated Deleted {{-- Filter model --}} Model {{-- Filter tanggal --}} Dari Tanggal Sampai Tanggal Filter Reset {{-- Table --}} # Pengguna Event Model ID Record Deskripsi Waktu Aksi @forelse ($activities as $activity) {{ $loop->iteration + ($activities->currentPage() - 1) * $activities->perPage() }} @if ($activity->causer) {{ $activity->causer->name }} {{ $activity->causer->email }} @else Sistem @endif @php $eventColors = [ 'created' => 'bg-green-100 text-green-700', 'updated' => 'bg-blue-100 text-blue-700', 'deleted' => 'bg-red-100 text-red-700', ]; $color = $eventColors[$activity->event ?? ''] ?? 'bg-gray-100 text-gray-600'; @endphp {{ ucfirst($activity->event ?? '-') }} {{ class_basename($activity->subject_type ?? '-') }} {{ $activity->subject_id ?? '-' }} {{ $activity->description ?? '-' }} {{ $activity->created_at->format('d/m/Y') }} {{ $activity->created_at->format('H:i:s') }} @empty Tidak ada data aktivitas @endforelse {{-- Pagination --}} Showing {{ $activities->firstItem() ?? 0 }}–{{ $activities->lastItem() ?? 0 }} of {{ $activities->total() }} {{ $activities->appends(request()->query())->links() }} @endsection