Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Admin Panel #49

Open
ArslanKamchybekov opened this issue Oct 27, 2024 · 0 comments
Open

Admin Panel #49

ArslanKamchybekov opened this issue Oct 27, 2024 · 0 comments
Assignees

Comments

@ArslanKamchybekov
Copy link
Collaborator

Task: Design an Admin Panel on the Profile Page for Creating Insurance and Services

Objective:

Implement a user-friendly admin panel on the profile page where users with the admin role can create new insurance plans and services. The panel should include forms for inputting relevant details and should call backend endpoints to create new insurance plans and services.


Steps:

  1. Create the Admin Panel Component
    • Design a new component (e.g., AdminPanel) within the profile page to serve as the admin interface for creating insurance plans and services.
    • Display the panel only if the logged-in user has an admin role (use useAuth or similar logic to verify the user’s role).
  2. Build Forms for Insurance and Service Creation
    • Inside the admin panel, create two sections:
      • Create Insurance: A form that includes fields for details like insurance name, monthly premium, coverage, description, etc.
      • Create Service: A form that includes fields for details like service name, cost, description, location, eligibility, etc.
    • Add a submit button for each form to trigger the creation process.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants