How to access the record on a custom page?

I have tried with $record, $model, etc, nothing works
Solution
What I do is instead of extending a Page, I extend to a ViewRecord and overwrite the $view paramater.
Then the $record is usable in the view and actions work.

example:
<?php

namespace App\Filament\Resources\ChargerResource\Pages;

use App\Filament\Resources\ChargerResource;
use Filament\Resources\Pages\ViewRecord;

class ChargerTransactions extends ViewRecord
{
    protected static string $resource = ChargerResource::class;

    protected static string $view = 'chargers.transactions';
}
Was this page helpful?