Detailed Report By Date
Imports: 3

Shows all events occurring by date, within the reports date range. This report includes the approval status, start and end time, location, and event owner for each event. This is a Default Planning Center Report.

Preview

Report Preview


<!DOCTYPE html>
<html>
  <head>
    <title>Detailed {{ 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">Detailed {{ 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 %}
        {% capture day_name %}{{day.date | date: '%A, %B %-d, %Y'}}{% endcapture %}
        <div class="level-1">
          <h2 class="header-large date-header gutter-bottom-small">{{day_name}}</h2>
          {% if day.instances.size == 0 %}
            <div class="soft pad-left gutter-bottom-medium">
              No events today
            </div>
          {% endif %}

          {% if day.instances.size != 0 %}
            <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.event.approval_status }}">{{ instance.event.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.simple_room_requests %}
                            <li class="gutter-bottom-small pad-left item item--inline">
                              <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>
                              </div>
                            </li>
                          {% endfor %}

                          {% for request in instance.reservation.complex_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>
                              </div>

                              <div class="level-3">
                                {%if request.room_setup %}
                                  <div>
                                    <strong>Setup:</strong> {{request.room_setup.name }}
                                    {% if request.room_setup.description != blank %}
                                      &mdash; {{ request.room_setup.description }}
                                    {% endif %}
                                  </div>
                                {% endif %}

                                {% if request.room_setup_info != blank %}
                                  <div>
                                    <strong>Additional notes:</strong> {{ request.room_setup_info }}
                                  </div>
                                {% endif %}

                                {% if request.answers.size > 0 %}
                                  {% for answer in request.answers %}
                                    {% if answer.section_header? %}
                                      <div>
                                        <strong>{{ answer.label }}</strong>
                                        <p class="question-description">{{ answer.description }}</p>
                                      </div>
                                    {% else %}
                                      <div class="divider-soft">
                                        <strong>{{ answer.question }}</strong> &mdash; {{answer.answer}}
                                        <p class="question-description">{{ answer.description }}</p>
                                      </div>
                                    {% endif %}
                                  {% endfor %}
                                {% endif %}

                                <!-- ===== Resources for Rooms ========================== -->
                                {% if request.resource_requests.size > 0 %}
                                  <h4 class="bg-soft header-medium gutter-bottom-small">Resources for this room</h4>
                                  <div class="level-4">
                                    <ul>
                                      {% for resource_request in request.simple_resource_requests %}
                                        <li class="sub-item sub-item--inline gutter-bottom-small">
                                          <h4 class="header-small">
                                            <span class="txt-underline sub-item-title">{%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>
                                          </h4>
                                        </li>
                                      {% endfor %}

                                      {% for resource_request in request.complex_resource_requests %}
                                        <li class="sub-item">
                                          <h4 class="header-small">
                                            <span class="txt-underline sub-item-title">{%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>
                                          </h4>

                                          {% if resource_request.room_setup_info != blank %}
                                            <div>
                                              <strong>Additional notes:</strong> {{ resource_request.room_setup_info }}
                                            </div>
                                          {% endif %}

                                          {% if resource_request.answers.size > 0 %}
                                            <ul class="gutter-bottom-medium gutter-top-small pad-left">
                                              {% for answer in resource_request.answers %}
                                                {% if answer.section_header? %}
                                                  <li><strong>{{ answer.label }}</strong></li>
                                                  <p class="question-description">{{ answer.description }}</p>
                                                {% else %}
                                                  <li class="divider-soft">
                                                    <strong>{{ answer.question }}</strong> &mdash; {{answer.answer}}
                                                    <p class="question-description">{{ answer.description }}</p>
                                                  </li>
                                                {% endif %}
                                              {% endfor %}
                                            </ul>
                                          {% endif %}
                                        {% endfor %}
                                      </li>
                                    </ul>
                                  </div>
                                {% endif %}
                                <!-- @end Resources for Rooms ========================== -->
                              </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-medium gutter-bottom-small">Resources</h3>
                        <ul>
                          {% for request in instance.reservation.simple_resource_requests %}
                            <li class="gutter-bottom-small pad-left item item--inline">
                              <span class="header-small txt-underline">{{request.quantity}} {{request.room.name}}</span>&nbsp;
                              <span class="status {{ request.approval_status }}">{{ request.approval_status }}</span>
                            </li>
                          {% endfor %}

                          {% for request in instance.reservation.complex_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>

                              {% if request.room_setup_info != blank %}
                                <div>
                                  <strong>Additional notes:</strong> {{ request.room_setup_info }}
                                </div>
                              {% endif %}

                              <div class="gutter-bottom-small level-3">

                                {% for answer in request.answers %}
                                  {% if answer.section_header? %}
                                    <strong>{{ answer.label }}</strong><br />
                                    <p class="question-description">{{ answer.description }}</p>
                                  {% else %}
                                    <div class="divider-soft">
                                      <strong>{{ answer.question }}:</strong> &mdash; {{answer.answer}}
                                      <p class="question-description">{{ answer.description }}</p>
                                    </div>
                                  {% endif %}
                                {% endfor %}
                              </div>
                            </li>
                          {% endfor %}
                        </ul>
                      </div>
                    {% endif %}
                    <!-- @end Event Resources ========================== -->

                  </li>
                {% endfor %}
              </ul>
            </div>
          {% endif %}
        </div>
      {% endfor %}
    </div>
  </body>
</html>