syed_eer
syed_eer
FFilament
Created by syed_eer on 2/23/2025 in #❓┊help
How to Use ->relationship() with $get() in $form?
I will appriciate if you could give some insight on this query inside ->searcheable() ->searchable(query: function (Builder $query, string $search): Builder { return $query->leftJoin('vehicles', function($join) { $join->on('vehicles.id', '=', 'quotations.vehicle_id') ->whereColumn('vehicles.customer_id', '=', 'quotations.customer_id'); }) ->leftJoin('guest_customers', 'guest_customers.id', '=', 'quotations.guest_customer_id') ->select('quotations.*', 'vehicles.plate_no as vehicle_plate', 'guest_customers.gst_plate_no as guest_plate') ->where('vehicles.plate_no', 'like', "%{$search}%") ->orWhere('guest_customers.gst_plate_no', 'like', "%{$search}%"); }) but it gives error
6 replies
FFilament
Created by syed_eer on 2/23/2025 in #❓┊help
How to Use ->relationship() with $get() in $form?
thanks @toeknee for your reply. I use this ->relationship('guestCustomer', condition: fn ($get) => !empty($get('guestCustomer.gst_customer_name'))) and it works.
6 replies
FFilament
Created by syed_eer on 2/4/2025 in #❓┊help
Filament Repeater Not Passing Foreign Key (make_id) - SQL Error 1364
without repeaters meaning, with select & textinput fields. like this and it is working fine.
5 replies
FFilament
Created by syed_eer on 2/4/2025 in #❓┊help
Filament Repeater Not Passing Foreign Key (make_id) - SQL Error 1364
@Dennis Koch Thank you for your reply I tried that as well like this Forms\Components\Select::make('make_id') ->label('Vehicle Make') ->preload() ->options(\App\Models\VehicleMake::pluck('make_name', 'id')) ->required() ->searchable() ->reactive(), but still the same error. It works fine without Repeaters, I dont know what is that i'm doing wrong with repeaters.
5 replies
FFilament
Created by syed_eer on 11/22/2023 in #❓┊help
Pagination not showing in dashboard table widget
No description
6 replies
FFilament
Created by syed_eer on 10/22/2023 in #❓┊help
Can I make getTab() in 2 lines?
No description
11 replies
FFilament
Created by syed_eer on 10/22/2023 in #❓┊help
Can I make getTab() in 2 lines?
Thank you for your reply @sm.20 & @awcodes . Not possible! I felt so. I tried many things like giving array1 and array2, then using array_merge(array1, array2), but no success."
11 replies
FFilament
Created by syed_eer on 10/22/2023 in #❓┊help
Can I make getTab() in 2 lines?
No description
11 replies
FFilament
Created by syed_eer on 10/20/2023 in #❓┊help
Filament v3 has active tab filters, can I have the same in v2 also?
thanks for your reply @archilex , sure I will check it out.
4 replies
FFilament
Created by syed_eer on 9/9/2023 in #❓┊help
how can I customise the section's width?
Yeah! now this works, thank you so much @ilhamdimasprayudha .
9 replies
FFilament
Created by syed_eer on 9/9/2023 in #❓┊help
how can I customise the section's width?
Placeholder::make('course_selected')->label('Course Selected')->disabled()->content( fn ($get) => $get('course_selected') )->extraAttributes(['class' => 'text-blue-500']) and Section::make('Student Summary') ->columnSpan(1) ->schema([ ])->extraAttributes(['class' => 'text-blue-500']), tried both ways, its not working.
9 replies
FFilament
Created by syed_eer on 9/9/2023 in #❓┊help
how can I customise the section's width?
how about giving the color to text in this placeholder?
9 replies
FFilament
Created by syed_eer on 9/9/2023 in #❓┊help
how can I customise the section's width?
@ilhamdimasprayudha thanks for your reply. Amazing that works like charm.
9 replies
FFilament
Created by syed_eer on 9/5/2023 in #❓┊help
Text or TextInput fiedl can be dynamically populated?
Sure! I will move forward and let you know. @pboivin, thank you so much for your kind help.
46 replies
FFilament
Created by syed_eer on 9/5/2023 in #❓┊help
Text or TextInput fiedl can be dynamically populated?
so what do you suggest? which one should I use?
46 replies
FFilament
Created by syed_eer on 9/5/2023 in #❓┊help
Text or TextInput fiedl can be dynamically populated?
wow, this also works, Select::make('student_id') ->label('Student Name') ->options(Student::all()->pluck('name', 'id')->toArray())->reactive()->live() ->afterStateUpdated(function ($state, $set) { if ($state) { $set('fee_plan_name', Student::find($state)->fee_plan->name); } else { $set('fee_plan_name', ''); } })->searchable(), TextInput::make('fee_plan_name')->disabled(),
46 replies
FFilament
Created by syed_eer on 9/5/2023 in #❓┊help
Text or TextInput fiedl can be dynamically populated?
with your kind help, I think somehow I got this working, could you please check this code. Select::make('student_id') ->label('Student Name') ->options(Student::all()->pluck('name', 'id')->toArray())->reactive()->live() ->afterStateUpdated(function ($state, $set) { if ($state) { $fPId = Student::find($state)->fee_plan_id; $FPidMatch = FeePlan::where('id', $fPId)->get(); $stdFPname = $FPidMatch->pluck('name'); $set('fee_plan_name', $stdFPname); } else { $set('fee_plan_name', ''); } })->searchable(), TextInput::make('fee_plan_name')->disabled(),
46 replies
FFilament
Created by syed_eer on 9/5/2023 in #❓┊help
Text or TextInput fiedl can be dynamically populated?
yeah, that's right, I just need whenever the student name gets selected from the dropdown, the fee_plan_name changes accordingly (based on the fee_plan selected by this particular student in the students table).
46 replies
FFilament
Created by syed_eer on 9/5/2023 in #❓┊help
Text or TextInput fiedl can be dynamically populated?
@pboivin thank you so very much for your reply. Do you mean I have to make more than one select, first select will give student_id with this I can get fee_plan_id in the second select?
46 replies
FFilament
Created by syed_eer on 9/5/2023 in #❓┊help
Text or TextInput fiedl can be dynamically populated?
I would be grateful if someone could help me with this issue.
46 replies