{% extends "front/base.html" %}
{% load mptt_tags %}
{% load static %}
{% load crispy_forms_tags %}

{% block content %}
{% include "front/_localSearch.html" %}
{% if storeFront %}

<div class="card mb-3">
    <div class="row no-gutters">
        <div class="col-md-4">
            {% if storeFront.logo %}
            <img src="{{ storeFront.logo }}" class="rounded-circle" alt="Cinque Terre">
            {% endif %}
        </div>
        <div class="col-md-8">
            <div class="card-body">
                <h5 class="card-title">{{ storeFront.fullName }}</h5>
                <p class="card-text">
                    {% firstof storeFront.description " " %}
                </p>
                <a class='btn btn-primary btn-sm' href="{% url  "front:viewStoreMap" %}?cstr={{ storeFront.storeId }}" target="_blank">View Map</a>
                <a class='btn btn-danger btn-sm' href="">Follow</a>
                <a class='btn btn-secondary btn-sm' href="">Share</a>
            </div>
        </div>
    </div>
</div>
{% endif %}
{% include "front/_promotions.html" with objs=promotions %}
{% include "front/_recs.html" with objs=recs %}
{% include "front/_reviews.html" with objs=reviews %}
{% endblock %}
