Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
27 lines
700 B
PHP
27 lines
700 B
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\VisitorEntryResource\Pages;
|
|
|
|
use App\Filament\Resources\VisitorEntryResource;
|
|
use Filament\Actions;
|
|
use Filament\Resources\Pages\ViewRecord;
|
|
|
|
class ViewVisitorEntry extends ViewRecord
|
|
{
|
|
protected static string $resource = VisitorEntryResource::class;
|
|
|
|
protected function getHeaderActions(): array
|
|
{
|
|
return [
|
|
Actions\EditAction::make(),
|
|
|
|
Actions\Action::make('print')
|
|
->label('Print Badge')
|
|
->icon('heroicon-o-printer')
|
|
->color('success')
|
|
->url(fn () => route('visitor.badge', $this->record->id))
|
|
->openUrlInNewTab(),
|
|
];
|
|
}
|
|
}
|