{{#if display}}
    {{#unless isTotalTransactionGroupChannel}}
        <div class="drag-handle">
          <span class="bar"></span>
          <span class="bar"></span>
          <span class="bar"></span>
        </div>
    {{/unless}}
<div class="well clearfix">
  <div class="pull-left">
      <h4>{{title}}</h4>
      <h3 class="grand-total">{{num grand_total}}</h3>
      <h4 class="active-date"></h4>
      <div class='graph-totals-container'>
        <table width='100%'>
          <tbody class="active-total">
          </tbody>
        </table>
      </div>
      <a id="back-to-overview" href="{{url "overview"}}" class="btn btn-default">Back to Overview</a>
      {{#if isTotalTransactionGroupChannel}}
          {{#if isTransactionGroupDetailEnabled}}
              <div class="detail-dropdown color-dropdown dropdown">
              <button class="btn btn-default dropdown-toggle btn-view-details" type="button" aria-haspopup="true" aria-expanded="false">
                  {{trans "View details"}}
                  <img src="https://cdn.theorchard.io/assets/workstation/images/redesign/btn-default-downarrow.svg">
              </button>
                <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
                {{#if isSocial}}
                    <li><a 
                      class="detail"
                      data-event-category="Analytics Overview"
                      data-event-action="Channel Detail"
                      data-event-label="{{title}}:artist"
                      data-event-value='{{transactionGroupIds}}'
                      href="{{url "socialdetail" id=transactionGroupIds tg=1 breakdown_by="artist"}}"
                    >{{trans "Artist"}}</a></li>
                {{else}}
                    {{#if isDistributionVendor}}<li><a 
                        class="detail"
                        data-event-category="Analytics Overview"
                        data-event-action="Channel Detail"
                        data-event-label="{{title}}:subaccount"
                        data-event-value='{{transactionGroupIds}}'
                        href="{{url "detail" id=transactionGroupIds tg=1 breakdown_by="subaccount"}}"
                      >{{trans "Subaccount"}}</a></li>{{/if}}
                    {{#if isAudioUser}}
                      <li><a 
                        class="detail"
                        data-event-category="Analytics Overview"
                        data-event-action="Channel Detail"
                        data-event-label="{{title}}:imprint"
                        data-event-value='{{transactionGroupIds}}'
                        href="{{url "detail" id=transactionGroupIds tg=1 breakdown_by="imprint"}}"
                      >{{trans "Imprint"}}</a></li>
                      <li><a 
                        class="detail"
                        data-event-category="Analytics Overview"
                        data-event-action="Channel Detail"
                        data-event-label="{{title}}:artist"
                        data-event-value='{{transactionGroupIds}}'
                        href="{{url "detail" id=transactionGroupIds tg=1 breakdown_by="artist"}}"
                      >{{trans "Artist"}}</a></li>
                    {{else}}
                      <li><a 
                        class="detail"
                        data-event-category="Analytics Overview"
                        data-event-action="Channel Detail"
                        data-event-label="{{title}}:imprint"
                        data-event-value='{{transactionGroupIds}}'
                        href="{{url "detail" id=transactionGroupIds tg=1 breakdown_by="imprint"}}"
                      >{{trans "Studio"}}</a></li>
                      <li><a 
                        class="detail"
                        data-event-category="Analytics Overview"
                        data-event-action="Channel Detail"
                        data-event-label="{{title}}:artist"
                        data-event-value='{{transactionGroupIds}}'
                        href="{{url "detail" id=transactionGroupIds tg=1 breakdown_by="artist"}}"
                      >{{#if isFilmUser}}{{trans "Collection"}}{{else}}{{trans "Volume"}}{{/if}}</a></li>
                    {{/if}}
                      <li><a 
                        class="detail"
                        data-event-category="Analytics Overview"
                        data-event-action="Channel Detail"
                        data-event-label="{{title}}:catalog"
                        data-event-value='{{transactionGroupIds}}'
                        href="{{url "detail" id=transactionGroupIds tg=1 breakdown_by="catalog"}}"
                      >
                      {{#if isAudioUser}}{{trans "Project"}}{{else}}{{trans "Release"}}{{/if}}
                      {{#if isAudioUser}}
                          <li>
                              <a class="detail"
                                data-event-category="Analytics Overview"
                                data-event-action="Channel Detail"
                                data-event-label="{{title}}:product"
                                data-event-value='{{transactionGroupIds}}'
                                href="{{url "detail" id=transactionGroupIds tg=1 breakdown_by="product"}}">{{trans "Product"}}</a>
                            </li>
                      {{/if}}
                    {{#if isAudioUser}}
                      <li><a
                        class="detail track {{#if isAlbumDownload}}hidden{{/if}}"
                        data-event-category="Analytics Overview"
                        data-event-action="Channel Detail"
                        data-event-label="{{title}}:isrc"
                        data-event-value='{{transactionGroupIds}}'
                        href="{{url "detail" id=transactionGroupIds tg=1 breakdown_by="isrc"}}"
                      >{{trans "Track"}}</a></li>
                    {{/if}}
                      <li class="sources"><a
                        class="detail"
                        data-event-category="Analytics Overview"
                        data-event-action="Channel Detail"
                        data-event-label="{{title}}:sources"
                        data-event-value='{{transactionGroupIds}}'
                        href="{{url "detail" id=transactionGroupIds tg=1 breakdown_by="sources"}}"
                      >{{trans "Sources"}}</a></li>
                    {{#if showContinents}}
                      <li class="country"><a class="detail"
                        data-event-category="Analytics Overview"
                        data-event-action="Channel Detail"
                        data-event-label="{{title}}:continents"
                        data-event-value='{{transactionGroupIds}}'
                        href="{{url "detail" id=transactionGroupIds tg=1 breakdown_by="continent"}}"
                      >{{trans "Continent"}}</a></li>
                    {{/if}}
                    {{#if doIncludeCountryDetails}}
                      <li class="country"><a class="detail"
                        data-event-category="Analytics Overview"
                        data-event-action="Channel Detail"
                        data-event-label="{{title}}:countries"
                        data-event-value='{{transactionGroupIds}}'
                        href="{{url "detail" id=transactionGroupIds tg=1 breakdown_by="country"}}"
                      >{{trans "Country"}}</a></li>
                    {{/if}}
                      <li><a
                        class="detail"
                        data-event-category="Analytics Overview"
                        data-event-action="Channel Detail"
                        data-event-label="{{title}}:genre"
                        data-event-value='{{transactionGroupIds}}'
                        href="{{url "detail" id=transactionGroupIds tg=1 breakdown_by="genre"}}"
                      >{{trans "Genre"}}</a></li>
                {{/if}}
                {{#if showPaidVsFree}}
                  <li><a 
                    class="detail"
                    data-event-category="Analytics Overview"
                    data-event-action="Channel Detail"
                    data-event-label="{{title}}:paid_vs_free"
                    data-event-value='{{transactionGroupIds}}'
                    href="{{url "detail" id=transactionGroupIds tg=1 breakdown_by="paid_vs_free"}}"
                  >{{trans "Paid vs Free"}}</a></li>
                {{/if}}
                {{#if showFormat}}
                  <li><a 
                    class="detail"
                    data-event-category="Analytics Overview"
                    data-event-action="Channel Detail"
                    data-event-label="{{title}}:format"
                    data-event-value='{{transactionGroupIds}}'
                    href="{{url "detail" id=transactionGroupIds tg=1 breakdown_by="format"}}"
                  >{{trans "Format"}}</a></li>
                {{/if}}
                </ul>
              </div>
              <a id="hidechannel_{{object_id}}" class="hide-channel">{{trans "Hide Channel"}}</a>
          {{/if}}
      {{else}}
          <div class="detail-dropdown color-dropdown dropdown">
          <button class="btn btn-default dropdown-toggle btn-view-details" type="button" aria-haspopup="true" aria-expanded="false">
              {{trans "View details"}}
              <img src="https://cdn.theorchard.io/assets/workstation/images/redesign/btn-default-downarrow.svg">
          </button>
            <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
            {{#if isSocial}}
                <li><a 
                  class="detail"
                  data-event-category="Analytics Overview"
                  data-event-action="Channel Detail"
                  data-event-label="{{title}}:artist"
                  data-event-value='{{transaction_type_id}}'
                  href="{{url "socialdetail" id=transaction_type_id breakdown_by="artist"}}"
                >{{trans "Artist"}}</a></li>
            {{else}}
                {{#if isDistributionVendor}}<li><a 
                    class="detail"
                    data-event-category="Analytics Overview"
                    data-event-action="Channel Detail"
                    data-event-label="{{title}}:subaccount"
                    data-event-value='{{transaction_type_id}}'
                    href="{{url "detail" id=transaction_type_id breakdown_by="subaccount"}}"
                  >{{trans "Subaccount"}}</a></li>{{/if}}
                {{#if isAudioUser}}
                  <li><a 
                    class="detail"
                    data-event-category="Analytics Overview"
                    data-event-action="Channel Detail"
                    data-event-label="{{title}}:imprint"
                    data-event-value='{{transaction_type_id}}'
                    href="{{url "detail" id=transaction_type_id breakdown_by="imprint"}}"
                  >{{trans "Imprint"}}</a></li>
                  <li><a 
                    class="detail"
                    data-event-category="Analytics Overview"
                    data-event-action="Channel Detail"
                    data-event-label="{{title}}:artist"
                    data-event-value='{{transaction_type_id}}'
                    href="{{url "detail" id=transaction_type_id breakdown_by="artist"}}"
                  >{{trans "Artist"}}</a></li>
                {{else}}
                  <li><a 
                    class="detail"
                    data-event-category="Analytics Overview"
                    data-event-action="Channel Detail"
                    data-event-label="{{title}}:imprint"
                    data-event-value='{{transaction_type_id}}'
                    href="{{url "detail" id=transaction_type_id breakdown_by="imprint"}}"
                  >{{trans "Studio"}}</a></li>
                  <li><a 
                    class="detail"
                    data-event-category="Analytics Overview"
                    data-event-action="Channel Detail"
                    data-event-label="{{title}}:artist"
                    data-event-value='{{transaction_type_id}}'
                    href="{{url "detail" id=transaction_type_id breakdown_by="artist"}}"
                  >{{#if isFilmUser}}{{trans "Collection"}}{{else}}{{trans "Volume"}}{{/if}}</a></li>
                {{/if}}
                  <li><a 
                    class="detail"
                    data-event-category="Analytics Overview"
                    data-event-action="Channel Detail"
                    data-event-label="{{title}}:catalog"
                    data-event-value='{{transaction_type_id}}'
                    href="{{url "detail" id=transaction_type_id breakdown_by="catalog"}}"
                  >
                  {{#if isAudioUser}}{{trans "Project"}}{{else}}{{trans "Release"}}{{/if}}
                  {{#if isAudioUser}}
                      <li>
                          <a class="detail"
                             data-event-category="Analytics Overview"
                             data-event-action="Channel Detail"
                             data-event-label="{{title}}:product"
                             data-event-value='{{transaction_type_id}}'
                             href="{{url "detail" id=transaction_type_id breakdown_by="product"}}">{{trans "Product"}}</a>
                        </li>
                  {{/if}}
                {{#if isAudioUser}}
                  <li><a
                    class="detail track {{#if isAlbumDownload}}hidden{{/if}}"
                    data-event-category="Analytics Overview"
                    data-event-action="Channel Detail"
                    data-event-label="{{title}}:isrc"
                    data-event-value='{{transaction_type_id}}'
                    href="{{url "detail" id=transaction_type_id breakdown_by="isrc"}}"
                  >{{trans "Track"}}</a></li>
                {{/if}}
                  <li class="sources"><a
                    class="detail"
                    data-event-category="Analytics Overview"
                    data-event-action="Channel Detail"
                    data-event-label="{{title}}:sources"
                    data-event-value='{{transaction_type_id}}'
                    href="{{url "detail" id=transaction_type_id breakdown_by="sources"}}"
                  >{{trans "Sources"}}</a></li>
                {{#if showContinents}}
                  <li class="country"><a class="detail"
                    data-event-category="Analytics Overview"
                    data-event-action="Channel Detail"
                    data-event-label="{{title}}:continents"
                    data-event-value='{{transaction_type_id}}'
                    href="{{url "detail" id=transaction_type_id breakdown_by="continent"}}"
                  >{{trans "Continent"}}</a></li>
                {{/if}}
                {{#if doIncludeCountryDetails}}
                  <li class="country"><a class="detail"
                    data-event-category="Analytics Overview"
                    data-event-action="Channel Detail"
                    data-event-label="{{title}}:countries"
                    data-event-value='{{transaction_type_id}}'
                    href="{{url "detail" id=transaction_type_id breakdown_by="country"}}"
                  >{{trans "Country"}}</a></li>
                {{/if}}
                  <li><a
                    class="detail"
                    data-event-category="Analytics Overview"
                    data-event-action="Channel Detail"
                    data-event-label="{{title}}:genre"
                    data-event-value='{{transaction_type_id}}'
                    href="{{url "detail" id=transaction_type_id breakdown_by="genre"}}"
                  >{{trans "Genre"}}</a></li>
            {{/if}}
            {{#if showPaidVsFree}}
              <li><a 
                class="detail"
                data-event-category="Analytics Overview"
                data-event-action="Channel Detail"
                data-event-label="{{title}}:paid_vs_free"
                data-event-value='{{transaction_type_id}}'
                href="{{url "detail" id=transaction_type_id breakdown_by="paid_vs_free"}}"
              >{{trans "Paid vs Free"}}</a></li>
            {{/if}}
            {{#if showFormat}}
              <li><a 
                class="detail"
                data-event-category="Analytics Overview"
                data-event-action="Channel Detail"
                data-event-label="{{title}}:format"
                data-event-value='{{transaction_type_id}}'
                href="{{url "detail" id=transaction_type_id breakdown_by="format"}}"
              >{{trans "Format"}}</a></li>
            {{/if}}
            </ul>
          </div>
          <a id="hidechannel_{{object_id}}" class="hide-channel">{{trans "Hide Channel"}}</a>
      {{/if}}
  </div>
  <div class="pull-right">
      <div class="graph-holder"></div>
  </div>
</div>
{{/if}}
