<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            Pelayanan Bpjs
            <small><?= $abdulradjak['NamaPerusahaan']; ?> </small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> Vclaim</a></li>
            <li class="active">Peserta BPJS</li>
        </ol>
    </section>

    <!-- Main content -->
    <section class="content">

        <div class="row">
            <div class="col-md-12">
                <?= $this->session->flashdata('message'); ?>
                    <div class="tab-content">
                    <div class="table-responsive">
                        <table id="example1" class="table table-bordered">
                            <thead>
                                <tr style="font-weight: bold;" class="bg-yellow-gradient">
                                    <td>No.</td>
                                    <td>Cases</td>
                                    <td>MR</td>
                                    <td>Nama</td>
                                    <td>Kategori</td>
                                    <td>Status</td>
                                    <td>Tanggal Kunjungan</td>
                                    <td>Penjamin</td>
                                    <td>Unit</td>
                                    <td>Status</td>
                                    <td>Action</td>
                                </tr>
                            </thead>
                            <tbody>
                            
                                <?php 
                                $no = 1;
                                foreach($pasienbpjs as $data) : ?>
                                <tr class="<?php
                                            if ($data['Unit'] == 'POLI BIDAN') echo "table";
                                            elseif ($data['Unit'] == 'POLI UMUM') echo "bg-primary";
                                            elseif ($data['Unit'] == 'POLI GIGI') echo "bg-green";
                                            ?>">
                                    <td><?= $no++; ?></td>
                                    <td><?= $data['Case ID']; ?></td>
                                    <td><?= $data['PatientCode']; ?></td>
                                    <td><?= $data['nama']; ?></td>
                                    <td><?= $data['Category']; ?></td>
                                    <td><?= $data['Case Status']; ?></td>
                                    <td><?= date('d-m-Y', strtotime($data['Intake Date'])); ?></td>
                                    <td><?= $data['CompanyName']; ?></td>
                                    <td><?= $data['Unit']; ?></td>
                                    <td><?php 
                                    if($data['StatusPlayanan'] == '1'){
                                        echo 'SudahDilayani';
                                    }else{
                                        echo 'BelumDilayani';
                                    }
                                    ?></td>
                                    <td> <a href="<?= base_url('Pendaftaran/viewpelayanan'. '/'. $data['Case ID'].'/'. $data['PatientCode'] ); ?>" class="btn btn-sm btn-warning ">Tampil</a></td>
                                </tr>
                                <?php endforeach; ?>
                            </tbody>
                        </table>
                    </div>
                    </div>

            </div>
            <!-- -->

        </div>

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


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