<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title><?php echo e(get_company_name()); ?></title>
    <link rel="icon" type="image/png" sizes="16x16" href="<?php echo e(asset('assets/img/favicon.png')); ?>">
    <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
    <link href='http://fonts.googleapis.com/css?family=Ruda&subset=latin,latin-ext' rel='stylesheet' type='text/css'>
    <!-- Bootstrap 3.3.2 -->
    <link href="<?php echo e(asset('assets/css/dataTables.bootstrap.min.css')); ?>" rel="stylesheet" type="text/css" />
    <!-- Bootstrap 3.3.2 -->
    <link href="<?php echo e(asset('assets/css/bootstrap.min.css')); ?>" rel="stylesheet" type="text/css" />
    <!-- Font Awesome Icons -->
    <link href="<?php echo e(asset('assets/css/font-awesome.min.css')); ?>" rel="stylesheet" type="text/css" />
    <!-- Theme style -->
    <link href="<?php echo e(asset('assets/css/theme.min.css')); ?>" rel="stylesheet" type="text/css" />
    <!-- AdminLTE Skins. Choose a skin from the css/skins-->
    <link href="<?php echo e(asset('assets/css/theme-skin.min.css')); ?>" rel="stylesheet" type="text/css" />
    <link href="<?php echo e(asset('assets/css/pace.css')); ?>" rel="stylesheet" type="text/css" />
    <link href="<?php echo e(asset('assets/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css')); ?>" rel="stylesheet" type="text/css" />
    <link href="<?php echo e(asset('assets/plugins/pikaday/pikaday.css')); ?>" rel="stylesheet" type="text/css" />
    <link href="<?php echo e(asset('assets/plugins/chosen/chosen.css')); ?>" rel="stylesheet" type="text/css" />
    <link href="<?php echo e(asset('assets/plugins/animsition/css/animsition.min.css')); ?>" rel="stylesheet" type="text/css">
    <link href="<?php echo e(asset('assets/plugins/amaranjs//css/amaran.min.css')); ?>" rel="stylesheet" type="text/css">
    <link href="<?php echo e(asset('assets/css/style.css')); ?>" rel="stylesheet" type="text/css" />
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
    <![endif]-->
</head>
<body class="skin-blue sidebar-mini">
<div class="wrapper animsition">
<header class="main-header">
    <a href="<?php echo e(url('/')); ?>" class="logo">
        <!-- mini logo for sidebar mini 50x50 pixels -->
        <span class="logo-mini"><b>C</b>I 2</span>
        <!-- logo for regular state and mobile devices -->
        <span class="logo-lg"><img src="<?php echo e(asset('assets/img/logo.png')); ?>" alt="logo"/></span>
    </a>
<!-- Header Navbar: style can be found in header.less -->
<nav class="navbar navbar-fixed-top navbar-default" role="navigation">
    <!-- Sidebar toggle button-->
    <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
        <span class="sr-only">Toggle navigation</span>
    </a>
<!-- Navbar Right Menu -->
<div class="navbar-custom-menu">
<ul class="nav navbar-nav">
    <li class="dropdown">
        <?php
            if(Session::has('applocale')){
                $current_lang = get_current_language(Session::get('applocale'));
                if(!$current_lang){
                    $current_lang = get_default_language();
                    if(!$current_lang){
                        $current_lang = get_current_language(App::getLocale());
                    }
                }
            }
            else{
                $current_lang = get_default_language();
                if(!$current_lang){
                    $current_lang = get_current_language(App::getLocale());
                }
            }
            $current_flag = $current_lang->flag != '' ? $current_lang->flag : 'placeholder_Flag.jpg';
        ?>
        <a href="#" class="dropdown-toggle" data-toggle="dropdown"><img src="<?php echo e(asset('assets/img/flags/'.$current_flag)); ?>" class="language-img"><?php echo e($current_lang->locale_name); ?> <b class="caret"></b></a>
        <ul class="dropdown-menu">
            <?php $languages = get_languages(); ?>
            <?php $__currentLoopData = $languages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $language): $__env->incrementLoopIndices(); $loop = $__env->getFirstLoop(); ?>
                <?php if($language->short_name != $current_lang->short_name): ?>
                    <?php $flag = $language->flag != '' ? $language->flag : 'placeholder_Flag.jpg'; ?>
                <li>
                    <a rel="alternate" href="<?php echo e(route('client_lang_switch', $language->short_name)); ?>">
                        <img src="<?php echo e(asset('assets/img/flags/'.$flag)); ?>" class="language-img"><?php echo e($language->locale_name); ?>

                    </a>
                </li>
                    <li class="divider"></li>
                <?php endif; ?>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getFirstLoop(); ?>
        </ul>
    </li>
    <!-- User Account: style can be found in dropdown.less -->
    <li class="dropdown user user-menu">
        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
            <?php if(auth()->guard('user')->check()): ?>
            <img src="<?php echo e(asset( auth()->guard('user')->user()->photo != '' ? 'assets/img/uploads/client_images/'.auth()->guard('user')->user()->photo : 'assets/img/uploads/defaultavatar.png')); ?>" class="user-image" alt="User Image"/>
            <span class="hidden-xs"> <?php echo e(auth()->guard('user')->user()->name); ?> </span>
            <?php endif; ?>
            <b class="caret"></b>
        </a>
        <ul class="dropdown-menu">
            <!-- User image -->
            <li class="user-header">
                <?php if(auth()->guard('user')->check()): ?>
                <img src="<?php echo e(asset( auth()->guard('user')->user()->photo != '' ? 'assets/img/uploads/client_images/'.auth()->guard('user')->user()->photo : 'assets/img/uploads/defaultavatar.png')); ?>" class="img-circle" alt="User Image" />
                <p><?php echo e(auth()->guard('user')->user()->name); ?> </p>
                <?php endif; ?>
            </li>
            <!-- Menu Footer-->
            <li class="user-footer">
                <div class="pull-left">
                    <a href="<?php echo e(url('clientarea/cprofile')); ?>" class="btn btn-primary btn-sm btn-flat"><?php echo e(trans('application.edit_profile')); ?></a>
                </div>
                <div class="pull-right">
                    <a href="<?php echo e(route('client_logout')); ?>" class="btn btn-danger btn-sm btn-flat"><?php echo e(trans('application.logout')); ?></a>
                </div>
            </li>
        </ul>
    </li>
