# BizAround Application Manual

Welcome to the BizAround application manual. This guide will walk you through the essential features of your application, including user registration, adding a business, managing the platform as an administrator, and understanding its connection with Firebase.

## 1. User Account Management

### Creating a User Account

Creating an account is the first step to interacting with the BizAround platform, such as adding a business or leaving a review.

1.  **Navigate to the Registration Page**: From the homepage, click on the **Register** button in the top-right corner.
2.  **Fill in Your Details**: The registration form requires your **Name**, **Email**, and a secure **Password**.
3.  **Submit the Form**: Click the **Create Account** button. Upon successful registration, you will be automatically logged in and redirected.

### Logging In

For returning users:

1.  **Navigate to the Login Page**: Click the **Login** button in the header.
2.  **Enter Credentials**: Provide the email and password you used during registration.
3.  **Submit**: Click the **Login** button to access your account.

## 2. Adding and Managing Your Business

Registered users can list their businesses on the platform.

1.  **Navigate to Your Profile**: Once logged in, click on your user avatar in the header and select **My Profile**. This will take you to your personal dashboard.
2.  **Go to "My Businesses"**: This tab shows all the businesses you currently own.
3.  **Add a New Business**: Click the **Add New Business** button. This opens a comprehensive form where you can input all your business details, including:
    *   Business Name, Description, and Category
    *   Location (Country, City, Address)
    *   Contact Information (Phone, Email, Website)
    *   Opening Hours
    *   Logo and Cover Image
4.  **Submit for Review**: After filling out all the details, click **Submit for Review**. An administrator will review your submission before it goes live on the site.

## 3. Administrator Dashboard

The admin dashboard is a powerful interface for managing the entire platform. Access it by navigating to `/admin` and logging in with administrator credentials.

### Key Admin Functions:

*   **Dashboard Overview**: A summary of key metrics like total businesses, revenue, new users, and pending approvals.
*   **Businesses**: View, edit, and approve or reject new business submissions. You can also manually mark businesses as "Featured".
*   **Users**: Manage all registered users in the system.
*   **Categories**: Create and manage the business categories that users can select from.
*   **Locations**: Manage the countries and cities available in the platform's search filters and forms.
*   **Subscriptions & Plans**: View pending subscription requests and manage the promotion plans that businesses can purchase.
*   **App Settings**: Configure global application details like the app name and contact information.

## 4. Firebase Integration

Your BizAround application is powered by Google Firebase, which provides the backend infrastructure for the app's dynamic features.

*   **Authentication**: Firebase Authentication handles all user sign-ups and logins securely. It manages user sessions and protects user data.
*   **Firestore Database**: All application data—including user profiles, business listings, reviews, categories, and settings—is stored in Firestore, a flexible and scalable NoSQL database.
*   **Security Rules**: Firestore Security Rules are in place to protect your data. They define who can read, write, and update information in the database. For example, only a logged-in user can write a review, and only a business owner or an admin can edit a business listing.
*   **Real-time Updates**: The application uses Firestore's real-time capabilities to instantly show new data. For example, when a new review is submitted, it appears on the business page without needing a page refresh.
