Chrysippus
Chrysippus
FFilament
Created by Chrysippus on 7/31/2024 in #❓┊help
Make table data selectable based on condition
It worked. Niceeee, thankyouuu!
4 replies
FFilament
Created by vahnmarty on 9/3/2023 in #❓┊help
Prevent Logout when changing Admin Password
Hello Sir, I have the same problem, this didnt work on me.
5 replies
FFilament
Created by Chrysippus on 2/29/2024 in #❓┊help
Hide Select Dropdown depends on the Select Dropdown value?
oh its working now using hidden()
Select::make('type')
->required()
->options([
'normal' => 'Normal',
'service' => 'Service',
'tier' => 'Tier',
])
->default('normal'),
Select::make('tier')
->required()
->hidden(function (string $operation, $state, Forms\Set $set, Forms\Get $get) {
if ($get('type') == 'tier'){
return false;
} else {
return true;
}
})
->options([
1 => 'Tier 1',
2 => 'Tier 2',
3 => 'Tier 3',
])
->default(1),
Select::make('type')
->required()
->options([
'normal' => 'Normal',
'service' => 'Service',
'tier' => 'Tier',
])
->default('normal'),
Select::make('tier')
->required()
->hidden(function (string $operation, $state, Forms\Set $set, Forms\Get $get) {
if ($get('type') == 'tier'){
return false;
} else {
return true;
}
})
->options([
1 => 'Tier 1',
2 => 'Tier 2',
3 => 'Tier 3',
])
->default(1),
4 replies
FFilament
Created by Chrysippus on 8/12/2023 in #❓┊help
How to Render/Show image on table action view modal?
nvm, I solved it.
7 replies
FFilament
Created by Chrysippus on 8/12/2023 in #❓┊help
How to Render/Show image on table action view modal?
im using filepond on my customer-side idk what to do to show it on table action view modal
7 replies
FFilament
Created by Chrysippus on 8/12/2023 in #❓┊help
How to Render/Show image on table action view modal?
7 replies
FFilament
Created by Chrysippus on 8/12/2023 in #❓┊help
How to Render/Show image on table action view modal?
the image for proof came from customer upload, if it s uploaded inside admin, the image on modal was showing, but if it's uploaded via customer-side which is not filament based, it is not showing....
7 replies
FFilament
Created by Chrysippus on 8/9/2023 in #❓┊help
how to make the view link on Notifications show/trigger the modal and show the data through modal?
is it this one sir? \Filament\Notifications\Notification
36 replies
FFilament
Created by Chrysippus on 8/9/2023 in #❓┊help
how to make the view link on Notifications show/trigger the modal and show the data through modal?
how can I used the filament Notification sir? should i just extends it?
36 replies
FFilament
Created by Chrysippus on 8/9/2023 in #❓┊help
how to make the view link on Notifications show/trigger the modal and show the data through modal?
it's returning an undefined error sir message: "Call to undefined method Illuminate\Notifications\Channels\MailChannel::sendToDatabase()"
36 replies
FFilament
Created by Chrysippus on 8/9/2023 in #❓┊help
how to make the view link on Notifications show/trigger the modal and show the data through modal?
it's being highlighted as "add method" sir Method 'sendToDatabase' not found in void should i just ignore it. sorry about this, im complete new to it
36 replies
FFilament
Created by Chrysippus on 8/9/2023 in #❓┊help
how to make the view link on Notifications show/trigger the modal and show the data through modal?
im lost sir, all I know is ->sendToDatabase() is from filament but I dunno which function you're refering to. this is how I send notification on my checkoutController after order placed
// Clear the cart
Cart::instance('shopping')->destroy();

$response['status'] = true;
$response['cod'] = true;
$response['message'] = "Order placed successfully.";

$adminUsers = User::where('is_admin', 1)->get();
Notification::send($adminUsers, new OrderPlaced($order));
// Clear the cart
Cart::instance('shopping')->destroy();

$response['status'] = true;
$response['cod'] = true;
$response['message'] = "Order placed successfully.";

$adminUsers = User::where('is_admin', 1)->get();
Notification::send($adminUsers, new OrderPlaced($order));
36 replies
FFilament
Created by Chrysippus on 8/9/2023 in #❓┊help
how to make the view link on Notifications show/trigger the modal and show the data through modal?
yes sir, i have setup that too. I think im ready to get the data and show it to notification modal, dunno which step is next since im not using filament on my customer side.
36 replies
FFilament
Created by Chrysippus on 8/9/2023 in #❓┊help
how to make the view link on Notifications show/trigger the modal and show the data through modal?
Hello sir, I am now able to send the data to database notifications idk what's next, should I go and setup filament to receive the notification? if yes what should I do since the data came from customer-side?
36 replies
FFilament
Created by Chrysippus on 8/9/2023 in #❓┊help
how to make the view link on Notifications show/trigger the modal and show the data through modal?
Hello SIr, can i ask one more thing? I dont know how to trigger or send a notification from customer-side to admin-side do you have a link for this too? as im only using filament on my admin side
36 replies
FFilament
Created by Chrysippus on 8/9/2023 in #❓┊help
how to make the view link on Notifications show/trigger the modal and show the data through modal?
im being too dumb on explaning lol, it should be customer not user, I kept saying user....
36 replies
FFilament
Created by Chrysippus on 8/9/2023 in #❓┊help
how to make the view link on Notifications show/trigger the modal and show the data through modal?
ohh, sorry, i am not using filament for my customer's end basically I just use filament for admin its an small ecommerce app. basically if customer creates an order I want to send notification to the admin-side which then will be seen on notifications modal and it will have a view link but since i disabled the
Pages\CreateOrder
Pages\EditOrder
Pages\CreateOrder
Pages\EditOrder
on the admin it will not be possible right? since view link returns /{record}/edit. Is there any other way to view the specific order base on my scenario? I'm only thinking using the view modal on the notification modal so admin will be able to view the data right away even if the admin is on other page/s of the admin
36 replies
FFilament
Created by Chrysippus on 8/9/2023 in #❓┊help
how to make the view link on Notifications show/trigger the modal and show the data through modal?
I just removed the create module of my OrderResource for now
36 replies
FFilament
Created by Chrysippus on 8/9/2023 in #❓┊help
how to make the view link on Notifications show/trigger the modal and show the data through modal?
no.. it is not
36 replies