backend:
  name: github
  repo: formics-io/formics-astro
  branch: main
  base_url: https://formics-astro.pages.dev
  auth_endpoint: api/auth

  publish_mode: editorial_workflow

media_folder: "public/cms/images"
public_folder: "/cms/images"

collections:
  # ---------------------- blog Collection ------------------------
  - name: "blog"
    label: "Blog"
    folder: "src/content/blog"
    create: true
    slug: "{{slug}}"
    fields:
      - {label: "Title", name: "title", widget: "string"}
      - {
          label: "Meta Title",
          name: "metaTitle",
          widget: "string",
          required: false,
        }
      - {
          label: "Meta Description",
          name: "metaDescription",
          widget: "text",
          required: false,
        }
      - {label: "Image", name: "image", widget: "image"}
      - {label: "Category", name: "category", widget: "string"}
      - {label: "Author", name: "author", widget: "string"}
      - {label: "Read Time", name: "readTime", widget: "string"}
      - {label: "Body", name: "body", widget: "markdown"}

  # ---------------------- Services Collection ------------------------
  - name: "services"
    label: "Services"
    folder: "src/content/services"
    create: true
    slug: "{{slug}}"
    fields:
      - {label: "Title", name: "title", widget: "string"}
      - {
          label: "Meta Title",
          name: "metaTitle",
          widget: "string",
          required: false,
        }
      - {
          label: "Meta Description",
          name: "metaDescription",
          widget: "text",
          required: false,
        }
      - {label: "Icon", name: "icon", widget: "image"}
      - {label: "Short Description", name: "shortDescription", widget: "string"}
      - {label: "Summary", name: "summary", widget: "text"}
      - {label: "Summary Image", name: "summary_image", widget: "image"}
      - {label: "Hero Description", name: "hero_description", widget: "text"}
      - label: "Features"
        name: "features"
        widget: "list"
      - label: "Sub Services"
        name: "subServices"
        widget: "list"
        fields:
          - {label: "Image", name: "image", widget: "image"}
          - {label: "Title", name: "title", widget: "string"}
          - {label: "Description", name: "desc", widget: "text"}
      - label: "FAQs"
        name: "faqs"
        widget: "list"
        required: false
        fields:
          - {label: "Question", name: "question", widget: "string"}
          - {label: "Answer", name: "answer", widget: "text"}

  # ---------------------- Industries Collection ------------------------
  - name: "industries"
    label: "Industries"
    folder: "src/content/industries"
    create: true
    slug: "{{slug}}"
    fields:
      - {label: "Title", name: "title", widget: "string"}
      - {
          label: "Meta Title",
          name: "metaTitle",
          widget: "string",
          required: false,
        }
      - {
          label: "Meta Description",
          name: "metaDescription",
          widget: "text",
          required: false,
        }
      - {label: "Icon", name: "icon", widget: "image"}
      - {label: "Summary", name: "summary", widget: "text"}
      - label: "Hero Section"
        name: "hero"
        widget: "object"
        fields:
          - {label: "Hero Icon", name: "hero_icon", widget: "image"}
          - {
              label: "Overline Title",
              name: "hero_overline_title",
              widget: "string",
            }
          - {label: "Hero Title", name: "hero_title", widget: "string"}
          - {
              label: "Hero Description",
              name: "hero_description",
              widget: "text",
            }
          - {label: "Hero Image", name: "hero_image", widget: "image"}
      - label: "Services Section"
        name: "services"
        widget: "object"
        fields:
          - {label: "Section Title", name: "services_title", widget: "string"}
          - label: "Services Items"
            name: "items"
            widget: "list"
            fields:
              - {label: "Title", name: "title", widget: "string"}
              - {label: "Description", name: "description", widget: "text"}
              - {label: "Icon", name: "icon", widget: "image"}
      - label: "Solutions Section"
        name: "solutions"
        widget: "object"
        fields:
          - {label: "Section Title", name: "solutions_title", widget: "string"}
          - label: "Solutions List"
            name: "items"
            widget: "list"
            field: {label: "Solution", name: "solution", widget: "string"}
      - label: "Why Choose Section"
        name: "whyChoose"
        widget: "object"
        fields:
          - {label: "Section Title", name: "section_title", widget: "string"}
          - label: "Items"
            name: "items"
            widget: "list"
            fields:
              - {label: "Icon", name: "icon", widget: "image", required: false}
              - {label: "Title", name: "title", widget: "string"}
              - {label: "Description", name: "description", widget: "text"}
      - label: "FAQs"
        name: "faqs"
        widget: "object"
        fields:
          - {label: "FAQ Title", name: "faq_title", widget: "string"}
          - label: "FAQ Items"
            name: "items"
            widget: "list"
            fields:
              - {label: "Question", name: "question", widget: "string"}
              - {label: "Answer", name: "answer", widget: "text"}
      - label: "CTA Section"
        name: "cta"
        widget: "object"
        fields:
          - {label: "Title", name: "title", widget: "string"}
          - {label: "Description", name: "description", widget: "text"}

  # ---------------------- Portfolio Collection ------------------------
  - name: "portfolio"
    label: "Portfolio"
    folder: "src/content/portfolio"
    create: true
    slug: "{{slug}}"
    fields:
      - {label: "Title", name: "title", widget: "string"}
      - label: "Filters"
        name: "filters"
        widget: "relation"
        collection: "portfolioCategories"
        search_fields: ["title"]
        value_field: "slug"
        display_fields: ["title"]
        multiple: true
        required: false
      - {
          label: "Meta Title",
          name: "metaTitle",
          widget: "string",
          required: false,
        }
      - {
          label: "Meta Description",
          name: "metaDescription",
          widget: "text",
          required: false,
        }
      - {label: "Industry", name: "industry", widget: "string"}
      - {label: "Cover Image", name: "coverImg", widget: "image"}
      - {label: "Logo", name: "logo", widget: "image"}
      - {label: "Summary", name: "summary", widget: "text"}
      - label: "Hero"
        name: "hero"
        widget: "object"
        fields:
          - {label: "Hero Image", name: "heroImg", widget: "image"}
          - {
              label: "Hero Description",
              name: "hero_description",
              widget: "text",
            }
      - label: "Project Overview"
        name: "projectOverview"
        widget: "markdown"
      - {label: "Client", name: "client", widget: "string"}
      - {label: "Timeline", name: "timeline", widget: "string"}
      - {label: "Services", name: "services", widget: "list"}
      - {label: "Platforms", name: "platforms", widget: "list"}
      - label: "Case Studies"
        name: "caseStudies"
        widget: "list"
        fields:
          - {label: "Challenge", name: "challenge", widget: "text"}
          - {label: "Solution", name: "solution", widget: "text"}
      - label: "Features"
        name: "features"
        widget: "list"
        fields:
          - {label: "Title", name: "title", widget: "string"}
          - {label: "Description", name: "description", widget: "text"}
          - {label: "Image", name: "image", widget: "image"}
      - label: "Gallery"
        name: "gallery"
        widget: "list"
        field: {label: "Image", name: "image", widget: "image"}
      - {
          label: "Featured",
          name: "featured",
          widget: "boolean",
          required: false,
        }
      - {label: "Order", name: "order", widget: "number", required: false}
      - name: "liveUrl"
        label: "Live Website URL"
        widget: "string"
        required: false
        hint: "Enter the live website URL, e.g. https://example.com"

  # ---------------------- Technology Categories Collection ------------------------
  - name: "technology-categories"
    label: "Technology Categories"
    folder: "src/content/technology-categories"
    create: true
    slug: "{{slug}}"
    fields:
      - {label: "Name", name: "name", widget: "string"}
      - {label: "Order", name: "order", widget: "number", default: 1}
      - label: "Shown in Menu"
        name: "shownInMenu"
        widget: "boolean"
        default: false
  # ---------------------- Hire Developers Collection ------------------------
  - name: "hire-developers"
    label: "Hire Developers"
    folder: "src/content/hire-developers"
    create: true
    slug: "{{slug}}"
    fields:
      - {label: "Title", name: "title", widget: "string"}
      - {
          label: "Meta Title",
          name: "metaTitle",
          widget: "string",
          required: false,
        }
      - {
          label: "Meta Description",
          name: "metaDescription",
          widget: "text",
          required: false,
        }
      - {label: "Slug", name: "slug", widget: "string"}
      - label: "Category"
        name: "category"
        widget: "relation"
        collection: "technology-categories"
        search_fields: ["name"]
        value_field: "name"
        display_fields: ["name"]
      - {label: "Icon", name: "icon", widget: "image"}
      - label: "Hero Section"
        name: "hero"
        widget: "object"
        fields:
          - label: "Hero Icon"
            name: "hero_icon"
            widget: "image"
            required: false
          - {label: "Title", name: "hero_title", widget: "string"}
          - {label: "Tagline", name: "hero_tagline", widget: "string"}
          - {label: "Description", name: "hero_description", widget: "text"}
      # Why Technology Section
      - label: "Why Technology"
        name: "whyTechnology"
        widget: "object"
        required: false
        fields:
          - {
              label: "Section Badge",
              name: "badge",
              widget: "string",
              required: false,
            }
          - {label: "Title", name: "title", widget: "string", required: false}
          - {
              label: "Description",
              name: "description",
              widget: "text",
              required: false,
            }
          - label: "Benefits"
            name: "items"
            widget: "list"
            required: false
            fields:
              - {
                  label: "Title",
                  name: "title",
                  widget: "string",
                  required: false,
                }
              - {
                  label: "Description",
                  name: "description",
                  widget: "text",
                  required: false,
                }
      - label: "Use Cases Section"
        name: "useCases"
        widget: "object"
        fields:
          - {label: "Section Title", name: "section_title", widget: "string"}
          - {
              label: "Section Subtitle",
              name: "section_subtitle",
              widget: "text",
            }
          - label: "Items"
            name: "items"
            widget: "list"
            fields:
              - {label: "Title", name: "title", widget: "string"}
              - {label: "Description", name: "description", widget: "text"}
              - {label: "Image", name: "image", widget: "image"}
      - label: "Why Hire Section"
        name: "whyHire"
        widget: "object"
        fields:
          - {label: "Section Title", name: "section_title", widget: "string"}
          - {
              label: "Section Subtitle",
              name: "section_subtitle",
              widget: "text",
            }
          - label: "Items"
            name: "items"
            widget: "list"
            fields:
              - {label: "Icon", name: "icon", widget: "string"}
              - {label: "Title", name: "title", widget: "string"}
              - {label: "Description", name: "desc", widget: "text"}
      - label: "Testimonials"
        name: "testimonials"
        widget: "list"
        fields:
          - {label: "Name", name: "name", widget: "string"}
          - {label: "Role", name: "role", widget: "string"}
          - {label: "Image", name: "image", widget: "image"}
          - {label: "Text", name: "text", widget: "text"}
      - label: "CTA"
        name: "cta"
        widget: "object"
        fields:
          - {label: "Title", name: "title", widget: "string"}
          - {label: "Subtitle", name: "subtitle", widget: "text"}
          - label: "Points"
            name: "points"
            widget: "list"
            field: {label: "Point", name: "point", widget: "string"}
      - label: "FAQs"
        name: "faqs"
        widget: "list"
        fields:
          - {label: "Question", name: "question", widget: "string"}
          - {label: "Answer", name: "answer", widget: "text"}
      - label: "Technical Expertise"
        name: "technicalExpertise"
        widget: "object"
        required: false
        fields:
          - {label: "Title", name: "title", widget: "string", required: false}
          - label: "Description"
            name: "description"
            widget: "text"
            required: false
          - label: "Items"
            name: "items"
            widget: "list"
            required: false
            fields:
              - label: "Category"
                name: "category"
                widget: "string"
              - label: "Skills"
                name: "skills"
                widget: "list"
                field: {label: "Skill", name: "skill", widget: "string"}

  #---------------------------------------  Technologies collection ------------------------------------
  - name: "technologies"
    label: "Technologies"
    folder: "src/content/technologies"
    create: true
    slug: "{{slug.slug}}"
    fields:
      - {label: "Title", name: "title", widget: "string"}
      - {
          label: "Meta Title",
          name: "metaTitle",
          widget: "string",
          required: false,
        }
      - {
          label: "Meta Description",
          name: "metaDescription",
          widget: "text",
          required: false,
        }
      - {label: "Slug", name: "slug", widget: "string"}
      - label: "Category"
        name: "category"
        widget: "relation"
        collection: "technology-categories"
        search_fields: ["name"]
        value_field: "name"
        display_fields: ["name"]

      - {label: "Icon", name: "icon", widget: "image"}
      - {
          label: "Has Detail Page",
          name: "hasDetail",
          widget: "boolean",
          default: true,
          hint: "Enable for full technology page",
        }
      - {label: "Summary", name: "summary", widget: "text"}
      # 🔥 HERO
      - label: "Hero"
        name: "hero"
        widget: "object"
        required: false
        fields:
          - {label: "Title", name: "title", widget: "string", required: false}
          - {
              label: "Description",
              name: "description",
              widget: "text",
              required: false,
            }
          - {label: "Image", name: "image", widget: "image", required: false}
      - {label: "Intro", name: "intro", widget: "text", required: false}
      # 🔥 WHY
      - label: "Why"
        name: "why"
        widget: "list"
        required: false
        fields:
          - {label: "Point", name: "point", widget: "string"}
      # 🔥 SERVICES
      - label: "Services"
        name: "services"
        widget: "list"
        required: false
        fields:
          - {label: "Icon", name: "icon", widget: "image", required: false}
          - {label: "Title", name: "title", widget: "string"}
          - {label: "Description", name: "desc", widget: "text"}
      # 🔥 USE CASES
      - label: "Use Cases"
        name: "useCases"
        widget: "list"
        required: false
        fields:
          - {label: "Use Case", name: "useCase", widget: "string"}
      # 🔥 CTA
      - label: "CTA"
        name: "cta"
        widget: "object"
        required: false
        fields:
          - {label: "Title", name: "title", widget: "string", required: false}
          - {
              label: "Description",
              name: "description",
              widget: "text",
              required: false,
            }
      # 🔥 FAQ
      - label: "FAQs"
        name: "faqs"
        widget: "list"
        required: false
        fields:
          - {label: "Question", name: "question", widget: "string"}
          - {label: "Answer", name: "answer", widget: "text"}
      - {label: "Order", name: "order", widget: "number", required: false}

  #---------------------- Clients Collection ------------------------
  - name: "clients"
    label: "Clients"
    folder: "src/content/clients"
    create: true
    slug: "{{slug}}"

    fields:
      - {label: "Client Name", name: "name", widget: "string"}
      - {label: "Logo", name: "logo", widget: "image"}

  #------------------------ testimonials collection ------------------------
  - name: "testimonials"
    label: "Testimonials"
    folder: "src/content/testimonials"
    create: true
    slug: "{{fields.name}}"
    fields:
      - {label: "Name", name: "name", widget: "string"}
      - {label: "Quote", name: "text", widget: "text"}
      - {label: "Role", name: "role", widget: "string"}
      - {label: "Avatar", name: "avatar", widget: "image"}

  #-------------------------- Resources collection ------------------------
  - name: "resources"
    label: "Resources"
    label_singular: "Resource"
    folder: "src/content/resources"
    create: true
    slug: "{{slug}}"
    identifier_field: "title"
    fields:
      - {label: "Title", name: "title", widget: "string"}
      - {label: "Slug", name: "slug", widget: "string"}
      - {label: "Description", name: "description", widget: "text"}
      - label: "Category"
        name: "category"
        widget: "select"
        options:
          - AI
          - Development
          - Design
          - Startup
          - Mobile
          - SaaS
          - Marketing
      - {label: "Featured", name: "featured", widget: "boolean", default: false}
      - {label: "Cover Image", name: "cover", widget: "image"}
      - {label: "Pages", name: "pages", widget: "number", default: 20}
      - {
          label: "Reading Time",
          name: "readingTime",
          widget: "string",
          default: "10 min",
        }
      - {label: "Updated", name: "updated", widget: "string"}
      - {label: "File Type", name: "fileType", widget: "string", default: "PDF"}
      - {label: "Download File", name: "downloadFile", widget: "file"}
      - label: "FAQ"
        name: "faq"
        widget: "list"
        fields:
          - {label: "Question", name: "question", widget: "string"}
          - {label: "Answer", name: "answer", widget: "text"}
      - {
          label: "SEO Title",
          name: "seoTitle",
          widget: "string",
          required: false,
        }
      - {
          label: "SEO Description",
          name: "seoDescription",
          widget: "text",
          required: false,
        }
  #----------------------------------------------- portfolio categories -------------------------
  - name: "portfolioCategories"
    label: "Portfolio Categories"
    label_singular: "Portfolio Category"
    folder: "src/content/portfolioCategories"
    create: true
    slug: "{{slug}}"
    identifier_field: title

    fields:
      - label: "Title"
        name: "title"
        widget: "string"

      - label: "Slug"
        name: "slug"
        widget: "string"
        hint: "Used in filtering. Example: web-apps"

      - label: "Order"
        name: "order"
        widget: "number"
        value_type: "int"
        default: 0

      - label: "Image"
        name: "image"
        widget: "image"
