skpi4u
skpi4u
FFilament
Created by skpi4u on 7/4/2023 in #❓┊help
Relationship Issue
problem solve using afterCreate() :
12 replies
FFilament
Created by skpi4u on 7/4/2023 in #❓┊help
Relationship Issue
@pboivin I will try this tomorrow and let you know if it's work
12 replies
FFilament
Created by skpi4u on 7/4/2023 in #❓┊help
Relationship Issue
@pboivin Any solution to solve this issue
12 replies
FFilament
Created by skpi4u on 7/4/2023 in #❓┊help
Relationship Issue
@pboivin collection_id is mapped with sub_collection table and when record created the collection_id become null in sub_collection table.
12 replies
FFilament
Created by skpi4u on 7/4/2023 in #❓┊help
Relationship Issue
@pboivin
Yes manifest table contains collection_id and sub_collection_id and sub_collections table contains collection_id every thing work perfect but the collection_id is not updated in sub_collections table this is code Forms\Components\Group::make([ TextInput::make('collection')->required(), ])->relationship('collections')->columnSpan('full'), Forms\Components\Group::make([ TextInput::make('sub_collection')->required(), ])->relationship('subCollections') ->columnSpan('full'),
12 replies
FFilament
Created by skpi4u on 7/4/2023 in #❓┊help
Relationship Issue
@toeknee this the create file for manifest
12 replies
FFilament
Created by skpi4u on 7/1/2023 in #❓┊help
remove/hide cancel button from create/edit resources
@hdaklue this create a new save button, i want to hide cancel button
7 replies
FFilament
Created by skpi4u on 7/1/2023 in #❓┊help
remove/hide cancel button from create/edit resources
protected function getFormActions(): array { return [$this->getCancelFormAction()];
}
7 replies
FFilament
Created by skpi4u on 6/15/2023 in #❓┊help
Sum of fee column in table footer
The relation manager file
9 replies
FFilament
Created by skpi4u on 6/15/2023 in #❓┊help
Sum of fee column in table footer
the list resource <?php namespace App\Filament\Resources\StudentResource\Pages; use App\Filament\Resources\StudentResource; use Filament\Pages\Actions; use Filament\Resources\Pages\ListRecords; use Filament\Tables\Filters\Layout; use Closure; use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Builder; use App\Models\Student; use App\Models\StudentCourse; use Illuminate\Contracts\View\View; class ListStudents extends ListRecords { protected static string $resource = StudentResource::class; protected function getActions(): array { return [ Actions\CreateAction::make(), ]; } /protected function getTableFiltersLayout(): ?string { return Layout::AboveContent; }/
protected function getTableQuery(): Builder { return Student::query()->where('status', '=', 1); }
public array $data_list= [ 'calc_columns' => [ 'student_course.admission_fee', 'student_course.fee', 'student_course.advance', ], ]; protected function getTableContentFooter(): ?View { return view('tables.footer.student-footer', $this->data_list); } }
9 replies
FFilament
Created by skpi4u on 6/15/2023 in #❓┊help
Sum of fee column in table footer
it's sum the value but on RelationManager view but not on the StudentList Resource view
9 replies
FFilament
Created by skpi4u on 6/15/2023 in #❓┊help
Sum of fee column in table footer
i have seen this, my fee data has com form relationship, that's why it show only 0. how can show sum of fee for relationship table
9 replies
FFilament
Created by skpi4u on 4/7/2023 in #❓┊help
Attendance manager
using filament AttendanceResource table builder
5 replies