diff --git a/app/Filament/Resources/AppointmentResource.php b/app/Filament/Resources/AppointmentResource.php new file mode 100644 index 00000000..2c2ade58 --- /dev/null +++ b/app/Filament/Resources/AppointmentResource.php @@ -0,0 +1,64 @@ +schema([ + // + ]); + } + + public static function table(Table $table): Table + { + return $table + ->columns([ + // + ]) + ->filters([ + // + ]) + ->actions([ + Tables\Actions\EditAction::make(), + ]) + ->bulkActions([ + Tables\Actions\BulkActionGroup::make([ + Tables\Actions\DeleteBulkAction::make(), + ]), + ]); + } + + public static function getRelations(): array + { + return [ + // + ]; + } + + public static function getPages(): array + { + return [ + 'index' => Pages\ListAppointments::route('/'), + 'create' => Pages\CreateAppointment::route('/create'), + 'edit' => Pages\EditAppointment::route('/{record}/edit'), + ]; + } +} diff --git a/app/Filament/Resources/AppointmentResource/Pages/CreateAppointment.php b/app/Filament/Resources/AppointmentResource/Pages/CreateAppointment.php new file mode 100644 index 00000000..1ba20b70 --- /dev/null +++ b/app/Filament/Resources/AppointmentResource/Pages/CreateAppointment.php @@ -0,0 +1,12 @@ +schema([ + // + ]); + } + + public static function table(Table $table): Table + { + return $table + ->columns([ + // + ]) + ->filters([ + // + ]) + ->actions([ + Tables\Actions\EditAction::make(), + ]) + ->bulkActions([ + Tables\Actions\BulkActionGroup::make([ + Tables\Actions\DeleteBulkAction::make(), + ]), + ]); + } + + public static function getRelations(): array + { + return [ + // + ]; + } + + public static function getPages(): array + { + return [ + 'index' => Pages\ListPatientRecords::route('/'), + 'create' => Pages\CreatePatientRecord::route('/create'), + 'edit' => Pages\EditPatientRecord::route('/{record}/edit'), + ]; + } +} diff --git a/app/Filament/Resources/PatientRecordResource/Pages/CreatePatientRecord.php b/app/Filament/Resources/PatientRecordResource/Pages/CreatePatientRecord.php new file mode 100644 index 00000000..3ba1879a --- /dev/null +++ b/app/Filament/Resources/PatientRecordResource/Pages/CreatePatientRecord.php @@ -0,0 +1,12 @@ +schema([ + // + ]); + } + + public static function table(Table $table): Table + { + return $table + ->columns([ + // + ]) + ->filters([ + // + ]) + ->actions([ + Tables\Actions\EditAction::make(), + ]) + ->bulkActions([ + Tables\Actions\BulkActionGroup::make([ + Tables\Actions\DeleteBulkAction::make(), + ]), + ]); + } + + public static function getRelations(): array + { + return [ + // + ]; + } + + public static function getPages(): array + { + return [ + 'index' => Pages\ListPatientViews::route('/'), + 'create' => Pages\CreatePatientView::route('/create'), + 'edit' => Pages\EditPatientView::route('/{record}/edit'), + ]; + } +} diff --git a/app/Filament/Resources/PatientViewResource/Pages/CreatePatientView.php b/app/Filament/Resources/PatientViewResource/Pages/CreatePatientView.php new file mode 100644 index 00000000..0eb86739 --- /dev/null +++ b/app/Filament/Resources/PatientViewResource/Pages/CreatePatientView.php @@ -0,0 +1,12 @@ +id(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('patient_views'); + } +};