</ul>
</div>
</nav>
</header>
<!-- Left side column. contains the logo and sidebar -->
<?php echo $__env->make('clientarea.nav', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<?php echo $__env->yieldContent('content'); ?>
</div><!-- /.content-wrapper -->
    <div id="ajax-modal" class="modal fade" tabindex="-1" role="dialog" data-backdrop="static"></div>
</div><!-- ./wrapper -->
<!-- jQuery 2.1.3 -->
<script src="<?php echo e(asset('assets/js/jquery-2.1.3.min.js')); ?>"></script>
<!-- Bootstrap 3.3.2 JS -->
<script src="<?php echo e(asset('assets/js/bootstrap.min.js')); ?>" type="text/javascript"></script>
<!-- Bootstrap Dialog -->
<script src="<?php echo e(asset('assets/js/bootstrap-dialog.js')); ?>"></script>
<!-- Jquery Datatables -->
<script src="<?php echo e(asset('assets/js/jquery.dataTables.js')); ?>"></script>
<!-- Datatables -->
<script src="<?php echo e(asset('assets/js/datatables.js')); ?>"></script>
<!-- Pace.js -->
<script src="<?php echo e(asset('assets/js/pace.min.js')); ?>"></script>
<!-- summernote.js javascript -->
<script src="<?php echo e(asset('assets/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js')); ?>"></script>
<!-- datepicker.js javascript-->
<script src="<?php echo e(asset('assets/plugins/pikaday/moment.js')); ?>"></script>
<script src="<?php echo e(asset('assets/plugins/pikaday/pikaday.js')); ?>"></script>
<script src="<?php echo e(asset('assets/plugins/pikaday/pikaday.jquery.js')); ?>"></script>
<!-- chosen.js javascript-->
<script src="<?php echo e(asset('assets/plugins/chosen/chosen.jquery.js')); ?>"></script>
<script src="<?php echo e(asset('assets/plugins/animsition/js/jquery.animsition.min.js')); ?>" type="text/javascript"></script>
<!-- validator.js javascript-->
<script src="<?php echo e(asset('assets/js/validator.min.js')); ?>"></script>
<!-- toastr.js javascript-->
<script src="<?php echo e(asset('assets/plugins/amaranjs/js/jquery.amaran.min.js')); ?>"></script>
<!-- custom.js -->
<script src="<?php echo e(asset('assets/js/app.js')); ?>"></script>
<script src="<?php echo e(asset('assets/js/custom.js')); ?>"></script>
<?php echo $__env->yieldContent('scripts'); ?>
<?php echo $__env->make('common.common_js', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<?php if(Session::has('flash_notification.level')): ?>
    <?php $message_type = Session::get('flash_notification.level'); ?>
    <?php if($message_type == 'success'): ?>
        <script>
            $.amaran({
                'theme'     :'awesome ok',
                'content'   :{
                    title:'Success !',
                    message:'<?php echo e(Session::get('flash_notification.message')); ?>!',
                    info:'',
                    icon:'fa fa-check-square-o'
                },
                'position'  :'bottom right',
                'outEffect' :'slideBottom'
            });
        </script>
    <?php elseif($message_type == 'danger'): ?>
        <script>
            $.amaran({
                'theme'     :'awesome error',
                'content'   :{
                    title:'Error !',
                    message:'<?php echo e(Session::get('flash_notification.message')); ?>!',
                    info:'',
                    icon:'fa fa-times-circle-o'
                },
                'position'  :'bottom right',
                'outEffect' :'slideBottom'
            });
        </script>
    <?php endif; ?>
<?php endif; ?>
</body>
</html>