<?php
date_default_timezone_set("Asia/Jakarta");
?>
<style>
    .trSelect {
        cursor: pointer;
    }
</style>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            Berkas CPPT
            <small>Klinik</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
            <li class="active">Berkas</li>
        </ol>
    </section>

    <!-- Main content -->
    <section class="content">
        <!-- riki -->
        <div class="box box-primary">
            <div class="box-header with-border">
                <h3 class="box-title"><a href="#" onClick="history.go(-1);" class="btn btn-sm btn-primary">Kembali</a></h3>
                <div class="box-tools pull-right">
                    <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
                    <button class="btn btn-box-tool" data-widget="remove"><i class="fa fa-remove"></i></button>
                </div>
            </div><!-- /.box-header -->
            <div class="box-body">
                <ul class="timeline">
                    <!-- timeline time label -->
                    <li class="time-label">
                        <span class="bg-red">
                            Histori Cppt
                        </span>
                    </li>
                    <!-- /.timeline-label -->
                    <!-- timeline item -->
                    <?php
                    foreach ($listCppt as $list) :
                    ?>
                        <li>
                            <i class="fa fa-envelope bg-blue"></i>
                            <div class="timeline-item">
                                <span class="time"><i class="fa fa-calendar-o"></i> <?= date('d F Y', strtotime($list['DateDetail'])); ?> <?= date('H:i', strtotime($list['TimeDetail'])); ?></span>
                                <h3 class="timeline-header"><a href="#"><?= $list['UserCreated']; ?></a> <small style="color: gray;">Pembuat</small></h3>
                                <div class="timeline-body">
                                    <p style="font-weight: normal;">
                                        <?= $list['Description']; ?>
                                    </p>
                                </div>
                            </div>
                        </li>
                    <?php
                    endforeach;
                    ?>
                </ul>
            </div><!-- /.box-body -->
        </div><!-- /.box -->

    </section><!-- /.content -->
</div><!-- /.content-wrapper -->