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.
topnotch_website/app/Filament/Resources/InvoiceResource/Pages/EditInvoice.php

27 lines
692 B
PHTML

2 months ago
<?php
namespace App\Filament\Resources\InvoiceResource\Pages;
use App\Filament\Resources\InvoiceResource;
3 weeks ago
use App\Models\Invoice;
2 months ago
use Filament\Actions;
3 weeks ago
use Filament\Actions\Action;
2 months ago
use Filament\Resources\Pages\EditRecord;
class EditInvoice extends EditRecord
{
protected static string $resource = InvoiceResource::class;
protected function getHeaderActions(): array
{
return [
3 weeks ago
Action::make('print')
->icon('lucide-printer')
->url(fn (Invoice $record) => route('invoice.pdf', $record))
->openUrlInNewTab(),
Actions\DeleteAction::make()
->icon('lucide-trash-2'),
2 months ago
];
}
}