Creates an instance of CourseCardComponent.
Service for course-related operations
Angular Material dialog service
Angular router for navigation
Course data to display in the card
Flag indicating if the current user is a teacher, used to show/hide teacher actions
Handles the course deletion action. Only available for teachers who own the course. Shows success notification and refreshes the page upon successful deletion.
Navigates to the detailed view of the course. Triggered when the user clicks on the course card.
Refreshes the current page to show updated course data. Uses a navigation trick to force Angular to reload the component.
Component for displaying an individual course in a card format. Used in the courses list to present each course with its basic information and relevant actions based on user role.