<?php
if (isset($data["callId"])) {
?>

<div id="call_status_<?php echo $data["callId"] ?>" class="draggable">
    <i class="icon-phone" style="color: <?php echo $data["status"] == 0 ? "darkorange" : "green" ?>; font-size:25px;"></i>
</div>

<?php
} else {
?>

<div id="agent_status_<?php echo $data["id"] ?>" class="droppable">
    <i class="icon-phone" style="color: gray; font-size:25px;"></i>
</div>

<?php
}
?>