astronomic
astronomic
FFilament
Created by astronomic on 6/13/2024 in #❓┊help
Filters in table builder, don't search instantly, only if you click outside
Omgsh, It finally works, but I don't understand why version 3.2.0 was installed, I recently created this project. Thank you so much Leandro
21 replies
FFilament
Created by astronomic on 6/13/2024 in #❓┊help
Filters in table builder, don't search instantly, only if you click outside
oh, is v3.2.0
21 replies
FFilament
Created by astronomic on 6/13/2024 in #❓┊help
Filters in table builder, don't search instantly, only if you click outside
Yes I do, the filament versión is 3.2
21 replies
FFilament
Created by astronomic on 6/13/2024 in #❓┊help
Filters in table builder, don't search instantly, only if you click outside
version 3, no, it's in a normal resource.
21 replies
FFilament
Created by astronomic on 6/13/2024 in #❓┊help
Filters in table builder, don't search instantly, only if you click outside
please, anybody can help me?
21 replies
FFilament
Created by astronomic on 6/13/2024 in #❓┊help
Filters in table builder, don't search instantly, only if you click outside
I add a recording so that it is better understood. I choose Americana, and the filter does nothing, only when I click outside of the select
21 replies
FFilament
Created by astronomic on 6/13/2024 in #❓┊help
Filters in table builder, don't search instantly, only if you click outside
I always do that, the problem persists
21 replies
FFilament
Created by astronomic on 6/13/2024 in #❓┊help
Filters in table builder, don't search instantly, only if you click outside
No, this is a normal Filament resource. And we have only one panel, AdminPanelProvider
21 replies
FFilament
Created by astronomic on 6/13/2024 in #❓┊help
Filters in table builder, don't search instantly, only if you click outside
Here my code
21 replies
FFilament
Created by astronomic on 6/13/2024 in #❓┊help
Filters in table builder, don't search instantly, only if you click outside
Ok, thank you. I hadn't put the code because I haven't really done anything special, just added filters.
21 replies
FFilament
Created by astronomic on 6/13/2024 in #❓┊help
Filters in table builder, don't search instantly, only if you click outside
Please, does this happen to anyone else?
21 replies
FFilament
Created by astronomic on 5/22/2024 in #❓┊help
When selecting filters in a list of records, the widget does not update
anyone?
5 replies
FFilament
Created by astronomic on 5/22/2024 in #❓┊help
When selecting filters in a list of records, the widget does not update
In ListInvoice, i have this: public function updated($name) { if (Str::of($name)->contains(['tableFilters'])) { $this->emit('updateInvoicesTotalization'); } }
5 replies
FFilament
Created by astronomic on 5/22/2024 in #❓┊help
When selecting filters in a list of records, the widget does not update
class InvoicesTotalization extends BaseWidget { protected static string $view = 'filament.resources.invoice-resource.widgets.invoices-totalization'; protected static ?string $pollingInterval = null; protected $listeners = ['updateInvoicesTotalization' => '$refresh']; public $tableFilters; protected $queryString = ['tableFilters']; protected function getCards(): array { $data = []; $query = Invoice::query(); if ($this->tableFilters && isset($this->tableFilters['status'])) { $query->where('status', $this->tableFilters['status']['value']); } if ($this->tableFilters && isset($this->tableFilters['street'])) { $query->whereHas('Client', function($q){ $q->where('street', 'LIKE', '%'.$this->tableFilters['street']['street'].'%'); }); } if ($this->tableFilters && isset($this->tableFilters['number'])) { $query->whereHas('Client', function($q){ $q->where('address_number', $this->tableFilters['number']['number']); }); } if ($this->tableFilters && isset($this->tableFilters['invoice_date'])) { $query->whereBetween('invoice_date', [$this->tableFilters['invoice_date']['start_date'], $this->tableFilters['invoice_date']['end_date']]); } $data['subtotal'] = $query->sum('subtotal'); $data['iva'] = $query->sum('iva'); $data['total'] = $query->sum('total'); return [ Card::make('SUBTOTAL: ', number_format($data['subtotal'], 2, ',', '.')), Card::make('IVA: ', number_format($data['iva'], 2, ',', '.')), Card::make('TOTAL: ', number_format($data['total'], 2, ',', '.')), ]; } }
5 replies
FFilament
Created by astronomic on 4/29/2024 in #❓┊help
Doubts with summarize(Count)
Ok, thank you guys. But in the end, I'm leaving it as it is, the client hasn't bothered.
21 replies
FFilament
Created by astronomic on 4/29/2024 in #❓┊help
Doubts with summarize(Count)
No description
21 replies
FFilament
Created by astronomic on 4/29/2024 in #❓┊help
Doubts with summarize(Count)
It's already done like that, even though it's not in the post. But that's not my problem. I don't want the space from the two 'ghost' columns to show up in the table. I would need another option. Thanks anyway.
21 replies
FFilament
Created by astronomic on 4/29/2024 in #❓┊help
Doubts with summarize(Count)
No, because it will depend on the filters.
21 replies
FFilament
Created by astronomic on 4/29/2024 in #❓┊help
Doubts with summarize(Count)
It doesn't work for me if I put the 'counts' all together, and yes, I read
21 replies
FFilament
Created by astronomic on 4/29/2024 in #❓┊help
Doubts with summarize(Count)
ok, thank you. But I have put it because they are "ghost" columns, no name has to appear
21 replies