anchor.diff:          <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 -->
  +          <!--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>
  
positive.code: 
    <!--Danger Panel-->
    <!--===================================================-->
    <div class="panel panel-bordered panel-danger">
      <div class="panel-heading">
        <h3 class="panel-title">Reported Side Effects</h3>
      </div>
      <div class="panel-body">
          <div class="table-responsive">
                      <table class="table table-striped table-hover">
                        <thead>
                          <tr>
                            <th style="width:4ex"></th>
                            <th>Name</th>
                            <th>Medication</th>
                            <th class="text-center">Effect Reported</th>
                            <th class="text-right">Contact Patient</th>
                          </tr>
                        </thead>
                        <tbody>
                          <tr>
                            <td><a href="#" class="btn-link">NY531</a></td>
                            <td>Steve N. Horton</td>
                            <td>$24.98</td>
                            <td class="text-center"><span class="label label-table label-success">Enterprise</span></td>
                            <td class="text-right">
                              <a class="btn btn-xs btn-default add-tooltip" data-toggle="tooltip" href="<%= new_doctor_message_path(@doctor)%>" data-original-title="Edit" data-container="body"><i class="fa fa-pencil"></i></a>
  
  
                            </td>
                          </tr>
                        </tbody>
                    </table>
                </div>
            </div>
      </div>
    </div>
    <!--===================================================-->
  
negative.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>
  