
<html lang="{{Fun::lang()}}">
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">	
		<meta name="csrf-token" content="{{ csrf_token() }}">
		<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
		<title>BOREY THAI CHHUNKRY</title>
		<link rel="stylesheet" href="{{ asset('assets/frontend/css/bootstrap.min.css') }}">
		<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/font-awesome/4.6.2/css/font-awesome.min.css">
		<link rel="stylesheet" type="text/css" href="{{ asset('assets/frontend/css/styles.css') }}">
        <link rel="stylesheet" type="text/css" href="{{ asset('assets/frontend/css/animate.css') }}">
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick-theme.min.css">
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.min.css">


	</head>

	<body class="preload" style="visibility:hidden;">  
    	@if ($message = Session::get('success'))
            <div class="alert-message alert-success" role="alert">
                <h4 class="alert-heading">Well done!</h4>
                <hr>
                <p class="mb-0">{{ $message }}</p>
            </div>
        @endif

        @if ($message = Session::get('danger'))
            <div class="alert-message alert-danger " role="alert">
                <p>{{ $message }}</p>
            </div>
        @endif
    	<div class="wrapper">
	        <div class="content">
	            <div class="top-menu">
	                <div class="container">
	                    <div class="row">
	                        <div class="col-lg-3 col-sm-12">
	                            <div class="logo">
                                    <a href="{{ route('home') }}"><img src="{{ asset('assets/images/logo.png') }}" alt="" title=""></a>
	                            </div>
	                        </div>
	                        <div class="col-lg-9 col-sm-12">
	                            <div class="nav-top">
	                                <ul class="blog-left">
	                                   <!--  <li><i class="fa fa-map-marker" aria-hidden="true"></i> #D2 , ភូមិ ត្រពាំងទួល , 
                                            សង្កាត់ កំបូល,
                                            ខណ្ឌ ពោធិ៍សែនជ័យ , រាជធានីភ្នំពេញ 
                                        </li> -->
                                         <li><i class="fa fa-phone" aria-hidden="true"></i> <strong> (+855) 10 366 944 / (+855) 93 366 944</strong></li>
	                                    <li><i class="fa fa-envelope" aria-hidden="true"></i> info@realtybooking.com.kh</li>
	                                </ul>
	                                <ul class="blog-right">
                                    @if(Auth::user() == null)
                                      <li><a href="{{route('admin-agency.create')}}"><i class="fa fa-lock" aria-hidden="true"></i> Login</a></li>
                                    @else

                                     @if(Auth::user()->role == 'Administrator')

                                     <li><a href="{{ route('dashboard.super-admin') }}"> <i class="fa fa-dashboard" aria-hidden="true"></i> Dashboard</a></li>                       
                                    <li><a href="{{ route('logout') }}"  onclick="event.preventDefault(); document.getElementById('logout-form').submit();"><i class="fa fa-unlock" aria-hidden="true"></i>  Logout <form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;"> @csrf
                                    </form></a></li>    
                                    @else  

                                    <li><a href="{{ route('dashboard-agencies.index') }}"><i class="fa fa-dashboard" aria-hidden="true"></i> Dashboard</a></li>             
                                    <li><a href="{{ route('logout') }}"  onclick="event.preventDefault(); document.getElementById('logout-form').submit();"><i class="fa fa-unlock" aria-hidden="true"></i> Logout <form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
                                                @csrf
                                        </form></a></li>  
                                     @endif
                                     @endif  
	                                </ul>
	                            </div>
	                            <div class="nav-bottom">
	                                <ul>
	                                  <li><a href="{{route('home')}}">Home</a></li>
	                                  <li><a href="{{route('about')}}">About Us</a></li>
	                                  <li> <a href="#">Project<i class='fa fa-angle-down'></i></a>
	                                    <ul>
                                            @foreach($projects as $pro => $project)
                                            <li><a href="{{ route('item.index',Crypt::encrypt($project->id)) }}"> {{ $project->project_name }}</a></li>                       
                                            @endforeach
	                                    </ul>
	                                  </li>
	                                  
	                                  <li><a href="{{route('contact')}}">Contact Us</a></li>
                                      
	                                </ul>
	                            </div>
	                        </div>
	                    </div>
	                </div>
	            </div>
	        </div>
	    </div>

		@yield('content')

		

		
    <div class="wrapper">
        <div class="footer">
            <div class="mask"></div>
            <div class="container">
                <div class="row">
                    <div class="col-xs-12">
                       <!--  <div class="footer-logo">
                           <a href="{{ route('home') }}"><img src="{{ asset('assets/images/logo.png') }}" alt="" title=""></a>
                        </div>
                        <div class="des-logo">
                            <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Autem dolorum nobis, sunt asperiores. Quaerat sequi quia voluptatum, nobis natus perferendis? Perferendis, nostrum quis laborum officia deserunt ipsa enim inventore consequatur.Lorem ipsum dolor sit amet, consectetur adipisicing elit. Autem dolorum nobis, sunt asperiores.</p>
                        </div> -->
                        <div class="network">
                            <a href="#"><i class="fa fa-facebook"></i></a>                          
                            <a href="#"><i class="fa fa-twitter"></i></a>
                            <a href="#"><i class="fa fa-youtube"></i></a>
                            <a href="#"><i class="fa fa-google"></i></a>
                        </div>
                    </div>
                </div>
            </div>
            <div class="container">
                <div class="col-sm-12">
                    <div class="footer-bottom">
                        <p>Copyright © 2017 realtbooking.com.kh All rights reserved.</p>
                    </div>
                </div>
            </div>
        </div>
        
    </div>

    @yield('script')
    <script type="text/javascript" src="{{ asset('assets/frontend/js/jquery.min.js') }}"></script>
    <script type="text/javascript" src="{{ asset('assets/frontend/js/bootstrap.min.js') }}"></script>

    <script src="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.min.js"></script>
    <script>

        $(document).ready(function($) {
            $("body").removeAttr("class style");
            $('input').attr("autocomplete", "off");    
        });

        $('.nav-bottom li').hover(
        function() {
        $('ul', this).stop().slideDown(200);
        },
        function() {
        $('ul', this).stop().slideUp(200);
        }
        );

        var _gaq = _gaq || [];
        _gaq.push(['_setAccount', 'UA-36251023-1']);
        _gaq.push(['_setDomainName', 'jqueryscript.net']);
        _gaq.push(['_trackPageview']);

        (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
        })();



       


        $(document).ready(function(){
            $('.ourpartner-slider').slick({
                  autoplay:false,
                  dots: true,
                  infinite: true,
                  speed: 300,
                  slidesToShow: 6,
                  slidesToScroll: 1,
                  responsive: [
                    {
                      breakpoint: 1024,
                      settings: {
                        variableWidth: true,
                        centerMode: true,
                        centerPadding: '40px',
                        slidesToShow: 3,
                        slidesToScroll: 1,
                        infinite: true,
                        dots: true
                      }
                    },
                    {
                      breakpoint: 600,
                      settings: {
                        variableWidth: true,
                        centerMode: true,
                        centerPadding: '40px',
                        slidesToShow: 1,
                        slidesToScroll: 1
                      }
                    },
                    {
                      breakpoint: 480,
                      settings: {
                        variableWidth: true,
                        centerMode: true,
                        centerPadding: '40px',
                        slidesToShow: 1,
                        slidesToScroll: 1
                      }
                    }
                  ]
              });
    

            $('.sale_receive').keyup(function(){
                var sale_receive = $(this).val();
                var balance = $('.balance').val();
                if(balance != 'null'){
                     if(parseFloat(sale_receive) > parseFloat(balance)){
                        $('.message').show();
                        $('.sale_receive').val('');
                     }else{
                        $('.message').hide();
                     }
                }
            });
        });


        $(function() {
                var asset = window.location.href;
                $(".bottom-menu ul li a").each(function() {
                    if (asset == (this.href)) {
                        $(this).closest(".bottom-menu ul li").addClass("current-menu-item");
                    }
                });
            });
            $('form').submit(function() {
                $(this).find("input[type='submit']").prop('disabled',true);
                $(this).find("button[type='submit']").prop('disabled',true);
            });
            $('.number-only').keypress(function(e) {
                if(isNaN(this.value+""+String.fromCharCode(e.charCode))) return false;
            });
            $('#construction').modal('show');
        </script>
</body>
</html>