<?php
$darr = array();
$encounter_list = isset($encounter_list) ? $encounter_list : $darr;
//print_r($patient_list);
$icc = 0;
    foreach ($encounter_list as $prow) {
        $icc++;
        ?>

    <div class="row active-task m-b-20">
            <div class="col-xs-1">
            <div class="bg-type mb-1 mb-xs-0 mt-1">
                <span>PP</span>
            </div>
        </div>
        <div class="col-11">
            <small class="d-block mb-1"><?= $prow->reason ?></small>
            <h5 class="mb-0"><a href="/patient/selectPatient/<?=$prow->patient_id?>"><?= $prow->firstname ?> <?= $prow->lastname ?></a></h5>
            <ul class="list-unstyled list-inline">
                <li class="list-inline-item">
                    <small>Lizzy Halfman</small>
                </li>
                <li class="list-inline-item">|</li>
                <li class="list-inline-item">
                    <small><?=$prow->appt?></small>
                </li>
            </ul>
        </div>
    </div>
    <?
    }
?>

<!--

<div class="row active-task m-b-20">
                                <div class="col-xs-1">
                                    <div class="bg-type mb-1 mb-xs-0 mt-1">
                                        <span>PP</span>
                                    </div>
                                </div>
                                <div class="col-11">
                                    <small class="d-block mb-1">Car dealer</small>
                                    <h5 class="mb-0"><a href="#">Unread utf-8 in more quick overview</a></h5>
                                    <ul class="list-unstyled list-inline">
                                        <li class="list-inline-item">
                                            <small> Created by Lizzy Halfman</small>
                                        </li>
                                        <li class="list-inline-item">|</li>
                                        <li class="list-inline-item">
                                            <small>Saturday, March 17 2019</small>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                            <div class="row active-task m-b-20">
                                <div class="col-xs-1">
                                    <div class="bg-type bg-pink mb-1 mb-xs-0 mt-1">
                                        <span>SL</span>
                                    </div>
                                </div>
                                <div class="col-11">
                                    <small class="d-block mb-1">Webster HTML5 </small>
                                    <h5 class="mb-0"><a href="#">I get an error "No Direct Access Allowed!" when I enter purchase</a></h5>
                                    <ul class="list-unstyled list-inline">
                                        <li class="list-inline-item">
                                            <small> Created by Samuel Woods</small>
                                        </li>
                                        <li class="list-inline-item">|</li>
                                        <li class="list-inline-item">
                                            <small>Sunday, March 19 2019</small>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                            <div class="row active-task m-b-20">
                                <div class="col-xs-1">
                                    <div class="bg-type bg-success mb-1 mb-xs-0 mt-1">
                                        <span>MP</span>
                                    </div>
                                </div>
                                <div class="col-11">
                                    <small class="d-block mb-1">The corps</small>
                                    <h5 class="mb-0"><a href="#">OAuth Credentials not generating the key</a></h5>
                                    <ul class="list-unstyled list-inline">
                                        <li class="list-inline-item">
                                            <small> Created by Andrew nico</small>
                                        </li>
                                        <li class="list-inline-item">|</li>
                                        <li class="list-inline-item">
                                            <small>Monday, March 21 2019</small>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                            <div class="row active-task m-b-20">
                                <div class="col-xs-1">
                                    <div class="bg-type bg-orange mb-1 mb-xs-0 mt-1">
                                        <span>SP</span>
                                    </div>
                                </div>
                                <div class="col-11">
                                    <small class="d-block mb-1">Sam martin vCard</small>
                                    <h5 class="mb-0"><a href="#">Pre-Buy Questions : For bakery Shop (Mentor Android Application)</a></h5>
                                    <ul class="list-unstyled list-inline">
                                        <li class="list-inline-item">
                                            <small> Created by Jimmy Falicon</small>
                                        </li>
                                        <li class="list-inline-item">|</li>
                                        <li class="list-inline-item">
                                            <small>Friday, March 22 2019</small>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                            <div class="row active-task m-b-20">
                                <div class="col-xs-1">
                                    <div class="bg-type bg-info mb-1 mb-xs-0 mt-1">
                                        <span>AP</span>
                                    </div>
                                </div>
                                <div class="col-11">
                                    <small class="d-block mb-1">Mentor admin </small>
                                    <h5 class="mb-0"><a href="#">I need a payment option, for each seller per item</a></h5>
                                    <ul class="list-unstyled list-inline">
                                        <li class="list-inline-item">
                                            <small> Created by Brian Joedon</small>
                                        </li>
                                        <li class="list-inline-item">|</li>
                                        <li class="list-inline-item">
                                            <small>Saturday, March 17 2019</small>
                                        </li>
                                    </ul>
                                </div>
                            </div>

                            -->