<div class="row">


    <div class="col-md-4">
    <div class="box box-widget widget-user-2">
      <div class="widget-user-header bg-blue">
        <table>
          <tr>
            <td><i class="fa fa-building fa-5x" style="width: 20px;"></i></td>
            <td style="padding-bottom: 23%; padding-top: 23%;">
            <h3 class="widget-user-username">Pasien Rawat Inap</h3> 
            <h4 class="widget-user-desc"><?php echo date('d, F Y')?></h4>
            </td>
          </tr>
        </table>
            </div>
            <div class="box-footer">
              <div class="table-responsive">
                <table id="table_rincian" class="table table-bordered">  
                        <thead>  
                            <tr>  
                                 <th width="33.4%">Kelas</th>  
                                 <th width="33.4%">Ruangan</th>  
                                 <th width="33.4%" style="text-align: center;">Jumlah</th>
                            </tr>
                            <tbody>
                              <?php foreach($results as $row){ ?>
                                  <tr>
                                      <td><?php echo $row->Class ?></td>
                                      <td><?php echo $row->OfficeDescription ?></td>
                                      <td style="text-align: center;"><?php echo $row->Jumlah ?></td>
                                  </tr>
                              <?php } ?>
                            </tbody>
                        </thead>     
                  </table>
              </div>
            </div>
        </div>
  </div>

</div>

<div class="row">
    


</div>

<script type="text/javascript">

// ===== KUNJUNGAN IRJA HARI INI =====
var chart = AmCharts.makeChart( "chart", {
    "theme": "light",
    "type": "serial",
    "startDuration": 2,
    "dataProvider": [
      <?php foreach ($data as $content){ ?>
        {
            "country": "<?php echo ConvertBulan($content->Bulan)." ".$content->Tahun; ?>",
            "visits": <?php echo $content->Jumlah; ?>,
            "color": "<?php printf( "#%06X", mt_rand( 0, 0xFFFFFF )); ?>"
        },
        <?php } ?>
        ],
    "valueAxes": [{
        "position": "left",
        "axisAlpha":0,
        "gridAlpha":0
    }],
    "graphs": [{
        "balloonText": "[[category]]: <b>[[value]]</b>",
        "colorField": "color",
        "labelText": "[[value]]",
        "fillAlphas": 0.85,
        "lineAlpha": 0.1,
        "type": "column",
        "topRadius":1,
        "valueField": "visits"
    }],
    "depth3D": 40,
  "angle": 30,
    "chartCursor": {
        "categoryBalloonEnabled": false,
        "cursorAlpha": 0,
        "zoomable": false
    },
    "categoryField": "country",
    "categoryAxis": {
        "gridPosition": "start",
        "axisAlpha":0,
        "gridAlpha":0

    },
    "export": {
      "enabled": true
     }

}, 0);
</script>