<?php echo $this->doctype(); ?>
<html lang="en">
    <head>
        <!-- Global site tag (gtag.js) - Google Analytics -->
        <script async src="https://www.googletagmanager.com/gtag/js?id=UA-160374370-1" type="text/javascript"></script>
        <script>
            window.dataLayer = window.dataLayer || [];
            function gtag() {
                dataLayer.push(arguments);
            }
            gtag('js', new Date());

            gtag('config', 'UA-160374370-1');
        </script>
        <meta charset="utf-8">
        

        <?php
        echo $this->headMeta()
                ->appendName('viewport', 'width=device-width, initial-scale=1.0')
                ->appendHttpEquiv('X-UA-Compatible', 'IE=edge')
        ?>

        <!-- styles -->

        <?php
        echo $this->headLink(array(
                    'rel' => 'shortcut icon',
                    'type' => 'image/vnd.microsoft.icon',
                    'href' => $this->basePath() . '/images/favicon.ico'
                ))
                 ->prependStylesheet($this->basePath() . '/css/dashboard/lib/dashboard.min.css')
                
                ->prependStylesheet($this->basePath() . '/css/libs/jquery.timepicker.css')
                ->prependStylesheet($this->basePath() . '/css/custom/jquery.mCustomScrollbar.css')
                ->prependStylesheet($this->basePath() . '/css/custom/bookings.css')
                ->prependStylesheet($this->basePath() . '/css/libs/mloading.css')
                ->prependStylesheet($this->basePath() . '/css/custom/responsive.css')
                ->prependStylesheet($this->basePath() . '/css/custom/base.css')
                ->prependStylesheet($this->basePath() . '/css/libs/jquery.ihavecookies.css')
                ->prependStylesheet($this->basePath() . '/css/libs/selectize.css')
                ->prependStylesheet($this->basePath() . '/css/libs/input-select.min.css')
                ->prependStylesheet($this->basePath() . '/css/libs/image-crop.css')
                ->prependStylesheet($this->basePath() . '/css/libs/flexslider.css')
                ->prependStylesheet($this->basePath() . '/css/libs/animate.min.css')
                ->prependStylesheet($this->basePath() . '/css/libs/bootstrap-datetimepicker.css')
                ->prependStylesheet($this->basePath() . '/css/libs/bootstrap-clockpicker.min.css')
                ->prependStylesheet($this->basePath() . '/css/libs/bootstrap.min.css')
                ->prependStylesheet($this->basePath() . '/css/libs/bootstrap-slider.css')
                ->prependStylesheet($this->basePath() . '/css/libs/jquery.tooltip.css')
                ->prependStylesheet($this->basePath() . '/css/libs/font-awesome.min.css')
                ->prependStylesheet($this->basePath() . '/css/libs/jquery-ui.css')
        ?>

        <!-- Scripts -->
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
    </head>
    <body class="home">
         <div class="container">
        <header id="main-header">
        <a href="<?php echo $this->url('home'); ?>" class="logo">
                    <!-- mini logo for sidebar mini 50x50 pixels -->
                    <span class="logo-mini">
                        <img src="/images/logo.png" style="width:40px;">
                    </span>
                    <!-- logo for regular state and mobile devices -->
                    <span class="logo-lg">
                        <img src="/images/logo.png">
                    </span>
                </a>
                <!-- Header Navbar: style can be found in header.less -->
                <nav class="navbar navbar-static-top" role="navigation">
                    <!-- Sidebar toggle button-->
                    <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
                        <span class="sr-only">Toggle navigation</span>
                    </a>
                    <div class="navbar-custom-menu">
                        <ul class="nav navbar-nav">
                            
                            
                            <li class="dropdown dropdown-menu1">
					<a href="#" class="dropdown-toggle" data-toggle="dropdown">
						<i class="fa fa-bell-o"></i>
						<span class="visible-xs-inline-block position-right">Messages</span>
						<span class="badge bg-warning-400"></span>
					</a>
					
					<div class="dropdown-menu dropdown-content width-350">
						<div class="dropdown-content-heading">
							Messages
							<ul class="icons-list">
								<li><a href="#"><i class="icon-compose"></i></a></li>
							</ul>
						</div>
                                               <?php  $session = new \Zend\Session\Container('userlogin');                                                    
                                                      $user_id = isset($session->userData['user_id'])?$session->userData['user_id']:'';
                                                      $notificationData = $this->dashboardMenu()->getNotificationList($user_id); ?> 
						<ul class="media-list dropdown-content-body">
                                                        <?php  if (count($notificationData) > 0) {
                                                        foreach($notificationData as $value){?>
                                                    
							<li class="media">
								<div class="media-left">
									<img src="images/placeholder.jpg" class="img-circle img-sm" alt="">
									<span class="badge bg-danger-400 media-badge"></span>
								</div>

								<div class="media-body">
									<a href="#" class="media-heading">
										<span class="text-semibold"><?php echo $value['clientname'];?></span>
										<span class="media-annotation pull-right"><?php echo $value['time'];?></span>
									</a>

									<span class="text-muted"><?php echo $value['reference_number'];?> - <?php echo $value['booking_address'];?></span>
									<span class="text-muted"><?php echo $value['status'];?></span>
								</div>
							</li>
                                                        <?php  }}else{ ?>
                                                        <li class="media">No record Found</li>
                                                    <?php } ?>

							
						</ul>

						<div class="dropdown-content-footer">
							<a href="#" data-popup="tooltip" title="All messages"><i class="icon-menu display-block"></i></a>
						</div>
					</div>
				</li>
                            
                            
                            <li class="dropdown user user-menu ">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown">Support<span class="caret" style="margin-top: 0;"></span></a>
                                <ul class="dropdown-menu dropdown-menu1">

                                    <!-- Menu Body -->
                                    <!-- Menu Footer-->
                                     <li>

                                            <a href="<?php //echo $this->url('profile', array('action'=>'index'));?>" class="sign-out-dashboard">Contact Us</a>

                                     </li>
                                      <li>
                                            <a href="<?php //echo $this->url('profile', array('action'=>'index'));?>" class="sign-out-dashboard">Relationship Manager</a>

                                      </li>
                                    <li>
                                            <a href="#" class="sign-out-dashboard">Make Payment</a>

                                    </li>
                                     <li>
                                            <a href="#" class="sign-out-dashboard">Talk to Us</a>

                                    </li>
                                </ul>
                            </li>

                            <li class="dropdown user user-menu ">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown">

                                    <img src="../images/default_user.png" class="user-image" alt="User Image">

                                    <span class="hidden-xs"><?php
                                    $session = new \Zend\Session\Container('userlogin');
                                    //echo '<pre>';print_r($session->userData);die();
                                    $firstName= isset($session->userData['first_name'])?$session->userData['first_name']:'';
                                    $userType= isset($session->userData['user_type_name'])?$session->userData['user_type_name']:'';
                                    $roleName= isset($session->userData['role_name'])?$session->userData['role_name']:'';
                                    echo $firstName .' ('.$userType.')'; ?>
                                    </span>
                                </a>
                                <ul class="dropdown-menu">
                                    <!-- User image
                                    <li class="user-header">
                                        <img src="../images/default_user.png" class="img-circle" alt="User Image">
                                        <p>
                                           <?php echo $firstName; ?>
                                            <small><?php echo $roleName; ?></small>
                                        </p>
                                    </li>-->
                                    <!-- Menu Body -->
                                    <!-- Menu Footer-->
                                     <li>

                                            <a href="<?php echo $this->url('profile', array('action'=>'index'));?>" class="sign-out-dashboard">Profile</a>
                                     </li>
                                    <li>


                                            <a href="<?php echo $this->url('logout'); ?>" class="sign-out-dashboard">Logout</a>

                                    </li>
                                </ul>
                            </li>
                            <!-- Control Sidebar Toggle Button -->

                        </ul>
                    </div>
                </nav>
            
        </header>
       