<div class="modal fade" id="progressIndicatorDetailsModal" tabindex="-1" role="dialog" aria-labelledby="progressIndicatorModalLabel" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <!-- <h4 class="modal-title">Default Modal</h4> -->
        <h5 class="modal-title text-center" id="progressIndicatorDetailsModalHeading">Progress Indicators</h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
        <div class="">
          <ul class="to_do">
            <?php $current_indicators = json_decode($showclient->progress_indicators, true); ?>

            @foreach($progress_indicators as $indirow)
            <?php 
              $arr_check = in_array($indirow, $current_indicators);
              $theCheck = ($arr_check == true) ? "checked" : "";
              $theDisabled = ($arr_check == true) ? "" : "disabled";
             ?>
            <li>
              <p><input type="checkbox" {{ $theCheck }} class="flat progressIndicatorCheckbox" {{ $theDisabled }} > {{ $indirow }}</p>
            </li>
            @endforeach
          </ul>
        </div>
      </div>
    </div>
    <!-- /.modal-content -->
  </div>
  <!-- /.modal-dialog -->
</div>
<!-- /.modal -->
