<?php

declare(strict_types=1);

namespace App\Filament\Resources\DberpAuditLogs\Pages;

use App\Filament\Resources\DberpAuditLogs\DberpAuditLogResource;
use Filament\Resources\Pages\ViewRecord;
use Illuminate\Contracts\Support\Htmlable;

class ViewDberpAuditLog extends ViewRecord
{
    protected static string $resource = DberpAuditLogResource::class;

    public function getTitle(): string|Htmlable
    {
        $title = static::getResource()::getRecordTitle($this->getRecord());

        return filled($title) ? $title : __('dberp.resources.audit_log.label');
    }
}
