refactor: replace custom CRM with Monica fork
Some checks failed
Build & Push Monica Image to Gitea Registry / build-and-push (push) Failing after 9s

This commit is contained in:
Kroonk
2026-05-22 16:19:55 +02:00
parent 38cc4c09ca
commit a213a1dba0
2215 changed files with 242567 additions and 6015 deletions

View File

@@ -0,0 +1,28 @@
<?php
namespace App\Http\Controllers\Settings;
use App\Helpers\AccountHelper;
use App\Helpers\AuditLogHelper;
use App\Http\Controllers\Controller;
class AuditLogController extends Controller
{
/**
* Display the page listing all the audit logs.
*/
public function index()
{
$logs = auth()->user()->account->auditLogs()
->with('author')
->orderBy('created_at', 'desc')
->paginate(15);
$accountHasLimitations = AccountHelper::hasLimitations(auth()->user()->account);
return view('settings.auditlog.index')
->withLogsCollection(AuditLogHelper::getCollectionOfAudits($logs))
->withAccountHasLimitations($accountHasLimitations)
->withLogsPagination($logs);
}
}