<?php
if(IS_LOGIN==1){
	if($asign_twilio_staffs!=-1){?>
	<style>
	.call-window {margin-bottom: 0px; position: absolute; display: block; top: auto; z-index: 1050; bottom: 0px;right: 20px;}
	</style>

	<div class="call-window aside-lg panel bg-primary" id="call_window" style="display:none;">
		<header class="panel-heading">
			<span class="text-u-c"><?=$vis_language['TXTINCOMINGCALLON']?> <span id="twilio_incoming_number"></span>
			<button class="btn btn-link btn-sm pull-right m-t-n-xs" data-toggle="class:hide" data-target="#call">
				<span class="text-active">
				  <i class="vh vh-angle-down text-white"></i>
				</span>
				<span class="text">
				  <i class="vh vh-angle-up text-white"></i>
				</span>
			</button>
		</header>
		<div id="call" class="panel-body bg-white">
			<div id="twilio_client_details_area"></div>
			<div class="clear m-t m-l-none">
			<div class="h5 hide"><small class="text-u-c"></small></div>
			  
			</div>
			<div class="row m-t-md">
				<div class="col-xs-12 text-center">
					<div class="btn-group" id="twilio_call_accept_reject">
						<button class="btn btn-primary m-r" id="twilio_call_accept">
							  <i class="vh vh-call vh-lg"></i> <?=$vis_language['TXTITILACCEPT']; ?>
						</button>
						<button class="btn vh-danger-bg pull-right" id="twilio_call_reject">
							  <i class="vh vh-call vh-lg"></i> <?=$vis_language['TXTITILREJECT']; ?>
						</button>
					</div>
					<button class="btn btn-lg vh-danger-bg btn-block" id="twilio_call_hangup_btn" style="display:none;">
						  <i class="vh vh-call vh-lg"></i> <?= $vis_language['TXTHANGUP']; ?>
					</button>
				</div>
			</div>
		</div>
	</div>
<?php }}?>
<script src="<?= VIS_PATH_SCRIPT; ?>bootstrap.min.js"></script>
<? if(($_COOKIE['IS_LOGOUT']!=1 && isset($_COOKIE['vis_staff_local'])) && ($this->error != 6)) { ?>
<script src="<?= VIS_PATH_SCRIPT; ?>bootstrap-select/bootstrap-select.js"></script>
<script src="<?= VIS_PATH_SCRIPT; ?>app.js"></script>
<script src="<?= VIS_PATH_SCRIPT; ?>sortable/jquery.sortable.js"></script>
<script src="<?= VIS_PATH_SCRIPT; ?>datatables/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="<?= VIS_PATH_SCRIPT; ?>bootstrap_pagination/jquery.twbsPagination.min.js"></script>
<script src="<?= VIS_PATH_SCRIPT; ?>app.plugin.js"></script>
<script src="<?= VIS_PATH_SCRIPT; ?>slider/pStrength.jquery.js"></script>
<? if(isset($operation['vis_firstlogin'])){
	if($operation['vis_firstlogin']==1){ ?>
<link rel="stylesheet" href="<?= VIS_PATH_SCRIPT; ?>intro/introjs.css" type="text/css">
<script src="<?= VIS_PATH_SCRIPT; ?>intro/intro.min.js"></script>

<? }} ?>


<? } ?>
</body></html>