Tjiel
Tjiel
FFilament
Created by Tjiel on 6/11/2024 in #❓┊help
Looking for a way to change the logo based on the tenant.
Thanks so much for the suggestion, although Filament::getPanel() did not work for my situation, Filament::getCurrentPanel() did work. I have added it the following way.
Filament::getCurrentPanel()->brandLogo($tenant->image);
Filament::getCurrentPanel()->brandLogo($tenant->image);
4 replies
FFilament
Created by Tjiel on 6/7/2024 in #❓┊help
Is there a way to use the filament colors in a custom theme
Ty both for the effort
17 replies
FFilament
Created by Tjiel on 6/7/2024 in #❓┊help
Is there a way to use the filament colors in a custom theme
Thanks, this is what I was looking for
17 replies
FFilament
Created by Tjiel on 6/7/2024 in #❓┊help
Is there a way to use the filament colors in a custom theme
When inspecting the page I can't find the --primaryColor variable, even if I change the color to just be blue (which does turn the background to blue)
17 replies
FFilament
Created by Tjiel on 6/7/2024 in #❓┊help
Is there a way to use the filament colors in a custom theme
In the panel provider the default primary collor is set the following way:
->colors([
'primary' => Color::Amber,
])
->colors([
'primary' => Color::Amber,
])
So I guess the white color means it probably didn't get any color from --primary at all
17 replies
FFilament
Created by Tjiel on 6/7/2024 in #❓┊help
Is there a way to use the filament colors in a custom theme
I have tried it like this now:
:root {
--primaryColor: --primary;
}

.fi-sidebar-header, .fi-topbar > nav {
background-color: var(--primaryColor);
}
:root {
--primaryColor: --primary;
}

.fi-sidebar-header, .fi-topbar > nav {
background-color: var(--primaryColor);
}
and the background color is just white, even though icons and other stuff in filament is using the correct primary color. Do you have any idea what im doing wrong here?
17 replies
FFilament
Created by Tjiel on 6/7/2024 in #❓┊help
Is there a way to use the filament colors in a custom theme
@Dennis Koch Could you maybe explain how I could use CSS Vars to use for example the primary filament color in the theme.css. I have looked it up and I only could find something like the following:
:root {
--blue: #1e90ff;
--white: #ffffff;
}

body { background-color: var(--blue); }
:root {
--blue: #1e90ff;
--white: #ffffff;
}

body { background-color: var(--blue); }
Which is indeed nice but doesn't help me get the filament primary color as a var
17 replies
FFilament
Created by Tjiel on 6/5/2024 in #❓┊help
Looking for a way to get a time range value input field
The project already has been deployed and I need the data to go with me to the filament version.
9 replies
FFilament
Created by Tjiel on 6/5/2024 in #❓┊help
Looking for a way to get a time range value input field
@toeknee Ty for the response, the table-repeater indeed is better for my intended purpose. The issue what im having is still kind of the same. Using a variations on the code you just send the opening hours saved is the following: {"monday":[{"start":"07:00","end":"23:00"},{"start":"08:30","end":"22:00"}]}. Which would fine, if I didn't need to keep the old data that has been created using the nova forms. Which is the following: {"monday":[],"tuesday":[],"wednesday":["12:00-14:00"],"thursday":[],"friday":[],"saturday":[],"sunday":[],"exceptions":[]}
9 replies
FFilament
Created by Tjiel on 5/27/2024 in #❓┊help
How to change capitalization on model label?
That must be it, Il give an update whenever I have time to upgrade it to a higher version. Thanks for helping me out.
13 replies
FFilament
Created by Tjiel on 5/27/2024 in #❓┊help
How to change capitalization on model label?
This is the filament version in my composer.json
"filament/filament": "^3.0-stable",
"filament/filament": "^3.0-stable",
13 replies
FFilament
Created by Tjiel on 5/27/2024 in #❓┊help
How to change capitalization on model label?
No description
13 replies
FFilament
Created by Tjiel on 5/27/2024 in #❓┊help
How to change capitalization on model label?
@Tally thanks for the response, i have tried it without the translation but that still doesn't work. I for some reason also doesn't light up the $hasTitleCaseModelLabel in my editor like it does with the $navigationIcon. See the attached screenshot for reference.
13 replies
FFilament
Created by Tjiel on 5/13/2024 in #❓┊help
Looking for an openinghours form field in filament
Thanks for the replies I'l check your suggestions out when I've got time
8 replies
FFilament
Created by Tjiel on 5/13/2024 in #❓┊help
Looking for an openinghours form field in filament
Thanks for the suggestion, il give that a try
8 replies
FFilament
Created by Tjiel on 4/26/2024 in #❓┊help
Image saved to AWS bucket not displayed on infolist.
Update: I have changed some things and currently when uploading the file upload loading circle is not making progress. Also after selecting a file to upload an error about cors occurs.
3 replies
FFilament
Created by Tjiel on 4/12/2024 in #❓┊help
Change default table query to get only the soft deleted records
Yeah I know that but, I have some logic in the getTableQuery() where it sometimes needs to show the trashed and sometimes it doesn't
9 replies
FFilament
Created by Tjiel on 4/16/2024 in #❓┊help
Parameter being null after table action
The two times query without params are for when there is no location yet created, or for when the location parameter is all
7 replies
FFilament
Created by Tjiel on 4/16/2024 in #❓┊help
Parameter being null after table action
I need to reload the page for the mapping tool, I could not find a good way achieve this using the native filters. Maybe if there is a way to change the table filters from the inside of the widget on load it could work.
7 replies
FFilament
Created by Tjiel on 4/12/2024 in #❓┊help
Change default table query to get only the soft deleted records
I did read the docs and i already had tried the exact same thing earlier. The problem was that I had a default trashed filter where trashed was hidden.
9 replies