Basic Report By Date (Legacy)

Shows all events occurring, by date, within the report's date range. This report shows the rooms and resources used by the event, along with their approval status. It does not show detailed information such as custom questions, rooms setups, etc. This is a Planning Center Calendar Default Report

Preview

Report Preview


<!DOCTYPE html>
<html>
  <head>
    <title>Basic {{ report.kind | capitalize }} Report by Date</title>
    <link rel="stylesheet" type="text/css" media="all" href="{{ report.stylesheet_href }}">
  </head>
  <body>
    <div class="report-wrapper">
      <h1 class="header-large txt-center gutter-bottom-small">Basic {{ report.kind | capitalize }} Report by Date</h1>
      <h2 class="header-medium txt-center soft gutter-bottom-large">{{ report.scope }}: {{ report.start_date }} through {{ report.end_date }}</h2>

      {% if report.org_twenty_four_hour_time? %}
        {% assign time_format = "%H:%M" %}
      {% else %}
        {% assign time_format = "%-I:%M%P" %}
      {% endif%}

      {% if report.org_day_month_dates? %}
        {% assign date_format = "%d/%m/%Y" %}
      {% else %}
        {% assign date_format = "%m/%d/%Y" %}
      {% endif %}

      {% for day in days_with_instances %}
        {% capture day_name %}{{day.date | date: '%A, %B %-d, %Y'}}{% endcapture %}
        {% if day.instances.size != 0 %}

          <div class="level-1">
            <h2 class="header-large date-header gutter-bottom-small">{{day_name}}</h2>
            <div class="level-2 block">
              <ul>
                {% for instance in day.instances %}
                  <li class="gutter-bottom-large gutter-top-medium">
                    {% capture starts_at_day_name %}{{instance.starts_at | date: '%A, %B %-d, %Y'}}{% endcapture %}
                    {% capture ends_at_day_name %}{{instance.ends_at | date: '%A, %B %-d, %Y'}}{% endcapture %}

                    <!-- ===== Date Heading ========================== -->
                    <h3 class="header-medium gutter-bottom-small">
                      {% if instance.reservation.all_day_event? %}
                          All-day
                      {% elsif starts_at_day_name == day_name %}
                        {% if ends_at_day_name == day_name %}
                          {{ instance.starts_at | date: time_format | downcase }} - {{ instance.ends_at | date: time_format | downcase }}
                        {% else %}
                          Today, {{ instance.starts_at | date: time_format | downcase }} - {{ instance.ends_at | date: date_format }} ({{ instance.ends_at | date: time_format | downcase }})
                        {% endif %}
                      {% else %}
                        {% if ends_at_day_name == day_name %}
                          {{instance.starts_at | date: date_format }} ({{ instance.starts_at | date: time_format | downcase }}) - Today, {{ instance.ends_at | date: time_format | downcase }}
                        {% else %}
                          {{instance.starts_at | date: date_format }} ({{ instance.starts_at | date: time_format | downcase }}) - {{ instance.ends_at | date: date_format }} ({{ instance.ends_at | date: time_format | downcase }})
                        {% endif %}
                      {% endif %}

                      {% if instance.event.name != 0 %}
                        {{ instance.event.name }} <span class="status {{ instance.approval_status }}">{{ instance.approval_status }}</span>
                      {% endif %}
                    </h3>
                    <!-- @end Date Heading ========================== -->

                    <!-- ===== Day Meta Info ========================== -->
                    <ul class="container-naked gutter-bottom-medium">
                      {% if instance.event.name != 0 %}
                        {% if instance.event.owner %}
                          <li><strong>Owner:</strong> {{ instance.event.owner.name }}</li>
                        {% endif %}

                        {% if instance.event.details != 0 %}
                          <li style="white-space: pre-wrap;"><em>{{ instance.event.details }}</em></li>
                        {% endif %}
                      {% endif %}

                      {% if instance.reservation.location != blank %}
                        <li>
                          <strong>Location:</strong> {{ instance.reservation.location }}
                        </li>
                      {% endif %}
                    </ul>
                    <!-- @end Day Meta Info ========================== -->


                    <!-- ===== Event Schedule ========================== -->
                    {% unless instance.reservation.all_day_event? %}
                      <div class="level-3">
                        <h3 class="bg-soft header-medium gutter-bottom-small">Event Schedule</h3>
                        {% if instance.event_times.size > 0 %}
                          <ul>
                            {% for event_time in instance.event_times %}
                              <li class="divider-soft pad-left item">
                                <strong>{{event_time.starts_at  | date: time_format | downcase }}-{{event_time.ends_at  | date: time_format | downcase }}:</strong> {{ event_time.name }}
                              </li>
                            {% endfor %}
                          </ul>
                        {% else %}
                          <p class="pad-left soft">(No event times defined.)</p>
                        {% endif %}
                      </div>
                    {% endunless %}
                    <!-- @end Event Schedule ========================== -->

                    <!-- ===== Event Rooms ========================== -->
                    {% if instance.reservation.room_requests.size > 0 %}
                      <div class="level-3">
                        <h3 class="bg-soft header-medium gutter-bottom-small">Rooms</h3>
                        <ul>
                          {% for request in instance.reservation.room_requests %}
                            <li class="gutter-bottom-small pad-left item">
                              <div class="gutter-bottom-small">
                                <span class="header-small txt-underline item-title">{{request.room.name}}</span>&nbsp;
                                <span class="status {{ request.approval_status }}">{{ request.approval_status }}</span>&nbsp;
                                {% if request.resource_requests.size > 0 %}
                                  <div class="level-4">
                                    <strong>Used in room: </strong>
                                    {% for resource_request in request.resource_requests %}
                                      &nbsp;&nbsp;<span class="txt-underline">{%if resource_request.quantity > 1 %}{{resource_request.quantity}} {%endif%}{{resource_request.resource.name}}</span>
                                      <span class="status {{ resource_request.approval_status }}">{{ resource_request.approval_status }}</span>
                                    {% endfor %}
                                  </div>
                                {% endif %}
                              </div>

                            </li>
                          {% endfor %}
                        </ul>
                      </div>
                    {% endif %}
                    <!-- @end Event Rooms ========================== -->

                    <!-- ===== Event Resources ========================== -->
                    {% if instance.reservation.resource_requests.size > 0 %}
                      <div class="level-3">
                        <h3 class="txt-left bg-soft header-small gutter-bottom-small">Resources</h3>
                        <ul>
                          {% for request in instance.reservation.resource_requests %}
                            <li class="gutter-bottom-small pad-left item">
                              <span class="header-small txt-underline">{{request.quantity}} {{request.room.name}}</span>&nbsp;
                              <span class="status {{ request.approval_status }}">{{ request.approval_status }}</span>
                              <div class="gutter-bottom-small level-3">
                                {%if room_setup.description.length %}
                                  <div class="divider-soft">
                                    <strong>Setup: </strong> {{room_setup.description }}
                                  </div>
                                {%endif%}

                              </div>
                            </li>
                          {% endfor %}
                        </ul>
                      </div>
                    {% endif %}
                    <!-- @end Event Resources ========================== -->

                  </li>
                {% endfor %}
              </ul>
            </div>
          </div>
        {% endif %}
      {% else %}
        <div>
          <h1 class="header-large txt-center gutter-bottom-small">There are no events which fit the filters in the selected date range.</h1>
        </div>
      {% endfor %}
    </div>
  </body>
</html>