Arrow
Arrow
FFilament
Created by tinkypinky on 8/25/2023 in #❓┊help
DatePicker Month-Year Display Only
No description
4 replies
FFilament
Created by Arrow on 1/9/2024 in #❓┊help
How to display infolist in a table column action with a relation record.
@Leandro Ferreira Is there a way to filter the relation query with a scope or modifying the query?
I have the following relationship: $record->customer->receipts I only want to fetch the current years receipts only and show via RepeatableEntry field
RepeatableEntry::make('customer.payments')
->columns(3)
->schema([
TextEntry::make('reference_no'),
TextEntry::make('payment_date')->date(),
TextEntry::make('amount_paid'),
])
])
RepeatableEntry::make('customer.payments')
->columns(3)
->schema([
TextEntry::make('reference_no'),
TextEntry::make('payment_date')->date(),
TextEntry::make('amount_paid'),
])
])
5 replies
FFilament
Created by Arrow on 1/9/2024 in #❓┊help
How to display infolist in a table column action with a relation record.
That worked! thank you!! 🥰
5 replies
FFilament
Created by Arrow on 1/8/2024 in #❓┊help
Apply filament tab query filter to table on custom ViewRecord page
If I add the following code to the start of table method. I do get the filtering done when a page is refreshed but not when livewire makes a request, as the value for $this->activeTab is still the same from the previous request.
public function table(Table $table): Table
{
switch ($this->activeTab) {
case 'unpaid':
$query = $query->where('isPrepaid', '=', 0)->where('balance', '>', 0);
break;

case 'paid':
$query = $query->where('isPrepaid', '=', 0)->where('balance', '<=', 0);
break;
case 'prepaid':
$query = $query->where('isPrepaid', '=', 1);
break;
}
public function table(Table $table): Table
{
switch ($this->activeTab) {
case 'unpaid':
$query = $query->where('isPrepaid', '=', 0)->where('balance', '>', 0);
break;

case 'paid':
$query = $query->where('isPrepaid', '=', 0)->where('balance', '<=', 0);
break;
case 'prepaid':
$query = $query->where('isPrepaid', '=', 1);
break;
}
3 replies