37 lines
855 B
PHP
37 lines
855 B
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\PricelistFiles\Pages;
|
|
|
|
use App\Filament\Resources\PricelistFiles\PricelistFileResource;
|
|
use Filament\Actions\EditAction;
|
|
use Filament\Resources\Pages\ViewRecord;
|
|
|
|
class ViewPricelistFile extends ViewRecord
|
|
{
|
|
protected static string $resource = PricelistFileResource::class;
|
|
|
|
protected function getHeaderActions(): array
|
|
{
|
|
return [
|
|
EditAction::make(),
|
|
];
|
|
}
|
|
|
|
public function getHeading(): string
|
|
{
|
|
return "Árlista fájl: " . $this->record->filename;
|
|
}
|
|
|
|
protected function getHeaderWidgets(): array
|
|
{
|
|
return [
|
|
// Később ide jöhetnek widgetek, pl. statisztika a feldolgozásról
|
|
];
|
|
}
|
|
|
|
public function getSubheading(): ?string
|
|
{
|
|
return "Beszállító: " . $this->record->supplier?->name;
|
|
}
|
|
}
|