title: Page
tabs:
  main:
    display: Main
    sections:
      -
        fields:
          -
            handle: title
            field:
              type: text
              required: true
              validate:
                - required
              width: 50
          -
            handle: title_ar
            field:
              display: 'Title Ar'
              type: text
              width: 50
              always_save: false
              validate:
                - required
          -
            handle: hiro_section
            field:
              max_sets: 1
              display: 'hiro section'
              type: replicator
              always_save: false
              if:
                slug: 'equals home'
              sets:
                main:
                  display: Main
                  sets:
                    new_set:
                      display: 'New Set'
                      fields:
                        -
                          handle: main_image_en
                          field:
                            container: assets
                            max_files: 1
                            display: 'Main Image en'
                            type: assets
                            always_save: false
                            validate:
                              - required
                        -
                          handle: main_image_ar
                          field:
                            container: assets
                            max_files: 1
                            display: 'Main Image ar'
                            type: assets
                            always_save: false
                            width: 50
                            validate:
                              - required
                        -
                          handle: small_main_image_ar
                          field:
                            container: assets
                            max_files: 1
                            display: 'Small Main Image ar'
                            type: assets
                            always_save: false
                            width: 50
                            validate:
                              - required
                        -
                          handle: title_one_en
                          field:
                            display: 'title one en'
                            type: text
                            always_save: false
                            validate:
                              - required
                        -
                          handle: title_one_ar
                          field:
                            display: 'title one ar'
                            type: text
                            always_save: false
                            validate:
                              - required
                        -
                          handle: title_two_en
                          field:
                            display: 'title two en'
                            type: text
                            always_save: false
                            validate:
                              - required
                        -
                          handle: title_two_ar
                          field:
                            display: 'title two ar'
                            type: text
                            always_save: false
                            validate:
                              - required
                        -
                          handle: list
                          field:
                            display: list
                            type: replicator
                            always_save: false
                            validate:
                              - required
                            max_sets: 3
                            sets:
                              new_set:
                                display: 'New Set'
                                fields:
                                  -
                                    handle: text_ar
                                    field:
                                      input_type: text
                                      antlers: false
                                      display: 'text ar'
                                      type: text
                                      icon: text
                                      listable: hidden
                                      instructions_position: above
                                      visibility: visible
                                      always_save: false
                                      validate:
                                        - required
                                  -
                                    handle: text_en
                                    field:
                                      input_type: text
                                      antlers: false
                                      display: 'text en'
                                      type: text
                                      icon: text
                                      listable: hidden
                                      instructions_position: above
                                      visibility: visible
                                      always_save: false
                                      validate:
                                        - required
          -
            handle: about_platform
            field:
              max_sets: 1
              display: 'About Platform'
              type: replicator
              always_save: false
              validate:
                - 'required_if:slug,home'
              if:
                slug: 'equals home'
              sets:
                new_set:
                  display: 'New Set'
                  fields:
                    -
                      handle: main_image
                      field:
                        mode: list
                        container: assets
                        restrict: false
                        allow_uploads: true
                        show_filename: true
                        max_files: 1
                        display: 'Main Image'
                        type: assets
                        icon: assets
                        listable: hidden
                        instructions_position: above
                        visibility: visible
                        always_save: false
                        validate:
                          - required
                    -
                      handle: short_title_ar
                      field:
                        input_type: text
                        antlers: false
                        display: 'Short Title AR'
                        type: text
                        icon: text
                        width: 50
                        listable: hidden
                        instructions_position: above
                        visibility: visible
                        always_save: false
                        validate:
                          - required
                    -
                      handle: short_title_en
                      field:
                        input_type: text
                        antlers: false
                        display: 'Short Title EN'
                        type: text
                        icon: text
                        width: 50
                        listable: hidden
                        instructions_position: above
                        visibility: visible
                        always_save: false
                        validate:
                          - required
                    -
                      handle: main_title_ar
                      field:
                        input_type: text
                        antlers: false
                        display: 'Main Title AR'
                        type: text
                        icon: text
                        width: 50
                        listable: hidden
                        instructions_position: above
                        visibility: visible
                        always_save: false
                        validate:
                          - required
                    -
                      handle: main_title_en
                      field:
                        input_type: text
                        antlers: false
                        display: 'Main Title EN'
                        type: text
                        icon: text
                        width: 50
                        listable: hidden
                        instructions_position: above
                        visibility: visible
                        always_save: false
                        validate:
                          - required
                    -
                      handle: list
                      field:
                        collapse: false
                        previews: true
                        max_sets: 3
                        sets:
                          new_set:
                            display: 'New Set'
                            fields:
                              -
                                handle: icon
                                field:
                                  mode: list
                                  container: assets
                                  restrict: false
                                  allow_uploads: true
                                  show_filename: true
                                  max_files: 1
                                  display: Icon
                                  type: assets
                                  icon: assets
                                  listable: hidden
                                  instructions_position: above
                                  visibility: visible
                                  always_save: false
                              -
                                handle: title_en
                                field:
                                  input_type: text
                                  antlers: false
                                  display: 'Title EN'
                                  type: text
                                  icon: text
                                  width: 50
                                  listable: hidden
                                  instructions_position: above
                                  visibility: visible
                                  always_save: false
                                  validate:
                                    - required
                              -
                                handle: title_ar
                                field:
                                  input_type: text
                                  antlers: false
                                  display: 'Title AR'
                                  type: text
                                  icon: text
                                  width: 50
                                  listable: hidden
                                  instructions_position: above
                                  visibility: visible
                                  always_save: false
                              -
                                handle: sub_title_en
                                field:
                                  antlers: false
                                  display: 'Sub Title EN'
                                  type: textarea
                                  icon: textarea
                                  width: 50
                                  listable: hidden
                                  instructions_position: above
                                  visibility: visible
                                  always_save: false
                              -
                                handle: sub_title_ar
                                field:
                                  antlers: false
                                  display: 'Sub Title AR'
                                  type: textarea
                                  icon: textarea
                                  listable: hidden
                                  instructions_position: above
                                  visibility: visible
                                  always_save: false
                                  validate:
                                    - required
                                  width: 50
                        display: List
                        type: replicator
                        icon: replicator
                        listable: hidden
                        instructions_position: above
                        visibility: visible
                        always_save: false
                        validate:
                          - required
          -
            handle: learning_with_us
            field:
              max_sets: 1
              display: learning_with_us
              type: replicator
              always_save: false
              if:
                slug: 'equals home'
              sets:
                new_set:
                  display: 'New Set'
                  fields:
                    -
                      handle: title_section_ar
                      field:
                        input_type: text
                        antlers: false
                        display: 'title section ar'
                        type: text
                        icon: text
                        listable: hidden
                        instructions_position: above
                        visibility: visible
                        always_save: false
                        validate:
                          - required
                    -
                      handle: title_section_en
                      field:
                        input_type: text
                        antlers: false
                        display: 'title section en'
                        type: text
                        icon: text
                        listable: hidden
                        instructions_position: above
                        visibility: visible
                        always_save: false
                        validate:
                          - required
                    -
                      handle: main_title_ar
                      field:
                        input_type: text
                        antlers: false
                        display: 'Main Title AR'
                        type: text
                        icon: text
                        listable: hidden
                        instructions_position: above
                        visibility: visible
                        always_save: false
                    -
                      handle: main_title_en
                      field:
                        input_type: text
                        antlers: false
                        display: 'Main Title EN'
                        type: text
                        icon: text
                        listable: hidden
                        instructions_position: above
                        visibility: visible
                        always_save: false
                    -
                      handle: box
                      field:
                        collapse: false
                        previews: true
                        max_sets: 4
                        sets:
                          new_set:
                            display: 'New Set'
                            fields:
                              -
                                handle: image
                                field:
                                  mode: list
                                  container: assets
                                  restrict: false
                                  allow_uploads: true
                                  show_filename: true
                                  max_files: 1
                                  display: image
                                  type: assets
                                  icon: assets
                                  listable: hidden
                                  instructions_position: above
                                  visibility: visible
                                  always_save: false
                                  validate:
                                    - required
                                  width: 50
                              -
                                handle: url
                                field:
                                  input_type: text
                                  antlers: false
                                  display: URL
                                  type: text
                                  icon: text
                                  width: 50
                                  listable: hidden
                                  instructions_position: above
                                  visibility: visible
                                  always_save: false
                                  validate:
                                    - required
                              -
                                handle: title_en
                                field:
                                  input_type: text
                                  antlers: false
                                  display: 'title en'
                                  type: text
                                  icon: text
                                  listable: hidden
                                  instructions_position: above
                                  visibility: visible
                                  always_save: false
                                  validate:
                                    - required
                                  width: 50
                              -
                                handle: title_ar
                                field:
                                  input_type: text
                                  antlers: false
                                  display: 'title ar'
                                  type: text
                                  icon: text
                                  listable: hidden
                                  instructions_position: above
                                  visibility: visible
                                  always_save: false
                                  validate:
                                    - required
                                  width: 50
                        display: box
                        type: replicator
                        icon: replicator
                        listable: hidden
                        instructions_position: above
                        visibility: visible
                        always_save: false
                        validate:
                          - required
          -
            handle: title_content_ar
            field:
              display: 'Title Content ar'
              type: textarea
              width: 50
              always_save: false
              if:
                slug: 'equals contact-us'
          -
            handle: title_content_en
            field:
              display: 'Title Content En'
              type: textarea
              width: 50
              always_save: false
              if:
                slug: 'equals contact-us'
          -
            handle: content_ar
            field:
              display: 'Content Ar'
              type: textarea
              width: 50
              always_save: false
              if:
                slug: 'equals contact-us'
          -
            handle: content_en
            field:
              display: 'Content En'
              type: textarea
              width: 50
              always_save: false
              if:
                slug: 'equals contact-us'
          -
            handle: code_field
            field:
              mode_selectable: false
              display: 'Code Field'
              type: code
              always_save: false
          -
            handle: business_courses
            field:
              display: 'Business Courses'
              type: replicator
              always_save: false
              validate:
                - 'required_if:slug,business-courses'
              if:
                slug: 'equals business-courses'
              sets:
                new_set:
                  display: 'New Set'
                  fields:
                    -
                      handle: corporate_training_programs
                      field:
                        collapse: false
                        previews: true
                        sets:
                          new_set:
                            display: 'New Set'
                            fields:
                              -
                                handle: image
                                field:
                                  mode: list
                                  container: assets
                                  restrict: false
                                  allow_uploads: true
                                  show_filename: true
                                  max_files: 1
                                  display: image
                                  type: assets
                                  icon: assets
                                  listable: hidden
                                  instructions_position: above
                                  visibility: visible
                                  always_save: false
                                  validate:
                                    - required
                                    - image
                              -
                                handle: title_en
                                field:
                                  input_type: text
                                  antlers: false
                                  display: 'Title EN'
                                  type: text
                                  icon: text
                                  width: 50
                                  listable: hidden
                                  instructions_position: above
                                  visibility: visible
                                  always_save: false
                                  validate:
                                    - required
                              -
                                handle: title_ar
                                field:
                                  input_type: text
                                  antlers: false
                                  display: 'Title Ar'
                                  type: text
                                  icon: text
                                  width: 50
                                  listable: hidden
                                  instructions_position: above
                                  visibility: visible
                                  always_save: false
                                  validate:
                                    - required
                              -
                                handle: list_en
                                field:
                                  display: 'List En'
                                  type: list
                                  icon: list
                                  width: 50
                                  listable: hidden
                                  instructions_position: above
                                  visibility: visible
                                  always_save: false
                                  validate:
                                    - required
                              -
                                handle: list_ar
                                field:
                                  display: 'List Ar'
                                  type: list
                                  icon: list
                                  width: 50
                                  listable: hidden
                                  instructions_position: above
                                  visibility: visible
                                  always_save: false
                        display: 'Corporate Training Programs'
                        type: replicator
                        icon: replicator
                        listable: hidden
                        instructions_position: above
                        visibility: visible
                        always_save: false
                        validate:
                          - required
                        max_sets: 1
                    -
                      handle: what_do_we_offer
                      field:
                        collapse: false
                        previews: true
                        max_sets: 1
                        sets:
                          new_set:
                            display: 'New Set'
                            fields:
                              -
                                handle: main_title_en
                                field:
                                  input_type: text
                                  antlers: false
                                  display: 'Main Title EN'
                                  type: text
                                  icon: text
                                  width: 50
                                  listable: hidden
                                  instructions_position: above
                                  visibility: visible
                                  always_save: false
                                  validate:
                                    - required
                              -
                                handle: main_title_ar
                                field:
                                  input_type: text
                                  antlers: false
                                  display: 'Main Title AR'
                                  type: text
                                  icon: text
                                  width: 50
                                  listable: hidden
                                  instructions_position: above
                                  visibility: visible
                                  always_save: false
                                  validate:
                                    - required
                              -
                                handle: sub_title_en
                                field:
                                  input_type: text
                                  antlers: false
                                  display: 'Sub Title En'
                                  type: text
                                  icon: text
                                  listable: hidden
                                  instructions_position: above
                                  visibility: visible
                                  always_save: false
                                  validate:
                                    - required
                              -
                                handle: sub_title_ar
                                field:
                                  input_type: text
                                  antlers: false
                                  display: 'Sub Title Ar'
                                  type: text
                                  icon: text
                                  listable: hidden
                                  instructions_position: above
                                  visibility: visible
                                  always_save: false
                                  validate:
                                    - required
                              -
                                handle: content_en
                                field:
                                  collapse: false
                                  previews: true
                                  sets:
                                    new_set:
                                      display: 'New Set'
                                      fields:
                                        -
                                          handle: icon
                                          field:
                                            mode: list
                                            container: assets
                                            restrict: false
                                            allow_uploads: true
                                            show_filename: true
                                            max_files: 1
                                            display: Icon
                                            type: assets
                                            icon: assets
                                            listable: hidden
                                            instructions_position: above
                                            visibility: visible
                                            always_save: false
                                            validate:
                                              - required
                                        -
                                          handle: title
                                          field:
                                            input_type: text
                                            antlers: false
                                            display: Title
                                            type: text
                                            icon: text
                                            listable: hidden
                                            instructions_position: above
                                            visibility: visible
                                            always_save: false
                                            validate:
                                              - required
                                        -
                                          handle: sub_title
                                          field:
                                            input_type: text
                                            antlers: false
                                            display: 'Sub Title'
                                            type: text
                                            icon: text
                                            listable: hidden
                                            instructions_position: above
                                            visibility: visible
                                            always_save: false
                                            validate:
                                              - required
                                  display: 'Content En'
                                  type: replicator
                                  icon: replicator
                                  listable: hidden
                                  instructions_position: above
                                  visibility: visible
                                  always_save: false
                                  validate:
                                    - required
                              -
                                handle: content_ar
                                field:
                                  collapse: false
                                  previews: true
                                  sets:
                                    new_set:
                                      display: 'New Set'
                                      fields:
                                        -
                                          handle: icon
                                          field:
                                            mode: list
                                            container: assets
                                            restrict: false
                                            allow_uploads: true
                                            show_filename: true
                                            max_files: 1
                                            display: Icon
                                            type: assets
                                            icon: assets
                                            listable: hidden
                                            instructions_position: above
                                            visibility: visible
                                            always_save: false
                                            validate:
                                              - required
                                        -
                                          handle: title
                                          field:
                                            input_type: text
                                            antlers: false
                                            display: Title
                                            type: text
                                            icon: text
                                            listable: hidden
                                            instructions_position: above
                                            visibility: visible
                                            always_save: false
                                        -
                                          handle: sub_title
                                          field:
                                            input_type: text
                                            antlers: false
                                            display: 'Sub Title'
                                            type: text
                                            icon: text
                                            listable: hidden
                                            instructions_position: above
                                            visibility: visible
                                            always_save: false
                                  display: 'Content Ar'
                                  type: replicator
                                  icon: replicator
                                  listable: hidden
                                  instructions_position: above
                                  visibility: visible
                                  always_save: false
                                  validate:
                                    - required
                        display: 'What do we offer?'
                        type: replicator
                        icon: replicator
                        listable: hidden
                        instructions_position: above
                        visibility: visible
                        always_save: false
                        validate:
                          - required
                    -
                      handle: why_choose_pro_online_academy
                      field:
                        collapse: false
                        previews: true
                        max_sets: 1
                        sets:
                          new_set:
                            display: 'New Set'
                            fields:
                              -
                                handle: main_title_en
                                field:
                                  input_type: text
                                  antlers: false
                                  display: 'Main Title En'
                                  type: text
                                  icon: text
                                  listable: hidden
                                  instructions_position: above
                                  visibility: visible
                                  always_save: false
                                  validate:
                                    - required
                              -
                                handle: main_title_ar
                                field:
                                  input_type: text
                                  antlers: false
                                  display: 'Main Title Ar'
                                  type: text
                                  icon: text
                                  listable: hidden
                                  instructions_position: above
                                  visibility: visible
                                  always_save: false
                                  validate:
                                    - required
                              -
                                handle: list
                                field:
                                  collapse: false
                                  previews: true
                                  sets:
                                    new_set:
                                      display: 'New Set'
                                      fields:
                                        -
                                          handle: icon
                                          field:
                                            mode: list
                                            container: assets
                                            restrict: false
                                            allow_uploads: true
                                            show_filename: true
                                            max_files: 1
                                            display: Icon
                                            type: assets
                                            icon: assets
                                            listable: hidden
                                            instructions_position: above
                                            visibility: visible
                                            always_save: false
                                            validate:
                                              - required
                                        -
                                          handle: title_ar
                                          field:
                                            input_type: text
                                            antlers: false
                                            display: 'Title Ar'
                                            type: text
                                            icon: text
                                            width: 50
                                            listable: hidden
                                            instructions_position: above
                                            visibility: visible
                                            always_save: false
                                            validate:
                                              - required
                                        -
                                          handle: title_en
                                          field:
                                            input_type: text
                                            antlers: false
                                            display: 'Title En'
                                            type: text
                                            icon: text
                                            width: 50
                                            listable: hidden
                                            instructions_position: above
                                            visibility: visible
                                            always_save: false
                                            validate:
                                              - required
                                        -
                                          handle: sub_title_ar
                                          field:
                                            antlers: false
                                            display: 'Sub Title Ar'
                                            type: textarea
                                            icon: textarea
                                            width: 50
                                            listable: hidden
                                            instructions_position: above
                                            visibility: visible
                                            always_save: false
                                            validate:
                                              - required
                                        -
                                          handle: sub_title_en
                                          field:
                                            antlers: false
                                            display: 'Sub Title En'
                                            type: textarea
                                            icon: textarea
                                            width: 50
                                            listable: hidden
                                            instructions_position: above
                                            visibility: visible
                                            always_save: false
                                            validate:
                                              - required
                                  display: List
                                  type: replicator
                                  icon: replicator
                                  listable: hidden
                                  instructions_position: above
                                  visibility: visible
                                  always_save: false
                                  validate:
                                    - required
                        display: 'Why choose Pro Online Academy?'
                        type: replicator
                        icon: replicator
                        listable: hidden
                        instructions_position: above
                        visibility: visible
                        always_save: false
                        validate:
                          - required
  sidebar:
    display: Sidebar
    sections:
      -
        fields:
          -
            handle: slug
            field:
              type: slug
              localizable: true
              validate: 'max:200'
          -
            handle: parent
            field:
              type: entries
              collections:
                - pages
              max_items: 1
              listable: false
              localizable: true
          -
            handle: author
            field:
              type: users
              display: Author
              default: current
              localizable: true
              max_items: 1
          -
            handle: template
            field:
              type: template
              display: Template
              localizable: true
          -
            handle: custom_id
            field:
              type: terms
              taxonomies:
                - custom_id
              display: 'custom ID'
              mode: select
          -
            handle: date
            field:
              type: date
              required: true
              default: now
              validate:
                - required
  seo:
    display: SEO
    sections:
      -
        fields:
          -
            handle: seo_title
            field:
              type: text
              width: 50
              display: 'Seo Title En'
              always_save: false
          -
            handle: seo_title_ar
            field:
              display: 'Seo Title Ar'
              type: text
              width: 50
              always_save: false
          -
            handle: description
            field:
              display: 'Description En'
              type: textarea
              width: 50
              always_save: false
          -
            handle: description_ar
            field:
              display: 'Description Ar'
              type: textarea
              width: 50
              always_save: false
          -
            handle: meta_tags
            field:
              mode_selectable: false
              display: 'Meta Tags En'
              type: code
              width: 50
              always_save: false
          -
            handle: meta_tags_ar
            field:
              mode_selectable: false
              display: 'Meta Tags Ar'
              type: code
              width: 50
              always_save: false
