<div class='panel panel-default margin-top-20' id='active-loas'> <div class='panel-heading'>Approved Leaves of Absence</div> <table class='table table-striped table-hover' id='loas'> <thead> <tr> <th>Member name</th> <th class="hidden-xs">Reason</th> <th class="hidden-xs hidden-sm">End Date</th> <th class='text-center'>Status</th> </tr> </thead> <tbody> <?php if (count(LeaveOfAbsence::count_active($division->id))) { ?> <?php foreach (LeaveOfAbsence::find_all($division->id) as $player) { ?> <?php $expired = strtotime(date("M d, Y", strtotime($player->date_end))) < strtotime('now') ? true : false; ?> <?php $comment = !empty($player->comment) ? htmlentities($player->comment, ENT_QUOTES) : "Not available"; ?> <?php $date_end = date("M d, Y", strtotime($player->date_end)); ?>