{% extends 'base.html.twig' %} {% set location_name = location.abbrName|default(location.displayName|default(location.name)) %} {% set block_primary = block_get('primary', 'category', category=category, location=location) %} {% if block_primary and block_primary.active and block_primary.content %} {% set has_primary_content = true %} {% else %} {% set has_primary_content = false %} {% endif %} {% block title %}{% apply spaceless %} {% if custom_title %} {{ custom_title }} {% else %} {% if location.slug != 'us' %} Best {{ category.name }} Degree Colleges in {{ location_name }} | {{ 'now'|date('Y') }} {% else %} Best {{ category.name }} Degree Colleges in the U.S. | {{ 'now'|date('Y') }} {% endif %} {% endif %} {% endapply %}{% endblock %} {% block meta_description%}{% apply spaceless %} {% if location.slug != 'us' %} Discover the best {{ category.name|lower }} degree colleges in {{ location_name }} on Universities.com. {% else %} Discover the best {{ category.name|lower }} degree colleges in the U.S. on Universities.com. {% endif %} {% endapply %}{% endblock %} {% block stylesheets %} {{ parent() }} {{ encore_entry_link_tags('find-best') }} {% endblock %} {% block scripts %} {{ parent() }} {{ encore_entry_script_tags('find-best') }} {% endblock %} {% block body %}

{% if custom_title %} {{ custom_title }} {% else %} Best {{ category }} colleges in {{ location_name }} {% endif %}

{{ include('widget/byline.html.twig', { action: path('app_find_category_update_byline', {id: findCategory.id }), page: findCategory }) }} {{ include('widget/block/simple.html.twig', { name: 'primary', type: 'category', category: category, location: location }, with_context=false) }}
{% if best_schools %}

Best {{ category.name }} colleges in {{ location_name }} for {{ 'now'|date('Y') }}

{% for s in best_schools %} {{ include('widget/school/listing.html.twig', { school: s, rank: loop.index, category: category }, with_context=false) }} {% if loop.index == 2 or loop.length < 2 and loop.length == loop.index %} {% if findCategory.widget|default %}
{{ widget_shortcode(findCategory.widget, 0) }}
{% else %} {% include 'widget/xyz.html.twig' with {'xyz_id': 'xyzafter2ndincat', 'wide': 1} %} {% endif %} {% endif %} {% if is_mobile() %} {% if loop.index == 10 or loop.length < 10 and loop.length > 4 and loop.length == loop.index %} {% if findCategory.widget|default %}
{{ widget_shortcode(findCategory.widget, 1) }}
{% else %} {% include 'widget/xyz.html.twig' with {'xyz_id': 'xyzafter10thincat', 'wide': 1} %} {% endif %} {% endif %} {% endif %} {% endfor %}
{% endif %} {% if location_children %}

Find local colleges with {{ category.name }} majors in {{ location_name }}

{% for child in location_children %} {% endfor %}
{% endif %} {% if programs %}

Top schools offering {{ category.name }} degrees in {{ location_name }}

{% for parent_id, parent in programs %}
{{ parent.name }} Schools
{% endfor %}
{% endif %} {{ include('widget/block/section.html.twig', { name: 'degree_what', type: 'category', h3: "What is " ~ category.name ~ "?", category: category, location: location }, with_context=false) }} {{ include('widget/block/section.html.twig', { name: 'degree_overview', type: 'category', h3: category.name ~ " Degree Overview", category: category, location: location }, with_context=false) }} {{ include('widget/block/section.html.twig', { name: 'degree_certificate', type: 'category', h3: "Certificate in " ~ category.name, category: category, location: location }, with_context=false) }} {{ include('widget/block/section.html.twig', { name: 'degree_associate', type: 'category', h3: "Associate Degree in " ~ category.name, category: category, location: location }, with_context=false) }} {{ include('widget/block/section.html.twig', { name: 'degree_bachelor', type: 'category', h3: "Bachelor's Degree in " ~ category.name, category: category, location: location }, with_context=false) }} {{ include('widget/block/section.html.twig', { name: 'degree_master', type: 'category', h3: "Master's Degree in " ~ category.name, category: category, location: location }, with_context=false) }} {{ include('widget/block/section.html.twig', { name: 'degree_doctoral', type: 'category', h3: "Doctoral Degree in " ~ category.name, category: category, location: location }, with_context=false) }} {{ include('widget/block/section.html.twig', { name: 'certification_licensure', type: 'category', h3: "Certification and Licensure in " ~ category.name, category: category, location: location }, with_context=false) }} {{ include('widget/block/section.html.twig', { name: 'degree_opportunities', type: 'category', h3: "What Can I Do with a Degree in " ~ category.name ~ "?", category: category, location: location }, with_context=false) }} {{ include('widget/block/section.html.twig', { name: 'degree_online', type: 'category', h3: "Earning an Online " ~ category.name ~ " Degree", category: category, location: location }, with_context=false) }} {{ include('widget/block/section.html.twig', { name: 'career_info', type: 'category', h3: category.name ~ " Career and Salary Overview", category: category, location: location }, with_context=false) }} {{ include('widget/block/section.html.twig', { name: 'qa_content', type: 'category', h3: category.name ~ " FAQ", category: category, location: location }, with_context=false) }} {{ include('widget/block/section.html.twig', { name: 'testimonials', type: 'category', h3: "Expert Testimonials", category: category, location: location }, with_context=false) }} {% if schools %} {% include 'find/widget/schools.html.twig' %} {% endif %} {{ include('widget/block/section.html.twig', { name: 'page_sources', type: 'category', h3: "Article Sources", category: category, location: location }, with_context=false) }} {% if is_mobile() %}
{% include 'widget/xyz.html.twig' with {'xyz_id': 'xyzbeforefootincat'} %}
{% endif %}
{% endblock %}