- Introduced ViewVisaMasterPaymentOrder page for displaying payment order details. - Updated VisaMasterPaymentOrderResource to include a route for the new view page. - Enhanced VisaMasterPaymentOrderInfolist schema to include location details and conditional visibility for notes. - Enabled ViewAction in VisaMasterPaymentOrdersTable for accessing the new view page. - Modified VisaMasterPaymentOrder model to allow nullable notes property.
29 lines
910 B
PHP
29 lines
910 B
PHP
<?php
|
|
|
|
namespace App\Filament\Clusters\VisaMasterPayments\Resources\VisaMasterPaymentOrders\Pages;
|
|
|
|
use App\Filament\Clusters\VisaMasterPayments\Resources\VisaMasterPaymentOrders\Schemas\VisaMasterPaymentOrderInfolist;
|
|
use App\Filament\Clusters\VisaMasterPayments\Resources\VisaMasterPaymentOrders\VisaMasterPaymentOrderResource;
|
|
use Filament\Actions\EditAction;
|
|
use Filament\Resources\Pages\ViewRecord;
|
|
use Filament\Schemas\Schema;
|
|
use Filament\Support\Icons\Heroicon;
|
|
|
|
class ViewVisaMasterPaymentOrder extends ViewRecord
|
|
{
|
|
protected static string $resource = VisaMasterPaymentOrderResource::class;
|
|
|
|
protected function getHeaderActions(): array
|
|
{
|
|
return [
|
|
EditAction::make()
|
|
->icon(Heroicon::OutlinedPencil),
|
|
];
|
|
}
|
|
|
|
public function infolist(Schema $schema): Schema
|
|
{
|
|
return VisaMasterPaymentOrderInfolist::configure($schema);
|
|
}
|
|
}
|