Align the Search and View Docs in Table
Good Day Guys! Please Help me to align the Search Input and View Docs Button.
Here's my Code:
public function table(Table $table): Table
{
return $table
->relationship(fn(): HasMany => $this->customer->applications())
->columns([
TextColumn::make('application_refid')
->label('Ref ID')
->sortable()
->searchable(),
TextColumn::make('application_date')
->label('Application Date')
->date()
->sortable(),
TextColumn::make('status.status_name')
->badge()
->sortable(['status_name'])
->searchable(['status_name'])
->label('Status')
->color('primary'),
])
->headerActions([
Action::make('create')
->label('Create Application')
->requiresConfirmation()
->visible(! $this->customer->application)
->action(function () {
redirect()->route('filament.admin.resources.customers.application', ['record' => session('selected_customer.id'), 'application_id' => 'new']);
}),
Action::make('view Docs')
->label('View Docs')
->icon('heroicon-s-document-text')
->color('primary')
->tooltip('View application documents')
->action(function () {
return redirect()->to(route('filament.admin.resources.credit-evaluations.view', ['record' => $this->applicationId]) . '#docs-viewing-routine');
})
->visible($this->customer->application->status_id == LosStatus::APPLICATION_ENDORSED_TO_CREDIT), ])
->visible($this->customer->application->status_id == LosStatus::APPLICATION_ENDORSED_TO_CREDIT), ])

2 Replies