<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
        xmlns:xhtml="http://www.w3.org/1999/xhtml"
        xmlns:image="http://www.google.com/schemas/sitemap-image/1.1">

  <!-- Home Page - Highest Priority -->
  <url>
    <loc>https://abughalia-english.com/</loc>
    <lastmod>2025-01-15</lastmod>
    <changefreq>daily</changefreq>
    <priority>1.0</priority>
    <xhtml:link rel="alternate" hreflang="ar" href="https://abughalia-english.com/?lang=ar"/>
    <xhtml:link rel="alternate" hreflang="en" href="https://abughalia-english.com/?lang=en"/>
    <xhtml:link rel="alternate" hreflang="x-default" href="https://abughalia-english.com/"/>
    <image:image>
      <image:loc>https://abughalia-english.com/media/heros/hero-image.jpg</image:loc>
      <image:title>Tafra LMS - Learning Management System</image:title>
      <image:caption>Advanced Learning Management System for Online Education</image:caption>
    </image:image>
  </url>

  <!-- Authentication Pages - Public Access -->
  <url>
    <loc>https://abughalia-english.com/auth</loc>
    <lastmod>2025-01-15</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.8</priority>
    <xhtml:link rel="alternate" hreflang="ar" href="https://abughalia-english.com/auth?lang=ar"/>
    <xhtml:link rel="alternate" hreflang="en" href="https://abughalia-english.com/auth?lang=en"/>
    <xhtml:link rel="alternate" hreflang="x-default" href="https://abughalia-english.com/auth"/>
  </url>

  <url>
    <loc>https://abughalia-english.com/auth/register</loc>
    <lastmod>2025-01-15</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.8</priority>
    <xhtml:link rel="alternate" hreflang="ar" href="https://abughalia-english.com/auth/register?lang=ar"/>
    <xhtml:link rel="alternate" hreflang="en" href="https://abughalia-english.com/auth/register?lang=en"/>
    <xhtml:link rel="alternate" hreflang="x-default" href="https://abughalia-english.com/auth/register"/>
  </url>

  <url>
    <loc>https://abughalia-english.com/auth/forgot-password</loc>
    <lastmod>2025-01-15</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.5</priority>
    <xhtml:link rel="alternate" hreflang="ar" href="https://abughalia-english.com/auth/forgot-password?lang=ar"/>
    <xhtml:link rel="alternate" hreflang="en" href="https://abughalia-english.com/auth/forgot-password?lang=en"/>
    <xhtml:link rel="alternate" hreflang="x-default" href="https://abughalia-english.com/auth/forgot-password"/>
  </url>

  <!-- Public Discovery Pages -->
  <url>
    <loc>https://abughalia-english.com/search</loc>
    <lastmod>2025-01-15</lastmod>
    <changefreq>weekly</changefreq>
    <priority>0.9</priority>
    <xhtml:link rel="alternate" hreflang="ar" href="https://abughalia-english.com/search?lang=ar"/>
    <xhtml:link rel="alternate" hreflang="en" href="https://abughalia-english.com/search?lang=en"/>
    <xhtml:link rel="alternate" hreflang="x-default" href="https://abughalia-english.com/search"/>
  </url>

  <url>
    <loc>https://abughalia-english.com/leaderboard</loc>
    <lastmod>2025-01-15</lastmod>
    <changefreq>weekly</changefreq>
    <priority>0.7</priority>
    <xhtml:link rel="alternate" hreflang="ar" href="https://abughalia-english.com/leaderboard?lang=ar"/>
    <xhtml:link rel="alternate" hreflang="en" href="https://abughalia-english.com/leaderboard?lang=en"/>
    <xhtml:link rel="alternate" hreflang="x-default" href="https://abughalia-english.com/leaderboard"/>
  </url>

  <url>
    <loc>https://abughalia-english.com/store</loc>
    <lastmod>2025-01-15</lastmod>
    <changefreq>weekly</changefreq>
    <priority>0.8</priority>
    <xhtml:link rel="alternate" hreflang="ar" href="https://abughalia-english.com/store?lang=ar"/>
    <xhtml:link rel="alternate" hreflang="en" href="https://abughalia-english.com/store?lang=en"/>
    <xhtml:link rel="alternate" hreflang="x-default" href="https://abughalia-english.com/store"/>
  </url>

  <!-- Legal Pages - Important for SEO -->
  <url>
    <loc>https://abughalia-english.com/legal</loc>
    <lastmod>2025-01-15</lastmod>
    <changefreq>yearly</changefreq>
    <priority>0.6</priority>
    <xhtml:link rel="alternate" hreflang="ar" href="https://abughalia-english.com/legal?lang=ar"/>
    <xhtml:link rel="alternate" hreflang="en" href="https://abughalia-english.com/legal?lang=en"/>
    <xhtml:link rel="alternate" hreflang="x-default" href="https://abughalia-english.com/legal"/>
  </url>

  <url>
    <loc>https://abughalia-english.com/legal/privacy-policy</loc>
    <lastmod>2025-01-15</lastmod>
    <changefreq>yearly</changefreq>
    <priority>0.6</priority>
    <xhtml:link rel="alternate" hreflang="ar" href="https://abughalia-english.com/legal/privacy-policy?lang=ar"/>
    <xhtml:link rel="alternate" hreflang="en" href="https://abughalia-english.com/legal/privacy-policy?lang=en"/>
    <xhtml:link rel="alternate" hreflang="x-default" href="https://abughalia-english.com/legal/privacy-policy"/>
  </url>

  <url>
    <loc>https://abughalia-english.com/legal/terms-and-conditions</loc>
    <lastmod>2025-01-15</lastmod>
    <changefreq>yearly</changefreq>
    <priority>0.6</priority>
    <xhtml:link rel="alternate" hreflang="ar" href="https://abughalia-english.com/legal/terms-and-conditions?lang=ar"/>
    <xhtml:link rel="alternate" hreflang="en" href="https://abughalia-english.com/legal/terms-and-conditions?lang=en"/>
    <xhtml:link rel="alternate" hreflang="x-default" href="https://abughalia-english.com/legal/terms-and-conditions"/>
  </url>

  <url>
    <loc>https://abughalia-english.com/legal/instructions</loc>
    <lastmod>2025-01-15</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.5</priority>
    <xhtml:link rel="alternate" hreflang="ar" href="https://abughalia-english.com/legal/instructions?lang=ar"/>
    <xhtml:link rel="alternate" hreflang="en" href="https://abughalia-english.com/legal/instructions?lang=en"/>
    <xhtml:link rel="alternate" hreflang="x-default" href="https://abughalia-english.com/legal/instructions"/>
  </url>

  <!-- Dynamic Content Pages - Examples (Replace with actual IDs from database) -->
  
  <!-- Bootcamp/Course Pages - High SEO Value -->
  <url>
    <loc>https://abughalia-english.com/bootcamp/1</loc>
    <lastmod>2025-01-15</lastmod>
    <changefreq>weekly</changefreq>
    <priority>0.9</priority>
    <xhtml:link rel="alternate" hreflang="ar" href="https://abughalia-english.com/bootcamp/1?lang=ar"/>
    <xhtml:link rel="alternate" hreflang="en" href="https://abughalia-english.com/bootcamp/1?lang=en"/>
    <xhtml:link rel="alternate" hreflang="x-default" href="https://abughalia-english.com/bootcamp/1"/>
    <image:image>
      <image:loc>https://abughalia-english.com/media/bootcamps/bootcamp-1-thumb.jpg</image:loc>
      <image:title>Complete Web Development Bootcamp</image:title>
      <image:caption>Learn full-stack web development with modern technologies</image:caption>
    </image:image>
  </url>

  <url>
    <loc>https://abughalia-english.com/bootcamp/2</loc>
    <lastmod>2025-01-15</lastmod>
    <changefreq>weekly</changefreq>
    <priority>0.9</priority>
    <xhtml:link rel="alternate" hreflang="ar" href="https://abughalia-english.com/bootcamp/2?lang=ar"/>
    <xhtml:link rel="alternate" hreflang="en" href="https://abughalia-english.com/bootcamp/2?lang=en"/>
    <xhtml:link rel="alternate" hreflang="x-default" href="https://abughalia-english.com/bootcamp/2"/>
    <image:image>
      <image:loc>https://abughalia-english.com/media/bootcamps/bootcamp-2-thumb.jpg</image:loc>
      <image:title>Data Science and Analytics Bootcamp</image:title>
      <image:caption>Master data analysis and machine learning techniques</image:caption>
    </image:image>
  </url>

  <!-- Instructor Profile Pages - High SEO Value -->
  <url>
    <loc>https://abughalia-english.com/instructor/1</loc>
    <lastmod>2025-01-15</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.8</priority>
    <xhtml:link rel="alternate" hreflang="ar" href="https://abughalia-english.com/instructor/1?lang=ar"/>
    <xhtml:link rel="alternate" hreflang="en" href="https://abughalia-english.com/instructor/1?lang=en"/>
    <xhtml:link rel="alternate" hreflang="x-default" href="https://abughalia-english.com/instructor/1"/>
    <image:image>
      <image:loc>https://abughalia-english.com/media/instructors/instructor-1-profile.jpg</image:loc>
      <image:title>Ahmed Hassan - Web Development Expert</image:title>
      <image:caption>Senior Full Stack Developer with 10+ years experience</image:caption>
    </image:image>
  </url>

  <url>
    <loc>https://abughalia-english.com/instructor/2</loc>
    <lastmod>2025-01-15</lastmod>
    <changefreq>monthly</changefreq>
    <priority>0.8</priority>
    <xhtml:link rel="alternate" hreflang="ar" href="https://abughalia-english.com/instructor/2?lang=ar"/>
    <xhtml:link rel="alternate" hreflang="en" href="https://abughalia-english.com/instructor/2?lang=en"/>
    <xhtml:link rel="alternate" hreflang="x-default" href="https://abughalia-english.com/instructor/2"/>
    <image:image>
      <image:loc>https://abughalia-english.com/media/instructors/instructor-2-profile.jpg</image:loc>
      <image:title>Sarah Ahmed - Data Science Specialist</image:title>
      <image:caption>PhD in Computer Science, AI and Machine Learning Expert</image:caption>
    </image:image>
  </url>

  <!-- Educational Materials - Medium SEO Value -->
  <url>
    <loc>https://abughalia-english.com/material/1</loc>
    <lastmod>2025-01-15</lastmod>
    <changefreq>weekly</changefreq>
    <priority>0.7</priority>
    <xhtml:link rel="alternate" hreflang="ar" href="https://abughalia-english.com/material/1?lang=ar"/>
    <xhtml:link rel="alternate" hreflang="en" href="https://abughalia-english.com/material/1?lang=en"/>
    <xhtml:link rel="alternate" hreflang="x-default" href="https://abughalia-english.com/material/1"/>
  </url>

  <url>
    <loc>https://abughalia-english.com/material/2</loc>
    <lastmod>2025-01-15</lastmod>
    <changefreq>weekly</changefreq>
    <priority>0.7</priority>
    <xhtml:link rel="alternate" hreflang="ar" href="https://abughalia-english.com/material/2?lang=ar"/>
    <xhtml:link rel="alternate" hreflang="en" href="https://abughalia-english.com/material/2?lang=en"/>
    <xhtml:link rel="alternate" hreflang="x-default" href="https://abughalia-english.com/material/2"/>
  </url>

  <!-- Store Product Pages - Commercial Value -->
  <url>
    <loc>https://abughalia-english.com/store/product/1</loc>
    <lastmod>2025-01-15</lastmod>
    <changefreq>weekly</changefreq>
    <priority>0.8</priority>
    <xhtml:link rel="alternate" hreflang="ar" href="https://abughalia-english.com/store/product/1?lang=ar"/>
    <xhtml:link rel="alternate" hreflang="en" href="https://abughalia-english.com/store/product/1?lang=en"/>
    <xhtml:link rel="alternate" hreflang="x-default" href="https://abughalia-english.com/store/product/1"/>
    <image:image>
      <image:loc>https://abughalia-english.com/media/products/product-1-image.jpg</image:loc>
      <image:title>Premium Course Bundle - Web Development</image:title>
      <image:caption>Complete web development course with certificates</image:caption>
    </image:image>
  </url>

  <url>
    <loc>https://abughalia-english.com/store/product/2</loc>
    <lastmod>2025-01-15</lastmod>
    <changefreq>weekly</changefreq>
    <priority>0.8</priority>
    <xhtml:link rel="alternate" hreflang="ar" href="https://abughalia-english.com/store/product/2?lang=ar"/>
    <xhtml:link rel="alternate" hreflang="en" href="https://abughalia-english.com/store/product/2?lang=en"/>
    <xhtml:link rel="alternate" hreflang="x-default" href="https://abughalia-english.com/store/product/2"/>
    <image:image>
      <image:loc>https://abughalia-english.com/media/products/product-2-image.jpg</image:loc>
      <image:title>Data Science Certification Program</image:title>
      <image:caption>Professional data science certification with hands-on projects</image:caption>
    </image:image>
  </url>

  <!-- Error Pages - Lower Priority but Important for SEO -->
  <url>
    <loc>https://abughalia-english.com/404</loc>
    <lastmod>2025-01-15</lastmod>
    <changefreq>yearly</changefreq>
    <priority>0.1</priority>
    <xhtml:link rel="alternate" hreflang="ar" href="https://abughalia-english.com/404?lang=ar"/>
    <xhtml:link rel="alternate" hreflang="en" href="https://abughalia-english.com/404?lang=en"/>
    <xhtml:link rel="alternate" hreflang="x-default" href="https://abughalia-english.com/404"/>
  </url>

  <!-- 
    NOTES FOR IMPLEMENTATION:
    
    1. Replace "https://your-domain.com" with your actual domain
    2. Update lastmod dates to reflect actual content modification dates
    3. Add more dynamic URLs by integrating with your database:
       - Fetch all bootcamp IDs and generate URLs programmatically
       - Fetch all instructor IDs and generate URLs programmatically
       - Fetch all material IDs and generate URLs programmatically
       - Fetch all product IDs and generate URLs programmatically
    
    4. Private routes are excluded from sitemap as they require authentication:
       - /cart
       - /profile
       - /mybootcamps
       - /myexams
       - /myassignments
       - /student-report/*
       - /lecture-viewer/:slug/*
       - /exams/:id
    
    5. Image URLs should be updated with actual image paths from your media folder
    
    6. For dynamic sitemap generation, consider creating a server-side script
       that generates this XML based on your actual database content
    
    7. Submit this sitemap to Google Search Console and Bing Webmaster Tools
    
    8. Update robots.txt to point to the correct sitemap URL
    
    9. Consider creating separate sitemaps for different content types:
       - sitemap-pages.xml (static pages)
       - sitemap-bootcamps.xml (dynamic bootcamp pages)
       - sitemap-instructors.xml (instructor profiles)
       - sitemap-materials.xml (educational materials)
       - sitemap-products.xml (store products)
       
    10. Implement automatic sitemap updates when new content is added
  -->

</urlset>