<!-- Right Panel -->

    <div id="right-panel" class="right-panel">

        <!-- Header-->
        <header id="header" class="header">

            <div class="header-menu">

                <div class="col-sm-7">
                    <a id="menuToggle" class="menutoggle pull-left"><i class="fas fa-tasks"></i></a>
                    <div class="header-left">
                        <button class="search-trigger"><i class="fas fa-search"></i></button>
                        <div class="form-inline">
                            <form class="search-form">
                                <input class="form-control mr-sm-2" type="text" placeholder="Search ..." aria-label="Search">
                                <button class="search-close" type="submit"><i class="fas fa-close"></i></button>
                            </form>
                        </div>
                        <?php 
                            $session = Session::getInstance();
                            $notifications = apply_filters('activity_log_new_notification', array(), $session->id);
                         ?>
                        <div class="dropdown for-notification">
                          <button class="btn btn-secondary dropdown-toggle" type="button" id="notification" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                            <i class="far fa-bell"></i>
                            <span class="count bg-danger"><?php echo count($notifications); ?></span>
                          </button>
                          <div class="dropdown-menu" aria-labelledby="notification" style="max-height: 300px;overflow-x: hidden;overflow-y: scroll; max-width: 400px;">
                                <?php if (is_array($notifications) && count($notifications)): ?>
                                    <?php foreach ($notifications as $notification): ?>
                                        <a class="dropdown-item media" href="<?php echo $notification['action']; ?>">
                                            <!-- <i class="fa fa-check"></i> -->
                                            <p><?php echo $notification['content']; ?></p>
                                        </a>
                                    <?php endforeach ?>
                                <?php endif ?>
                          </div>
                        </div>

                        <div class="dropdown for-message">
                          <button class="btn btn-secondary dropdown-toggle" type="button" id="message" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                            <i class="fas fa-envelope"></i>
                            <span class="count bg-primary">0</span>
                          </button>
                          <div class="dropdown-menu" aria-labelledby="message">
                            <p class="red">You have 0 Mails</p>
                                  </div>
                        </div>

                        <?php //do_action('header_prompts', []); ?>

                        
                    </div>
                </div>

                <div class="col-sm-5">
                    <div class="user-area dropdown float-right">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                            <img class="user-avatar" src="<?php echo get_user_image($user_meta['id']) ?>" alt="User Avatar">
                        </a>

                        <div class="user-menu dropdown-menu">
                                <a class="nav-link" href="profile"><i class="fa fa- user"></i>My Profile</a>

                                <!-- <a class="nav-link" href="#"><i class="fa fa- user"></i>Notifications <span class="count">13</span></a> -->

                                <a class="nav-link" href="change-password"><i class="fa fa -cog"></i>Change Password</a>

                                <a class="nav-link" href="logout"><i class="fas fa-power -off"></i>Logout</a>
                        </div>
                    </div>

                    

                </div>
            </div>

        </header><!-- /header -->
        <!-- Header-->

        <div class="breadcrumbs">
            <div class="col-sm-4">
                <div class="page-header float-left">
                    <div class="page-title">
                        <h1><?php echo $post_meta['title']; ?></h1>
                    </div>
                </div>
            </div>
            <div class="col-sm-8">
                
            </div>
        </div>

        <div class="mt-3">

            <div class="col-lg-12">
                <?php 
                    $this->get_content($post_meta);
                 ?> 
                 <div style="display: block; width: 100%; height: 50px;"></div>
            </div><!--/.col-->

        </div> <!-- .content -->
        <div class="mt-3">
            <?php require_once("copytext.php"); ?>
        </div> <!-- .content -->
    </div><!-- /#right-panel -->


    <!-- Right Panel -->