ikbentomas
ikbentomas
FFilament
Created by zydnrbrn on 12/19/2024 in #❓┊help
Dynamic badge blade color
It's hard to see what part of your code you are referring to, using these screenshots with a large chuncks of code. Can you post small snippets formatted as code using backticks and only keep the parts that are relevant for your question?
7 replies
FFilament
Created by ikbentomas on 12/24/2024 in #❓┊help
Show navigation badge in sub navigation with count of relationship
I've updated the post and maybe it's easier to grasp with this screenshot
4 replies
FFilament
Created by Shang✨ on 12/26/2024 in #❓┊help
I have a string length issue in datagrid.
I think you could use the formatStateUsing() method to change the integer into a string (it seems to be an integer because of the E+19 at the end) https://filamentphp.com/docs/2.x/tables/columns/text#custom-formatting
2 replies
FFilament
Created by David | Fortune Validator on 8/21/2024 in #❓┊help
Dynamic Badge Count on Sub Navigation Relation Page
I think i had the same issue and i've just found a solution.
public static function getNavigationBadge(): ?string
{
$record = request('record');
return $record->attribute;
}

public static function getNavigationBadge(): ?string
{
$record = request('record');
return $record->attribute;
}

This number does show up in my sub navigation 🙂
9 replies