f7fc69077b
- Convert static $modelLabel/$pluralModelLabel/$title to getter methods - Wrap ->label()/->placeholder()/->helperText()/->description()/->title()/->body() args - Wrap Section::make()/Fieldset::make()/Notification::make()->title() args - Fix RelationManagers::getTitle() signature to match parent (Model, string) - Fix Pages::getTitle() to instance method (BasePage::getTitle is non-static) - Extend lang/ru.json + lang/en.json with 700+ common terms; identity fallback for the rest - Remove duplicate getters in 5 resources that had manual getModelLabel already All 306 tests pass. Missing translations fall back to the RO key so the UI never breaks. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
15 lines
411 B
PHP
15 lines
411 B
PHP
<?php
|
|
|
|
namespace App\Filament\Tenant\Resources\MasterResource\Pages;
|
|
|
|
use App\Filament\Tenant\Resources\MasterResource;
|
|
use Filament\Actions;
|
|
use Filament\Resources\Pages\ListRecords;
|
|
|
|
class ListMasters extends ListRecords
|
|
{
|
|
protected static string $resource = MasterResource::class;
|
|
|
|
protected function getHeaderActions(): array { return [Actions\CreateAction::make()->label(__('Nou tehnician'))]; }
|
|
}
|