You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
692 B
PHP
27 lines
692 B
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\InvoiceResource\Pages;
|
|
|
|
use App\Filament\Resources\InvoiceResource;
|
|
use App\Models\Invoice;
|
|
use Filament\Actions;
|
|
use Filament\Actions\Action;
|
|
use Filament\Resources\Pages\EditRecord;
|
|
|
|
class EditInvoice extends EditRecord
|
|
{
|
|
protected static string $resource = InvoiceResource::class;
|
|
|
|
protected function getHeaderActions(): array
|
|
{
|
|
return [
|
|
Action::make('print')
|
|
->icon('lucide-printer')
|
|
->url(fn (Invoice $record) => route('invoice.pdf', $record))
|
|
->openUrlInNewTab(),
|
|
Actions\DeleteAction::make()
|
|
->icon('lucide-trash-2'),
|
|
];
|
|
}
|
|
}
|