MuhamDaily 🅥
MuhamDaily 🅥
FFilament
Created by CyladeJS on 5/18/2024 in #❓┊help
Autofill on TextInput
I also experienced the same thing
7 replies
FFilament
Created by CyladeJS on 5/18/2024 in #❓┊help
Autofill on TextInput
Can you help me? I don't really understand about afterStateUpdate, so I need a reference
7 replies
FFilament
Created by MuhamDaily 🅥 on 5/4/2024 in #❓┊help
Select Condition
Thank u
4 replies
FFilament
Created by MuhamDaily 🅥 on 12/14/2023 in #❓┊help
Custom Column Filament
It's been resolved, thanks to the help you gave. This is the code I fixed
TextColumn::make('total_price')
->getStateUsing(function (Order $record) {
// Assuming you have a 'hasMany' relationship named 'items'
$orderItems = $record->items;

// Calculate total_price by summing up the total_price attributeach OrderItem
$totalPrice = $orderItems->sum('total_price');

return $totalPrice;
}),
TextColumn::make('total_price')
->getStateUsing(function (Order $record) {
// Assuming you have a 'hasMany' relationship named 'items'
$orderItems = $record->items;

// Calculate total_price by summing up the total_price attributeach OrderItem
$totalPrice = $orderItems->sum('total_price');

return $totalPrice;
}),
16 replies
FFilament
Created by MuhamDaily 🅥 on 12/14/2023 in #❓┊help
Custom Column Filament
I'm just learning to use filament, so I don't really understand it
16 replies
FFilament
Created by MuhamDaily 🅥 on 12/14/2023 in #❓┊help
Custom Column Filament
Is there no other way? so that the OrderResource table can retrieve an OrderItem?
16 replies
FFilament
Created by MuhamDaily 🅥 on 12/14/2023 in #❓┊help
Custom Column Filament
No description
16 replies
FFilament
Created by MuhamDaily 🅥 on 12/14/2023 in #❓┊help
Custom Column Filament
No description
16 replies
FFilament
Created by MuhamDaily 🅥 on 12/14/2023 in #❓┊help
Custom Column Filament
I got an error message:
App\Filament\Resources\OrderResource::App\Filament\Resources\{closure}(): Argument #1 ($record) must be of type App\Models\OrderItem, App\Models\Order given, called in D:\filament\laundry-corner\vendor\filament\support\src\Concerns\EvaluatesClosures.php on line 35
App\Filament\Resources\OrderResource::App\Filament\Resources\{closure}(): Argument #1 ($record) must be of type App\Models\OrderItem, App\Models\Order given, called in D:\filament\laundry-corner\vendor\filament\support\src\Concerns\EvaluatesClosures.php on line 35
16 replies