25 lines
628 B
PHP
25 lines
628 B
PHP
<?php
|
|
|
|
namespace App\Filament\Admin\Resources\InvoiceResource\RelationManagers;
|
|
|
|
use App\Filament\Admin\Resources\PaymentResource;
|
|
use Filament\Forms\Form;
|
|
use Filament\Resources\RelationManagers\RelationManager;
|
|
use Filament\Tables\Table;
|
|
|
|
class PaymentsRelationManager extends RelationManager
|
|
{
|
|
protected static string $relationship = 'payments';
|
|
|
|
public function form(Form $form): Form
|
|
{
|
|
return PaymentResource::form($form);
|
|
}
|
|
|
|
public function table(Table $table): Table
|
|
{
|
|
return PaymentResource::paymentRelationManagerTable($table)
|
|
->recordTitleAttribute('date');
|
|
}
|
|
}
|