Chrysippus
Chrysippus
FFilament
Created by Chrysippus on 7/31/2024 in #❓┊help
Make table data selectable based on condition
No description
4 replies
FFilament
Created by Chrysippus on 2/29/2024 in #❓┊help
Hide Select Dropdown depends on the Select Dropdown value?
Hello, I want to hide a specific Select Dropdown something like this using afterStateUpdated() ,is this possible? any suggestion to make this work with or without using afterStateUpdated?
Select::make('type')
->required()
->options([
'normal' => 'Normal',
'service' => 'Service',
'tier' => 'Tier',
])
->default('normal')
->live(onBlur: true)
->afterStateUpdated(function (string $operation, $state, Forms\Set $set, Forms\Get $get) {
if ($state == 'tier'){
// show tier column
}
}),
Select::make('tier')
->required()
->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')
->live(onBlur: true)
->afterStateUpdated(function (string $operation, $state, Forms\Set $set, Forms\Get $get) {
if ($state == 'tier'){
// show tier column
}
}),
Select::make('tier')
->required()
->options([
1 => 'Tier 1',
2 => 'Tier 2',
3 => 'Tier 3',
])
->default(1)
TIA 🙏
4 replies
FFilament
Created by Chrysippus on 8/12/2023 in #❓┊help
How to Render/Show image on table action view modal?
Hello, I have this image for proof that the customer receives the order, how can I render/show it on the table action view modal??
7 replies
FFilament
Created by Chrysippus on 8/11/2023 in #❓┊help
Data polling
Hello, I have statsoverview with a bunch of cards inside for the dashboard , is it possible to set the polling data for speicifc card inside statsoverview?
2 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 have this Notification where after customer orders speicifc product from the customer-side it notifies the admin using notification , just like the notification on the demo-filament.php. However I disabled the editing of the orders. So what I want to achieve instead is to show the ordered data through modal using ViewAction?? is this possible? btw im not using filament for customer-side, only on admin side TIA 🙂
36 replies
FFilament
Created by Chrysippus on 7/31/2023 in #❓┊help
How to sort resource table into latest()?
I'm trying to set the default of data of my resource table to be latest or orderByDesc but its not working
protected function getTableQuery(): Builder
{
return Activity::query()->latest();
}
protected function getTableQuery(): Builder
{
return Activity::query()->latest();
}
am I missing something?
6 replies
FFilament
Created by Chrysippus on 7/26/2023 in #❓┊help
admin panel errors on production
Hello guys, so I hosted my app on sharedhosting and I encountered this error on admin panel which kinda tricky since it only appears on production and I have this image on console log also comes on error trigger. I tried .htaccess issues but didnt it didnt work. Thankyou in advance!!
62 replies
FFilament
Created by Chrysippus on 7/20/2023 in #❓┊help
how to create logs for users?
Hello good day, I want to create a logs where I'll record every time someone logged-in/logged-out etc. a table for logs where it has columns that are [ACTIONS | TIMESTAMPP] does filament have a feature/plugins where I can just create another custom page for logs? or I need to do it manually? e.g, admin/employee logged-in [time_stamps][mobile/desktop] etc.
3 replies
FFilament
Created by Chrysippus on 7/11/2023 in #❓┊help
Slug causing error if it cant catch up to the product name
2 replies
FFilament
Created by Chrysippus on 7/8/2023 in #❓┊help
Table columns footer not being calculated using getTableContentFooter()
2 replies
FFilament
Created by Chrysippus on 7/8/2023 in #❓┊help
Render/Re-render table and chart based on select option from CUSTOM PAGE
9 replies
FFilament
Created by Chrysippus on 7/7/2023 in #❓┊help
table for custom page
I created a custom page just to display a table of my OrderResource but I want to filter it where it only shows "order completed" basically I created this custom page just for SalesReport but I dont know what is the best way to have a table on my custom page TIA.
51 replies
FFilament
Created by Chrysippus on 7/6/2023 in #❓┊help
How to make widget chart to be live update also
31 replies
FFilament
Created by Chrysippus on 7/5/2023 in #❓┊help
How to put calendar widget on Calendar custom page?
First time creating a custom Calendar page without a resource, I just want a calendar to showcase the orders on every possible days. I already created a CalendarWidget using this plugin https://github.com/saade/filament-fullcalendar this will make a CalendarWidget on dashboard but idk how to change the view from dashboard in to my Calendar custom page
6 replies
FFilament
Created by Chrysippus on 7/4/2023 in #❓┊help
Get overall total from outside repeater
20 replies
FFilament
Created by Chrysippus on 6/28/2023 in #❓┊help
Maximum execution time of 60 seconds exceeded
I have this Observer where I want to get the total whenever I create or update on my OrderResource It's working but taking a long time to process and gets error at the end of the process "maximum execution time error of 60 seconds"
35 replies
FFilament
Created by Chrysippus on 6/26/2023 in #❓┊help
Override specific error
11 replies
FFilament
Created by Chrysippus on 6/21/2023 in #❓┊help
reposition logout header into sidebar footer
2 replies
FFilament
Created by Chrysippus on 6/8/2023 in #❓┊help
Update specific column after selecting on SelectColumn
So this is my code each of the selection have a seperate column for time_stamp, so if I select Order Created, the column order_created_time_stamp should be updated. How can I achieve that?
SelectColumn::make('order_status')
->options([
'Order Created' => 'Order Created',
'Processing' => 'Processing',
'Order En Route' => 'Order En Route',
'Order Arrived' => 'Order Arrived',
'Order Completed' => 'Order Completed',
'To Received' => 'To Received',
'Received' => 'Received',
])
->rules(['required'])
->disablePlaceholderSelection(),
SelectColumn::make('order_status')
->options([
'Order Created' => 'Order Created',
'Processing' => 'Processing',
'Order En Route' => 'Order En Route',
'Order Arrived' => 'Order Arrived',
'Order Completed' => 'Order Completed',
'To Received' => 'To Received',
'Received' => 'Received',
])
->rules(['required'])
->disablePlaceholderSelection(),
this is kinda what i want to do
$status = $record->order_status;

$timestamps = [
'Order Created' => 'order_created_time_stamp',
'Processing' => 'processing_time_stamp',
'Order En Route' => 'order_en_route_time_stamp',
'Order Arrived' => 'order_arrived_time_stamp',
'Order Completed' => 'order_completed_time_stamp',
'To Receive' => 'to_received_time_stamp',
'Received' => 'received_time_stamp',
];

$update = DB::table('orders')
->where('id', $record->id)
->update([$timestamps[$status] => ($status === $record->order_status) ? Carbon::now() : null]);

return $update;
$status = $record->order_status;

$timestamps = [
'Order Created' => 'order_created_time_stamp',
'Processing' => 'processing_time_stamp',
'Order En Route' => 'order_en_route_time_stamp',
'Order Arrived' => 'order_arrived_time_stamp',
'Order Completed' => 'order_completed_time_stamp',
'To Receive' => 'to_received_time_stamp',
'Received' => 'received_time_stamp',
];

$update = DB::table('orders')
->where('id', $record->id)
->update([$timestamps[$status] => ($status === $record->order_status) ? Carbon::now() : null]);

return $update;
5 replies
FFilament
Created by Chrysippus on 4/19/2023 in #❓┊help
validation
3 replies