anchor.diff:        <div class="panel-heading">
           <h5>Percent Compliance by Patient</h5>
         </div>
  -          <div id="barlabel" style="display: none">
  -          <% @comply = DoctorComplianceData.new(@doctor) %>
  -            <%= @comply.patients_labelmaker.join(", ")%>
  -          </div>
  -          <div id="bardata" style="display:none">
  -            <%= @comply.all_doctor_patients_compliance_array.join(", ") %>
  -          </div>
  -          <canvas id="barchart" width="400" height="400"></canvas>
  +      <div id="barlabel" style="display: none">
  +        <% @comply = DoctorComplianceData.new(@doctor) %>
  +        <%= @comply.patients_labelmaker.join(", ")%>
  +      </div>
  +      <div id="bardata" style="display:none">
  +        <%= @comply.all_doctor_patients_compliance_array.join(", ") %>
  +      </div>
  +      <canvas id="barchart" width="400" height="400"></canvas>
       </div>
     </div>
     <!-- /panel barchart -->
  
positive.code: <% if @doctor %>
  <h1>Hello Dr. <%= @doctor.last_name %> <i class="fa fa-user-md fa-2x"></i></h1>
  <br><br>
      <!-- panel row -->
      <div class="row">
          <div class="col-lg-3 col-md-6">
              <div class="panel panel-primary">
                  <div class="panel-heading">
                      <div class="row">
                          <div class="col-xs-3">
                              <i class="fa fa-comments fa-5x"></i>
                          </div>
                          <div class="col-xs-9 text-right">
                              <div class="huge"><%= @doctor.mailbox.inbox(unread: true).count %></div>
                              <div>New Messages!</div>
                          </div>
                      </div>
                  </div>
                  <a href="#">
                      <div class="panel-footer">
                          <span class="pull-left"><%= link_to "View Messages",doctor_conversations_path(@doctor) %></span>
                          <span class="pull-right"><i class="fa fa-arrow-circle-right"></i></span>
                          <div class="clearfix"></div>
                      </div>
                  </a>
              </div>
          </div>
          <div class="col-lg-3 col-md-6">
              <div class="panel panel-green">
                  <div class="panel-heading">
                      <div class="row">
                          <div class="col-xs-3">
                              <i class="fa fa-tasks fa-5x"></i>
                          </div>
                          <div class="col-xs-9 text-right">
                              <div class="huge"><%= @doctor.prescriptions.count %></div>
                              <div>Prescriptions</div>
                          </div>
                      </div>
                  </div>
                  <a href="#">
                      <div class="panel-footer">
                          <span class="pull-left"><%= link_to "Prescribe a medication",new_doctor_prescription_path %></span>
                          <span class="pull-right"><i class="fa fa-arrow-circle-right"></i></span>
                          <div class="clearfix"></div>
                      </div>
                  </a>
              </div>
          </div>
          <div class="col-lg-3 col-md-6">
              <div class="panel panel-yellow">
                  <div class="panel-heading">
                      <div class="row">
                          <div class="col-xs-3">
                              <i class="fa fa-user-plus fa-5x"></i>
                          </div>
                          <div class="col-xs-9 text-right">
                              <div class="huge"><%= @doctor.patients.count %></div>
                              <div>Add Patient</div>
                          </div>
                      </div>
                  </div>
                  <a href="#">
                      <div class="panel-footer">
                          <span class="pull-left"> <%= link_to "Add a patient", new_doctor_patient_path%></span>
                          <span class="pull-right"><i class="fa fa-arrow-circle-right"></i></span>
                          <div class="clearfix"></div>
                      </div>
                  </a>
              </div>
          </div>
          <div class="col-lg-3 col-md-6">
              <div class="panel panel-red">
                  <div class="panel-heading">
                      <div class="row">
                          <div class="col-xs-3">
                              <i class="fa fa-exclamation-circle fa-5x"></i>
                          </div>
                          <div class="col-xs-9 text-right">
                              <div class="huge">-</div>
                              <div>Drop Patient</div>
                          </div>
                      </div>
                  </div>
                  <a href="#">
                      <div class="panel-footer">
                          <span class="pull-left">Drop a patient</span>
                            <a data-toggle="dropdown"><span class="pull-right"><i class="fa fa-arrow-circle-right"></i></span></a>
                          <div class="clearfix"></div>
                      </div>
                  </a>
              </div>
          </div>
      </div>
      <!-- panel row -->
  <br><br>
    <div class="row">
        <div class="col-lg-12">
            <h1 class="page-header">Active Precriptions</h1>
        </div>
        <!-- /.col-lg-12 -->
    </div>
      <table class="table table-striped table-hover ">
        <thead>
  
negative.code:         <h5>Total Compliance: <%= @taken = @comply.total_doctor_patients_compliance_figure %>% taken within 4 hours of scheduled dose</h5>
        </div>
          <div class="panel-body text-center">       
            <!--Start Donut Chart-->
            <!--===================================================-->
            <div id="taken" style="display: none">
              <%= @taken %>
            </div>
            <div id="missed" style="display:none">
              <%= 100 - @taken %>
            </div>
            <div id="totaldonut" class="pie-title-center">
              <canvas id="donut" width="200" height="200"></canvas>
            </div>
            <!--===================================================-->
            <!-- End Donut Chart -->
          </div>
      </div>
    </div>
  