
    
        
            
            

                    
                

                    
                    
                
            
            
                    
                        
                            
                        

                        
                            
                                
                                   
        
                                    
                                

                                
                                    
                                
                            
                        
                    
                
            
        

    




<div style="background-color: #f1f1f1">
    <div class="col-md-12 col-sm-6" style="background-color: #ffffff">
        <div class="row" style="background-color: #ffffff">

            <div class="col-md-4 col-sm-2 col-xs-3">
                <img src="<?php echo asset('src/images/logo.jpg'); ?>" class="img-responsive">
            </div>

            <div class="col-md-6 col-sm-2 col-xs-6">
                
                    <?php if(auth()->guard('admin')->check()): ?>

                    <h1 style="color: #bf6030"><strong><?php echo get_company_name(); ?></strong></h1>
                    <?php endif; ?>
                
                <?php if(auth()->guard('admin')->guest()): ?>
                    <h1><strong>Spider IT Limited</strong></h1>
                    <img src="src/images/<?php echo $comp_code; ?>.jpeg" class="img-responsive">
                
                <?php endif; ?>
            </div>

            <div class="col-md-2 col-sm-2 col-xs-2">
                <ul class="nav navbar-nav navbar-right">
                    <!-- Authentication Links -->
                    <?php if(!Auth::guard('admin')->check()): ?>
                        <li><a href="<?php echo e(url('/login')); ?>"><strong>LOGIN</strong></a></li>
                        <li><a href="<?php echo e(url('/register')); ?>">Register</a></li>
                    <?php else: ?>
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
                                <strong><?php echo e(Auth::guard('admin')->user()->name); ?></strong>    <span class="caret"></span>
                            </a>

                            <ul class="dropdown-menu" role="menu">
                                <li>
                                    <a href="<?php echo e(url(Request::segment(1),'logout')); ?>"
                                       onclick="event.preventDefault();
                                                     document.getElementById('logout-form').submit();">
                                        Logout
                                    </a>

                                    <form id="logout-form" action="<?php echo e(url(Request::segment(1),'logout')); ?>" method="POST" style="display: none;">
                                        <?php echo e(csrf_field()); ?>

                                    </form>
                                </li>
                            </ul>
                        </li>
                    <?php endif; ?>
                </ul>
            </div>
        </div>
    </div>
</div>