<!doctype html>
<html lang="it" class="no-js">

<head>

    <!-- Global site tag (gtag.js) - Google Analytics -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=UA-12619965-34"></script>
    <script>
        window.dataLayer = window.dataLayer || [];

        function gtag() {
            dataLayer.push(arguments);
        }
        gtag('js', new Date());

        gtag('config', 'UA-12619965-34');
    </script>

    <title>Calcio a 5 Anteprima</title>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

    <link href='https://fonts.googleapis.com/css?family=Lato:300,400,700,900,400italic' rel='stylesheet' type='text/css'>
    <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">

    <link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css" media="screen">
    <link rel="stylesheet" type="text/css" href="/css/jquery.bxslider.css" media="screen">
    <link rel="stylesheet" type="text/css" href="/css/font-awesome.css" media="screen">
    <link rel="stylesheet" type="text/css" href="/css/magnific-popup.css" media="screen">
    <link rel="stylesheet" type="text/css" href="/css/owl.carousel.css" media="screen">
    <link rel="stylesheet" type="text/css" href="/css/owl.theme.css" media="screen">
    <link rel="stylesheet" type="text/css" href="/css/ticker-style.css" />
    <link rel="stylesheet" type="text/css" href="/css/style.css" media="screen">
    <link rel="stylesheet" type="text/css" href="/css/print.css" media="print">
    <link rel="stylesheet" type="text/css" href="/css/custom.css" media="screen">
    <link rel="stylesheet" type="text/css" href="/css/lightslider.min.css" media="screen">

    <link rel="apple-touch-icon" sizes="120x120" href="/apple-touch-icon.png">
    <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
    <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
    <link rel="manifest" href="/site.webmanifest">
    <link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
    <meta name="msapplication-TileColor" content="#da532c">
    <meta name="theme-color" content="#ffffff">

    <style>
        nav#menu-container {

            position: relative;
            width: 100%;
            height: 56px;
        }

        #btn-nav-previous {
            text-align: center;
            color: black;
            cursor: pointer;
            font-size: 18px;
            position: absolute;
            left: 0px;

            fill: #FFF;
        }

        #btn-nav-next {
            text-align: center;
            color: black;
            cursor: pointer;
            font-size: 18px;
            position: absolute;
            right: 0px;

            fill: #FFF;
        }

        .menu-inner-box {
            width: 90%;
            white-space: nowrap;
            margin: 0 auto;
            overflow: hidden;
            padding: 0px 5px;
            box-sizing: border-box;
        }

        .menu {
            padding: 0;
            margin: 0;
            list-style-type: none;
            display: block;
            text-align: center;
        }

        a.menu-item {
            color: #fff;
            text-decoration: none;
            text-align: center;
            white-space: no-wrap;
        }

        .menu-item:hover {
            text-decoration: underline;
        }


        @media only screen and (max-width: 480px) {
            #btn-nav-previous {
                /* display:none; */
            }

            #btn-nav-next {
                /* display:none; */
            }

            .menu-inner-box {
                width: 80%;
                overflow-x: auto;
            }
        }

        @if ($home->image != '')
            @media (min-width: 400px) {
                .bg-adv {
                    background-color: white;
                }

                .adv {
                    background-color: white;
                }
            }

            @media (min-width: 1170px) {
                .navbar-nav>li>a {
                    padding: 20px 10px 20px 10px;
                    z-index: 2;
                }

                #container {
                    margin-top: 120px;
                }

                .container {
                    width: 1040px !important;
                }

                .bg-adv {
                    /*https://source.unsplash.com/twukN12EN7c/1920x1080*/
                    background: url('/files/{{ $home->image }}');
                    background-size: 1920px !important;
                    background-repeat: no-repeat;
                    background-attachment: fixed;
                    background-position: top;
                }

                .adv {

                    max-width: 1040px;
                    padding-right: 5px;
                    padding-left: 5px;
                    margin-right: auto;
                    margin-left: auto;
                    /* margin-top: 120px!important; */
                    background-color: white;
                }

            }
        @endif


        .slide-video {
            width: 320px;
        }

        .slide-video>ul {
            list-style: none outside none;
            padding-left: 0;
            margin-bottom: 0;
        }

        .slide-video>ul>li {
            display: block;
            float: left;
            margin-right: 6px;
            cursor: pointer;
        }

        .slide-video>ul>li>img {
            display: block;
            height: auto;
            max-width: 90%;
        }

        .caption {
            background-color: rgba(0, 0, 0, 0.55);
            position: relative;
            top: 0;
            left: 0;
            padding: 5px;
            color: white;
            width: 320px;
        }

        .caption p {
            margin: 0;
            color: white;
        }

        // overlay
        .overlay {
            position: fixed;
            background: $black;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            text-align: center;
            z-index: 999999 !important;
            display: none;

            iframe {
                margin-top: 10%;
            }
        }

        .togglesearch {
            background: #FFFFFF;
            position: absolute;
            top: 0px;
            z-index: 99999;
            right: 8%;
            width: 350px;
            height: 60px;
            box-shadow: 0 0 10px rgba(0, 0, 0, .5);

            display: none;
        }
    </style>



</head>

<body class="bg-adv home">
    @foreach ($aHome as $id => $img)
        <input type="hidden" id="img{{ $id }}" value="{{ $img['image'] }}">
        <input type="hidden" id="url{{ $id }}" value="{{ $img['url'] }}">
    @endforeach

    <div id="container" class="adv">
        @include('layouts.header')

        <section class="block-wrapper">
            <div class="container">
                <!-- Advertisement carousel with proper closing tags -->
                <div class="advertisement carousel slide" style="margin-top:0px;">
                    <div class="desktop-advert carousel-inner">
                        @if ($home->banner_underb_google != '')
                            <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
                            <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-0209495346002620"
                                data-ad-slot="{{ $home->banner_underb_google }}" data-ad-format="auto"
                                data-full-width-responsive="true"></ins>
                            <script>
                                (adsbygoogle = window.adsbygoogle || []).push({});
                            </script>
                        @else
                            @php
                                $found = false;
                                $count = 0;
                            @endphp
                            @if (isset($home->banner_underb) && $home->banner_underb != '')
                                <div class="item {{ $count == 0 ? 'active' : '' }}">
                                    <a href="{{ $home->banner_underb_url }}"
                                        onclick="scroll_to('torneo-nazionale-citta-di-padova-')"><img
                                            src="/files/{{ $home->banner_underb }}" width="1000" alt=""
                                            style="border:1px solid gray;"></a>
                                </div>
                                @php
                                    $count += 1;
                                    $found = true;
                                @endphp
                            @endif
                            @if (isset($home->banner_underb_2) && $home->banner_underb_2 != '')
                                <div class="item {{ $count == 0 ? 'active' : '' }}">
                                    <a href="{{ $home->banner_underb_url_2 }}"><img
                                            src="/files/{{ $home->banner_underb_2 }}" width="1000" alt=""
                                            style="border:1px solid gray;"></a>
                                </div>
                                @php
                                    $found = true;
                                @endphp
                            @endif
                            @if (isset($home->banner_underb_3) && $home->banner_underb_3 != '')
                                <div class="item {{ $count == 0 ? 'active' : '' }}">
                                    <a href="{{ $home->banner_underb_url_3 }}"><img
                                            src="/files/{{ $home->banner_underb_3 }}" width="1000" alt=""
                                            style="border:1px solid gray;"></a>
                                </div>
                                @php
                                    $found = true;
                                @endphp
                            @endif
                            @if (isset($home->banner_underb_4) && $home->banner_underb_4 != '')
                                <div class="item {{ $count == 0 ? 'active' : '' }}">
                                    <a href="{{ $home->banner_underb_url_4 }}"><img
                                            src="/files/{{ $home->banner_underb_4 }}" width="1000" alt=""
                                            style="border:1px solid gray;"></a>
                                </div>
                                @php
                                    $found = true;
                                @endphp
                            @endif
                            @if (isset($home->banner_underb_5) && $home->banner_underb_5 != '')
                                <div class="item {{ $count == 0 ? 'active' : '' }}">
                                    <a href="{{ $home->banner_underb_url_5 }}"><img
                                            src="/files/{{ $home->banner_underb_5 }}" width="1000" alt=""
                                            style="border:1px solid gray;"></a>
                                </div>
                                @php
                                    $found = true;
                                @endphp
                            @endif
                            @if (!$found)
                                <div class="widget" style="width:997px;height:90px;border:1px solid gray;margin:0px;"></div>
                            @endif
                        @endif
                    </div>
                    <div class="tablet-advert carousel-inner">
                        @if ($home->banner_underb_google != '')
                            <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
                            <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-0209495346002620"
                                data-ad-slot="{{ $home->banner_underb_google }}" data-ad-format="auto"
                                data-full-width-responsive="true"></ins>
                            <script>
                                (adsbygoogle = window.adsbygoogle || []).push({});
                            </script>
                        @else
                            @php
                                $found = false;
                                $count = 0;
                            @endphp
                            @if (isset($home->banner_underb) && $home->banner_underb != '')
                                <div class="item {{ $count == 0 ? 'active' : '' }}">
                                    <a href="{{ $home->banner_underb_url }}"
                                        onclick="scroll_to('torneo-nazionale-citta-di-padova-')"><img
                                            src="/files/{{ $home->banner_underb }}" width="1000" alt=""
                                            style="border:1px solid gray;"></a>
                                </div>
                                @php
                                    $count += 1;
                                    $found = true;
                                @endphp
                            @endif
                            @if (isset($home->banner_underb_2) && $home->banner_underb_2 != '')
                                <div class="item {{ $count == 0 ? 'active' : '' }}">
                                    <a href="{{ $home->banner_underb_url_2 }}"><img
                                            src="/files/{{ $home->banner_underb_2 }}" width="1000" alt=""
                                            style="border:1px solid gray;"></a>
                                </div>
                                @php
                                    $found = true;
                                @endphp
                            @endif
                            @if (isset($home->banner_underb_3) && $home->banner_underb_3 != '')
                                <div class="item {{ $count == 0 ? 'active' : '' }}">
                                    <a href="{{ $home->banner_underb_url_3 }}"><img
                                            src="/files/{{ $home->banner_underb_3 }}" width="1000" alt=""
                                            style="border:1px solid gray;"></a>
                                </div>
                                @php
                                    $found = true;
                                @endphp
                            @endif
                            @if (isset($home->banner_underb_4) && $home->banner_underb_4 != '')
                                <div class="item {{ $count == 0 ? 'active' : '' }}">
                                    <a href="{{ $home->banner_underb_url_4 }}"><img
                                            src="/files/{{ $home->banner_underb_4 }}" width="1000" alt=""
                                            style="border:1px solid gray;"></a>
                                </div>
                                @php
                                    $found = true;
                                @endphp
                            @endif
                            @if (isset($home->banner_underb_5) && $home->banner_underb_5 != '')
                                <div class="item {{ $count == 0 ? 'active' : '' }}">
                                    <a href="{{ $home->banner_underb_url_5 }}"><img
                                            src="/files/{{ $home->banner_underb_5 }}" width="1000" alt=""
                                            style="border:1px solid gray;"></a>
                                </div>
                                @php
                                    $found = true;
                                @endphp
                            @endif
                            @if (!$found)
                                <div class="widget" style="width:997px;height:90px;border:1px solid gray;margin:0px;">
                                </div>
                            @endif
                        @endif
                    </div>
                    <div class="mobile-advert carousel-inner">
                        @if ($home->banner_underb_google != '')
                            <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
                            <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-0209495346002620"
                                data-ad-slot="{{ $home->banner_underb_google }}" data-ad-format="auto"
                                data-full-width-responsive="true"></ins>
                            <script>
                                (adsbygoogle = window.adsbygoogle || []).push({});
                            </script>
                        @else
                            @php
                                $found = false;
                                $count = 0;
                            @endphp
                            @if (isset($home->banner_underb) && $home->banner_underb != '')
                                <div class="item {{ $count == 0 ? 'active' : '' }}">
                                    <a href="{{ $home->banner_underb_url }}"
                                        onclick="scroll_to('torneo-nazionale-citta-di-padova-')"><img
                                            src="/files/{{ $home->banner_underb }}" width="1000300" alt=""
                                            style="border:1px solid gray;"></a>
                                </div>
                                @php
                                    $count += 1;
                                    $found = true;
                                @endphp
                            @endif
                            @if (isset($home->banner_underb_2) && $home->banner_underb_2 != '')
                                <div class="item {{ $count == 0 ? 'active' : '' }}">
                                    <a href="{{ $home->banner_underb_url_2 }}"><img
                                            src="/files/{{ $home->banner_underb_2 }}" width="1000300" alt=""
                                            style="border:1px solid gray;"></a>
                                </div>
                                @php
                                    $found = true;
                                @endphp
                            @endif
                            @if (isset($home->banner_underb_3) && $home->banner_underb_3 != '')
                                <div class="item {{ $count == 0 ? 'active' : '' }}">
                                    <a href="{{ $home->banner_underb_url_3 }}"><img
                                            src="/files/{{ $home->banner_underb_3 }}" width="300" alt=""
                                            style="border:1px solid gray;"></a>
                                </div>
                                @php
                                    $found = true;
                                @endphp
                            @endif
                            @if (isset($home->banner_underb_4) && $home->banner_underb_4 != '')
                                <div class="item {{ $count == 0 ? 'active' : '' }}">
                                    <a href="{{ $home->banner_underb_url_4 }}"><img
                                            src="/files/{{ $home->banner_underb_4 }}" width="300" alt=""
                                            style="border:1px solid gray;"></a>
                                </div>
                                @php
                                    $found = true;
                                @endphp
                            @endif
                            @if (isset($home->banner_underb_5) && $home->banner_underb_5 != '')
                                <div class="item {{ $count == 0 ? 'active' : '' }}">
                                    <a href="{{ $home->banner_underb_url_5 }}"><img
                                            src="/files/{{ $home->banner_underb_5 }}" width="300" alt=""
                                            style="border:1px solid gray;"></a>
                                </div>
                                @php
                                    $found = true;
                                @endphp
                            @endif
                            @if (!$found)
                                <div class="widget" style="width:300;height:50px;border:1px solid gray;margin:0px;">
                                </div>
                            @endif
                        @endif
                    </div>


                </div>

                <section class="ticker-news" style="margin-top: 30px;">
                    <div class="container">
                        <div class="ticker-news-box" style="margin-left:-15px;">
                            <span class="breaking-news">breaking news</span>
                            <span class="new-news">New</span>
                            <ul id="js-news">
                                @foreach ($breaking_news as $news)
                                    <li class="news-item"><span
                                            class="time-news">{{ date('d/m/Y H:i', strtotime($news->date)) }}</span>
                                        {{ $news->title }}</li>
                                @endforeach
                            </ul>
                        </div>

                    </div>
                </section>



                <div class="row" style="margin-top:30px;min-height:620px !important;margin-right:0!important">
                    <div class="col-sm-8">

                        <!-- block content -->
                        <div class="block-content">
                            <div class="title-section">
                                <h1><span style="font-size:21px;">Primo piano</span></h1>
                            </div>

                            <div class="carousel-box owl-wrapper">
                                @if (isset($home->slide1) && $home->slide1 != '')
                                    <div class="image-slider snd-size">

                                        <div class="news-post image-post">

                                            @if ($home->slide1->live)
                                                <span class="top-live">LIVE</span>
                                            @endif
                                            <a href="{{ $home->slide1->slug }}"><img
                                                    src="/files/news/{{ $home->slide1->image }}" alt=""></a>
                                            <div class="box-title">
                                                <div class="inner-hover">
                                                    <h2><a
                                                            href="/{{ $home->slide1->slug }}">{{ $home->slide1->title }}</a>
                                                    </h2>
                                                    <ul class="post-tags">
                                                        <li><i
                                                                class="fa fa-clock-o"></i><span>{{ date('d/m/Y', strtotime($home->slide1->date)) }}</span>
                                                        </li>
                                                    </ul>
                                                </div>
                                            </div>
                                        </div>

                                    </div>

                                @endif
                            </div>
                            <div class="row primo-piano">
                                <div class="col-md-6">
                                    <div class="carousel-box owl-wrapper">
                                        <div class="image-slider snd-size">
                                            <ul class="{{ $home->hasSlider('left') ? 'bxslider bxsliderLeft' : '' }}">
                                                @if (isset($home->left1) && $home->left1 != '')
                                                    <li>
                                                        <div class="item news-post standard-post">
                                                            <div class="post-gallery">
                                                                <img src="/files/news/{{ $home->left1->image }}"
                                                                    alt="">
                                                            </div>
                                                            <div class="post-content">
                                                                <h2><a
                                                                        href="{{ $home->left1->slug }}">{{ $home->left1->title }}</a>
                                                                </h2>
                                                                <ul class="post-tags">
                                                                    <li><i
                                                                            class="fa fa-clock-o"></i>{{ date('d/m/Y', strtotime($home->left1->date)) }}
                                                                    </li>
                                                                </ul>
                                                            </div>
                                                        </div>
                                                    </li>
                                                @endif
                                                @if (isset($home->left2) && $home->left2 != '')
                                                    <li>
                                                        <div class="item news-post standard-post">
                                                            <div class="post-gallery">
                                                                <img src="/files/news/{{ $home->left2->image }}"
                                                                    alt="">
                                                            </div>
                                                            <div class="post-content">
                                                                <h2><a
                                                                        href="{{ $home->left2->slug }}">{{ $home->left2->title }}</a>
                                                                </h2>
                                                                <ul class="post-tags">
                                                                    <li><i
                                                                            class="fa fa-clock-o"></i>{{ date('d/m/Y', strtotime($home->left2->date)) }}
                                                                    </li>
                                                                </ul>
                                                            </div>
                                                        </div>
                                                    </li>
                                                @endif
                                                @if (isset($home->left3) && $home->left3 != '')
                                                    <li>
                                                        <div class="item news-post standard-post">
                                                            <div class="post-gallery">
                                                                <img src="/files/news/{{ $home->left3->image }}"
                                                                    alt="">
                                                            </div>
                                                            <div class="post-content">
                                                                <h2><a
                                                                        href="{{ $home->left3->slug }}">{{ $home->left3->title }}</a>
                                                                </h2>
                                                                <ul class="post-tags">
                                                                    <li><i
                                                                            class="fa fa-clock-o"></i>{{ date('d/m/Y', strtotime($home->left3->date)) }}
                                                                    </li>
                                                                </ul>
                                                            </div>
                                                        </div>
                                                    </li>
                                                @endif
                                                @if (isset($home->left4) && $home->left4 != '')
                                                    <li>
                                                        <div class="item news-post standard-post">
                                                            <div class="post-gallery">
                                                                <img src="/files/news/{{ $home->left4->image }}"
                                                                    alt="">
                                                            </div>
                                                            <div class="post-content">
                                                                <h2><a
                                                                        href="{{ $home->left4->slug }}">{{ $home->left4->title }}</a>
                                                                </h2>
                                                                <ul class="post-tags">
                                                                    <li><i
                                                                            class="fa fa-clock-o"></i>{{ date('d/m/Y', strtotime($home->left4->date)) }}
                                                                    </li>
                                                                </ul>
                                                            </div>
                                                        </div>
                                                    </li>
                                                @endif
                                                @if (isset($home->left5) && $home->left5 != '')
                                                    <li>
                                                        <div class="item news-post standard-post">
                                                            <div class="post-gallery">
                                                                <img src="/files/news/{{ $home->left5->image }}"
                                                                    alt="">
                                                            </div>
                                                            <div class="post-content">
                                                                <h2><a
                                                                        href="{{ $home->left5->slug }}">{{ $home->left5->title }}</a>
                                                                </h2>
                                                                <ul class="post-tags">
                                                                    <li><i
                                                                            class="fa fa-clock-o"></i>{{ date('d/m/Y', strtotime($home->left5->date)) }}
                                                                    </li>
                                                                </ul>
                                                            </div>
                                                        </div>
                                                    </li>
                                                @endif
                                            </ul>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-6">
                                    <div class="carousel-box owl-wrapper">
                                        <div class="image-slider snd-size">
                                            <ul
                                                class="{{ $home->hasSlider('right') ? 'bxslider bxsliderRight' : '' }}">
                                                @if (isset($home->right1) && $home->right1 != '')
                                                    <li>
                                                        <div class="item news-post standard-post">
                                                            <div class="post-gallery">
                                                                <img src="/files/news/{{ $home->right1->image }}"
                                                                    alt="">
                                                            </div>
                                                            <div class="post-content">
                                                                <h2><a
                                                                        href="{{ $home->right1->slug }}">{{ $home->right1->title }}</a>
                                                                </h2>
                                                                <ul class="post-tags">
                                                                    <li><i
                                                                            class="fa fa-clock-o"></i>{{ date('d/m/Y', strtotime($home->right1->date)) }}
                                                                    </li>
                                                                </ul>
                                                            </div>
                                                        </div>
                                                    </li>
                                                @endif
                                                @if (isset($home->right2) && $home->right2 != '')
                                                    <li>
                                                        <div class="item news-post standard-post">
                                                            <div class="post-gallery">
                                                                <img src="/files/news/{{ $home->right2->image }}"
                                                                    alt="">
                                                            </div>
                                                            <div class="post-content">
                                                                <h2><a
                                                                        href="{{ $home->right2->slug }}">{{ $home->right2->title }}</a>
                                                                </h2>
                                                                <ul class="post-tags">
                                                                    <li><i
                                                                            class="fa fa-clock-o"></i>{{ date('d/m/Y', strtotime($home->right2->date)) }}
                                                                    </li>
                                                                </ul>
                                                            </div>
                                                        </div>
                                                    </li>
                                                @endif
                                                @if (isset($home->right3) && $home->right3 != '')
                                                    <li>
                                                        <div class="item news-post standard-post">
                                                            <div class="post-gallery">
                                                                <img src="/files/news/{{ $home->right3->image }}"
                                                                    alt="">
                                                            </div>
                                                            <div class="post-content">
                                                                <h2><a
                                                                        href="{{ $home->right3->slug }}">{{ $home->right3->title }}</a>
                                                                </h2>
                                                                <ul class="post-tags">
                                                                    <li><i
                                                                            class="fa fa-clock-o"></i>{{ date('d/m/Y', strtotime($home->right3->date)) }}
                                                                    </li>
                                                                </ul>
                                                            </div>
                                                        </div>
                                                    </li>
                                                @endif
                                                @if (isset($home->right4) && $home->right4 != '')
                                                    <li>
                                                        <div class="item news-post standard-post">
                                                            <div class="post-gallery">
                                                                <img src="/files/news/{{ $home->right4->image }}"
                                                                    alt="">
                                                            </div>
                                                            <div class="post-content">
                                                                <h2><a
                                                                        href="{{ $home->right4->slug }}">{{ $home->right4->title }}</a>
                                                                </h2>
                                                                <ul class="post-tags">
                                                                    <li><i
                                                                            class="fa fa-clock-o"></i>{{ date('d/m/Y', strtotime($home->right4->date)) }}
                                                                    </li>
                                                                </ul>
                                                            </div>
                                                        </div>
                                                    </li>
                                                @endif
                                                @if (isset($home->right5) && $home->right5 != '')
                                                    <li>
                                                        <div class="item news-post standard-post">
                                                            <div class="post-gallery">
                                                                <img src="/files/news/{{ $home->right5->image }}"
                                                                    alt="">
                                                            </div>
                                                            <div class="post-content">
                                                                <h2><a
                                                                        href="{{ $home->right5->slug }}">{{ $home->right5->title }}</a>
                                                                </h2>
                                                                <ul class="post-tags">
                                                                    <li><i
                                                                            class="fa fa-clock-o"></i>{{ date('d/m/Y', strtotime($home->right5->date)) }}
                                                                    </li>
                                                                </ul>
                                                            </div>
                                                        </div>
                                                    </li>
                                                @endif
                                            </ul>
                                        </div>
                                    </div>
                                </div>
                            </div>

                        </div>
                        <!-- End block content -->

                    </div>
                    <!-- sidebar -->

                    <div class="col-sm-4 sidebar">
                        <div class="top-search-custom">
                            <div class="search-trigger-custom">
                                <a href="#"><i class="fa fa-search" aria-hidden="true"></i></a>
                            </div>
                            <div class="search-dropdown-custom">
                                <form class="navbar-form form-inline my-2 my-lg-0" role="search" autocomplete="off"
                                    action="/ricerca" method="POST">
                                    {{ csrf_field() }}
                                    <div class="search-input-wrapper">
                                        <input type="text" id="search-field-custom" name="search"
                                            placeholder="Cerca qui">
                                        <button type="submit" style="top:11px" class="search-submit-custom">
                                            <i class="fa fa-search"></i>
                                        </button>
                                    </div>
                                </form>
                            </div>
                        </div>


                        @if (false)

                            <div class="advertisement carousel slide" data-ride="carousel"
                                style="margin-right:0px;padding-top:14px; margin-top:0px;margin-bottom:20px;">
                                <div class="desktop-advert carousel-inner">
                                    @if ($home->banner_first_google != '')
                                        <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
                                        <ins class="adsbygoogle" style="display:block"
                                            data-ad-client="ca-pub-0209495346002620"
                                            data-ad-slot="{{ $home->banner_first_google }}" data-ad-format="auto"
                                            data-full-width-responsive="true"></ins>
                                        <script>
                                            (adsbygoogle = window.adsbygoogle || []).push({});
                                        </script>
                                    @else
                                        @php
                                            $found = false;
                                            $count = 0;
                                        @endphp
                                        @if (isset($home->banner_first) && $home->banner_first != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_first_url }}"><img
                                                        src="/files/{{ $home->banner_first }}" width="300"
                                                        alt="" style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $count += 1;
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (isset($home->banner_first_2) && $home->banner_first_2 != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_first_url_2 }}"><img
                                                        src="/files/{{ $home->banner_first_2 }}" width="300"
                                                        alt="" style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (isset($home->banner_first_3) && $home->banner_first_3 != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_first_url_3 }}"><img
                                                        src="/files/{{ $home->banner_first_3 }}" width="300"
                                                        alt="" style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (isset($home->banner_first_4) && $home->banner_first_4 != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_first_url_4 }}"><img
                                                        src="/files/{{ $home->banner_first_4 }}" width="300"
                                                        alt="" style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (isset($home->banner_first_5) && $home->banner_first_5 != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_first_url_5 }}"><img
                                                        src="/files/{{ $home->banner_first_5 }}" width="300"
                                                        alt="" style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (!$found)
                                            <div class="widget"
                                                style="width:300px;height:250px;border:1px solid gray;"></div>
                                        @endif
                                    @endif
                                </div>
                                <div class="tablet-advert  carousel-inner">
                                    @if ($home->banner_first_google != '')
                                        <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
                                        <ins class="adsbygoogle" style="display:block"
                                            data-ad-client="ca-pub-0209495346002620"
                                            data-ad-slot="{{ $home->banner_first_google }}" data-ad-format="auto"
                                            data-full-width-responsive="true"></ins>
                                        <script>
                                            (adsbygoogle = window.adsbygoogle || []).push({});
                                        </script>
                                    @else
                                        @php
                                            $found = false;
                                            $count = 0;
                                        @endphp
                                        @if (isset($home->banner_first) && $home->banner_first != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_first_url }}"><img
                                                        src="/files/{{ $home->banner_first }}" width="300"
                                                        alt="" style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $count += 1;
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (isset($home->banner_first_2) && $home->banner_first_2 != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_first_url_2 }}"><img
                                                        src="/files/{{ $home->banner_first_2 }}" width="300"
                                                        alt="" style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (isset($home->banner_first_3) && $home->banner_first_3 != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_first_url_3 }}"><img
                                                        src="/files/{{ $home->banner_first_3 }}" width="300"
                                                        alt="" style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (isset($home->banner_first_4) && $home->banner_first_4 != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_first_url_4 }}"><img
                                                        src="/files/{{ $home->banner_first_4 }}" width="300"
                                                        alt="" style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (isset($home->banner_first_5) && $home->banner_first_5 != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_first_url_5 }}"><img
                                                        src="/files/{{ $home->banner_first_5 }}" width="300"
                                                        alt="" style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (!$found)
                                            <div class="widget"
                                                style="width:300px;height:250px;border:1px solid gray;">
                                            </div>
                                        @endif
                                    @endif
                                </div>
                                <div class="mobile-advert carousel-inner">
                                    @if ($home->banner_first_google != '')
                                        <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
                                        <ins class="adsbygoogle" style="display:block"
                                            data-ad-client="ca-pub-0209495346002620"
                                            data-ad-slot="{{ $home->banner_first_google }}" data-ad-format="auto"
                                            data-full-width-responsive="true"></ins>
                                        <script>
                                            (adsbygoogle = window.adsbygoogle || []).push({});
                                        </script>
                                    @else
                                        @php
                                            $found = false;
                                            $count = 0;
                                        @endphp
                                        @if (isset($home->banner_first) && $home->banner_first != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_first_url }}"><img
                                                        src="/files/{{ $home->banner_first }}" width="300"
                                                        alt="" style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $count += 1;
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (isset($home->banner_first_2) && $home->banner_first_2 != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_first_url_2 }}"><img
                                                        src="/files/{{ $home->banner_first_2 }}" width="300"
                                                        alt="" style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (isset($home->banner_first_3) && $home->banner_first_3 != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_first_url_3 }}"><img
                                                        src="/files/{{ $home->banner_first_3 }}" width="300"
                                                        alt="" style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (isset($home->banner_first_4) && $home->banner_first_4 != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_first_url_4 }}"><img
                                                        src="/files/{{ $home->banner_first_4 }}" width="300"
                                                        alt="" style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (isset($home->banner_first_5) && $home->banner_first_5 != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_first_url_5 }}"><img
                                                        src="/files/{{ $home->banner_first_5 }}" width="300"
                                                        alt="" style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (!$found)
                                            <div class="widget"
                                                style="width:300px;height:250px;border:1px solid gray;">
                                            </div>
                                        @endif
                                    @endif
                                </div>
                            </div>


                            <!-- slider-caption-box -->
                            <div class="slider-caption-box">
                                <div class="title-section">
                                    <h1><span style="font-size:21px;">Video</span></h1>
                                </div>

                                <div class="slide-video">
                                    <ul id="lightSlider">
                                        @foreach ($videos as $idx => $video)
                                            <li data-thumb="/files/videos/{{ $video->image }}">
                                                <a href="{{ $video->id }}" class="view-video">
                                                    <img src="/files/videos/{{ $video->image }}"
                                                        style="width:320px;height:200px;" />
                                                    <div class="caption">
                                                        <p>{{ $video->title }}</p>
                                                        <p><small>{{ date('d/m/Y', strtotime($video->date)) }}</small>
                                                        </p>
                                                    </div>
                                                </a>
                                            </li>
                                        @endforeach
                                    </ul>
                                </div>
                            </div>
                            <div class="center-button" style="margin-top:20px;">
                                <a href="/videos">ARCHIVIO VIDEO</a>
                            </div>
                            <!-- End slider-caption-box -->
                        @endif

                        @if ($show_top)
                            <div class="advertisement carousel slide" data-ride="carousel"
                                style="margin-right:0px;padding-top:14px; margin-top:0px;;margin-bottom:20px;">
                                <div class="desktop-advert carousel-inner">
                                    @if ($home->banner_right_top_google != '')
                                        <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
                                        <ins class="adsbygoogle" style="display:block"
                                            data-ad-client="ca-pub-0209495346002620"
                                            data-ad-slot="{{ $home->banner_right_top_google }}"
                                            data-ad-format="auto" data-full-width-responsive="true"></ins>
                                        <script>
                                            (adsbygoogle = window.adsbygoogle || []).push({});
                                        </script>
                                    @else
                                        @php
                                            $found = false;
                                            $count = 0;
                                        @endphp
                                        @if (isset($home->banner_right_top) && $home->banner_right_top != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_right_top_url }}"><img
                                                        src="/files/{{ $home->banner_right_top }}" width="300"
                                                        alt="" style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $count += 1;
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (isset($home->banner_right_top_2) && $home->banner_right_top_2 != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_right_top_2_url }}"><img
                                                        src="/files/{{ $home->banner_right_top_2 }}" width="300"
                                                        alt="" style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (isset($home->banner_right_top_3) && $home->banner_right_top_3 != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_right_top_3_url }}"><img
                                                        src="/files/{{ $home->banner_right_top_3 }}" width="300"
                                                        alt="" style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (isset($home->banner_right_top_4) && $home->banner_right_top_4 != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_right_top_4_url }}"><img
                                                        src="/files/{{ $home->banner_right_top_4 }}" width="300"
                                                        alt="" style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (isset($home->banner_right_top_5) && $home->banner_right_top_5 != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_right_top_5_url }}"><img
                                                        src="/files/{{ $home->banner_right_top_5 }}" width="300"
                                                        alt="" style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (!$found)
                                            <div class="widget"
                                                style="width:300px;height:250px;border:1px solid gray;"></div>
                                        @endif
                                    @endif
                                </div>
                                <div class="tablet-advert  carousel-inner">
                                    @if ($home->banner_right_top_google != '')
                                        <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
                                        <ins class="adsbygoogle" style="display:block"
                                            data-ad-client="ca-pub-0209495346002620"
                                            data-ad-slot="{{ $home->banner_right_top_google }}"
                                            data-ad-format="auto" data-full-width-responsive="true"></ins>
                                        <script>
                                            (adsbygoogle = window.adsbygoogle || []).push({});
                                        </script>
                                    @else
                                        @php
                                            $found = false;
                                            $count = 0;
                                        @endphp
                                        @if (isset($home->banner_right_top) && $home->banner_right_top != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_right_top_url }}"><img
                                                        src="/files/{{ $home->banner_right_top }}" width="300"
                                                        alt="" style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $count += 1;
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (isset($home->banner_right_top_2) && $home->banner_right_top_2 != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_right_top_2_url }}"><img
                                                        src="/files/{{ $home->banner_right_top_2 }}" width="300"
                                                        alt="" style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (isset($home->banner_right_top_3) && $home->banner_right_top_3 != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_right_top_3_url }}"><img
                                                        src="/files/{{ $home->banner_right_top_3 }}" width="300"
                                                        alt="" style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (isset($home->banner_right_top_4) && $home->banner_right_top_4 != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_right_top_4_url }}"><img
                                                        src="/files/{{ $home->banner_right_top_4 }}" width="300"
                                                        alt="" style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (isset($home->banner_right_top_5) && $home->banner_right_top_5 != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_right_top_5_url }}"><img
                                                        src="/files/{{ $home->banner_right_top_5 }}" width="300"
                                                        alt="" style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (!$found)
                                            <div class="widget"
                                                style="width:300px;height:250px;border:1px solid gray;"></div>
                                        @endif
                                    @endif
                                </div>
                                <div class="mobile-advert carousel-inner">
                                    @if ($home->banner_right_top_google != '')
                                        <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
                                        <ins class="adsbygoogle" style="display:block"
                                            data-ad-client="ca-pub-0209495346002620"
                                            data-ad-slot="{{ $home->banner_right_top_google }}"
                                            data-ad-format="auto" data-full-width-responsive="true"></ins>
                                        <script>
                                            (adsbygoogle = window.adsbygoogle || []).push({});
                                        </script>
                                    @else
                                        @php
                                            $found = false;
                                            $count = 0;
                                        @endphp
                                        @if (isset($home->banner_right_top) && $home->banner_right_top != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_right_top_url }}"><img
                                                        src="/files/{{ $home->banner_right_top }}" width="300"
                                                        alt="" style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $count += 1;
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (isset($home->banner_right_top_2) && $home->banner_right_top_2 != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_right_top_2_url }}"><img
                                                        src="/files/{{ $home->banner_right_top_2 }}" width="300"
                                                        alt="" style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (isset($home->banner_right_top_3) && $home->banner_right_top_3 != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_right_top_3_url }}"><img
                                                        src="/files/{{ $home->banner_right_top_3 }}" width="300"
                                                        alt="" style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (isset($home->banner_right_top_4) && $home->banner_right_top_4 != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_right_top_4_url }}"><img
                                                        src="/files/{{ $home->banner_right_top_4 }}" width="300"
                                                        alt="" style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (isset($home->banner_right_top_5) && $home->banner_right_top_5 != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_right_top_5_url }}"><img
                                                        src="/files/{{ $home->banner_right_top_5 }}" width="300"
                                                        alt="" style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (!$found)
                                            <div class="widget"
                                                style="width:300px;height:250px;border:1px solid gray;"></div>
                                        @endif
                                    @endif
                                </div>
                            </div>

                            <div class="advertisement carousel slide" data-ride="carousel"
                                style="margin-right:0px;margin-top:0px;">
                                <div class="desktop-advert carousel-inner">
                                    @if ($home->banner_right_bottom_google != '')
                                        <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
                                        <ins class="adsbygoogle" style="display:block"
                                            data-ad-client="ca-pub-0209495346002620"
                                            data-ad-slot="{{ $home->banner_right_bottom_google }}"
                                            data-ad-format="auto" data-full-width-responsive="true"></ins>
                                        <script>
                                            (adsbygoogle = window.adsbygoogle || []).push({});
                                        </script>
                                    @else
                                        @php
                                            $found = false;
                                            $count = 0;
                                        @endphp
                                        @if (isset($home->banner_right_bottom) && $home->banner_right_bottom != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_right_bottom_url }}"><img
                                                        src="/files/{{ $home->banner_right_bottom }}" width="300"
                                                        alt="" style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $count += 1;
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (isset($home->banner_right_bottom_2) && $home->banner_right_bottom_2 != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_right_bottom_2_url }}"><img
                                                        src="/files/{{ $home->banner_right_bottom_2 }}"
                                                        width="300" alt=""
                                                        style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (isset($home->banner_right_bottom_3) && $home->banner_right_bottom_3 != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_right_bottom_3_url }}"><img
                                                        src="/files/{{ $home->banner_right_bottom_3 }}"
                                                        width="300" alt=""
                                                        style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (isset($home->banner_right_bottom_4) && $home->banner_right_bottom_4 != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_right_bottom_4_url }}"><img
                                                        src="/files/{{ $home->banner_right_bottom_4 }}"
                                                        width="300" alt=""
                                                        style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (isset($home->banner_right_bottom_5) && $home->banner_right_bottom_5 != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_right_bottom_5_url }}"><img
                                                        src="/files/{{ $home->banner_right_bottom_5 }}"
                                                        width="300" alt=""
                                                        style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (!$found)
                                            <div class="widget"
                                                style="width:300px;height:250px;border:1px solid gray;"></div>
                                        @endif
                                    @endif
                                </div>
                                <div class="tablet-advert  carousel-inner">
                                    @if ($home->banner_right_bottom_google != '')
                                        <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
                                        <ins class="adsbygoogle" style="display:block"
                                            data-ad-client="ca-pub-0209495346002620"
                                            data-ad-slot="{{ $home->banner_right_bottom_google }}"
                                            data-ad-format="auto" data-full-width-responsive="true"></ins>
                                        <script>
                                            (adsbygoogle = window.adsbygoogle || []).push({});
                                        </script>
                                    @else
                                        @php
                                            $found = false;
                                            $count = 0;
                                        @endphp
                                        @if (isset($home->banner_right_bottom) && $home->banner_right_bottom != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_right_bottom_url }}"><img
                                                        src="/files/{{ $home->banner_right_bottom }}" width="300"
                                                        alt="" style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $count += 1;
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (isset($home->banner_right_bottom_2) && $home->banner_right_bottom_2 != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_right_bottom_2_url }}"><img
                                                        src="/files/{{ $home->banner_right_bottom_2 }}"
                                                        width="300" alt=""
                                                        style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (isset($home->banner_right_bottom_3) && $home->banner_right_bottom_3 != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_right_bottom_3_url }}"><img
                                                        src="/files/{{ $home->banner_right_bottom_3 }}"
                                                        width="300" alt=""
                                                        style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (isset($home->banner_right_bottom_4) && $home->banner_right_bottom_4 != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_right_bottom_4_url }}"><img
                                                        src="/files/{{ $home->banner_right_bottom_4 }}"
                                                        width="300" alt=""
                                                        style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (isset($home->banner_right_bottom_5) && $home->banner_right_bottom_5 != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_right_bottom_5_url }}"><img
                                                        src="/files/{{ $home->banner_right_bottom_5 }}"
                                                        width="300" alt=""
                                                        style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (!$found)
                                            <div class="widget"
                                                style="width:300px;height:250px;border:1px solid gray;"></div>
                                        @endif
                                    @endif
                                </div>
                                <div class="mobile-advert carousel-inner">
                                    @if ($home->banner_right_bottom_google != '')
                                        <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
                                        <ins class="adsbygoogle" style="display:block"
                                            data-ad-client="ca-pub-0209495346002620"
                                            data-ad-slot="{{ $home->banner_right_bottom_google }}"
                                            data-ad-format="auto" data-full-width-responsive="true"></ins>
                                        <script>
                                            (adsbygoogle = window.adsbygoogle || []).push({});
                                        </script>
                                    @else
                                        @php
                                            $found = false;
                                            $count = 0;
                                        @endphp
                                        @if (isset($home->banner_right_bottom) && $home->banner_right_bottom != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_right_bottom_url }}"><img
                                                        src="/files/{{ $home->banner_right_bottom }}" width="300"
                                                        alt="" style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $count += 1;
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (isset($home->banner_right_bottom_2) && $home->banner_right_bottom_2 != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_right_bottom_2_url }}"><img
                                                        src="/files/{{ $home->banner_right_bottom_2 }}"
                                                        width="300" alt=""
                                                        style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (isset($home->banner_right_bottom_3) && $home->banner_right_bottom_3 != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_right_bottom_3_url }}"><img
                                                        src="/files/{{ $home->banner_right_bottom_3 }}"
                                                        width="300" alt=""
                                                        style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (isset($home->banner_right_bottom_4) && $home->banner_right_bottom_4 != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_right_bottom_4_url }}"><img
                                                        src="/files/{{ $home->banner_right_bottom_4 }}"
                                                        width="300" alt=""
                                                        style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (isset($home->banner_right_bottom_5) && $home->banner_right_bottom_5 != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_right_bottom_5_url }}"><img
                                                        src="/files/{{ $home->banner_right_bottom_5 }}"
                                                        width="300" alt=""
                                                        style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (!$found)
                                            <div class="widget"
                                                style="width:300px;height:250px;border:1px solid gray;"></div>
                                        @endif
                                    @endif
                                </div>
                            </div>
                        @else
                            <div class="advertisement carousel slide" data-ride="carousel"
                                style="margin-right:0px;padding-top:14px; margin-top:0px;;margin-bottom:20px;">
                                <div class="desktop-advert carousel-inner">
                                    @if ($home->banner_right_big_google != '')
                                        <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
                                        <ins class="adsbygoogle" style="display:block"
                                            data-ad-client="ca-pub-0209495346002620"
                                            data-ad-slot="{{ $home->banner_right_big_google }}"
                                            data-ad-format="auto" data-full-width-responsive="true"></ins>
                                        <script>
                                            (adsbygoogle = window.adsbygoogle || []).push({});
                                        </script>
                                    @else
                                        @php
                                            $found = false;
                                            $count = 0;
                                        @endphp
                                        @if (isset($home->banner_right_big) && $home->banner_right_big != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_right_big_url }}"><img
                                                        src="/files/{{ $home->banner_right_big }}" width="300"
                                                        alt="" style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $count += 1;
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (isset($home->banner_right_big_2) && $home->banner_right_big_2 != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_right_big_2_url }}"><img
                                                        src="/files/{{ $home->banner_right_big_2 }}" width="300"
                                                        alt="" style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (isset($home->banner_right_big_3) && $home->banner_right_big_3 != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_right_big_3_url }}"><img
                                                        src="/files/{{ $home->banner_right_big_3 }}" width="300"
                                                        alt="" style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (isset($home->banner_right_big_4) && $home->banner_right_big_4 != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_right_big_4_url }}"><img
                                                        src="/files/{{ $home->banner_right_big_4 }}" width="300"
                                                        alt="" style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (isset($home->banner_right_big_5) && $home->banner_right_big_5 != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_right_big_5_url }}"><img
                                                        src="/files/{{ $home->banner_right_big_5 }}" width="300"
                                                        alt="" style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (!$found)
                                            <div class="widget"
                                                style="width:300px;height:600px;border:1px solid gray;"></div>
                                        @endif
                                    @endif
                                </div>
                                <div class="tablet-advert  carousel-inner">
                                    @if ($home->banner_right_big_google != '')
                                        <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
                                        <ins class="adsbygoogle" style="display:block"
                                            data-ad-client="ca-pub-0209495346002620"
                                            data-ad-slot="{{ $home->banner_right_big_google }}"
                                            data-ad-format="auto" data-full-width-responsive="true"></ins>
                                        <script>
                                            (adsbygoogle = window.adsbygoogle || []).push({});
                                        </script>
                                    @else
                                        @php
                                            $found = false;
                                            $count = 0;
                                        @endphp
                                        @if (isset($home->banner_right_big) && $home->banner_right_big != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_right_big_url }}"><img
                                                        src="/files/{{ $home->banner_right_big }}" width="300"
                                                        alt="" style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $count += 1;
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (isset($home->banner_right_big_2) && $home->banner_right_big_2 != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_right_big_2_url }}"><img
                                                        src="/files/{{ $home->banner_right_big_2 }}" width="300"
                                                        alt="" style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (isset($home->banner_right_big_3) && $home->banner_right_big_3 != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_right_big_3_url }}"><img
                                                        src="/files/{{ $home->banner_right_big_3 }}" width="300"
                                                        alt="" style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (isset($home->banner_right_big_4) && $home->banner_right_big_4 != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_right_big_4_url }}"><img
                                                        src="/files/{{ $home->banner_right_big_4 }}" width="300"
                                                        alt="" style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (isset($home->banner_right_big_5) && $home->banner_right_big_5 != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_right_big_5_url }}"><img
                                                        src="/files/{{ $home->banner_right_big_5 }}" width="300"
                                                        alt="" style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (!$found)
                                            <div class="widget"
                                                style="width:300px;height:250px;border:1px solid gray;"></div>
                                        @endif
                                    @endif
                                </div>
                                <div class="mobile-advert carousel-inner">
                                    @if ($home->banner_right_big_google != '')
                                        <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
                                        <ins class="adsbygoogle" style="display:block"
                                            data-ad-client="ca-pub-0209495346002620"
                                            data-ad-slot="{{ $home->banner_right_big_google }}"
                                            data-ad-format="auto" data-full-width-responsive="true"></ins>
                                        <script>
                                            (adsbygoogle = window.adsbygoogle || []).push({});
                                        </script>
                                    @else
                                        @php
                                            $found = false;
                                            $count = 0;
                                        @endphp
                                        @if (isset($home->banner_right_big) && $home->banner_right_big != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_right_big_url }}"><img
                                                        src="/files/{{ $home->banner_right_big }}" width="300"
                                                        alt="" style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $count += 1;
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (isset($home->banner_right_big_2) && $home->banner_right_big_2 != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_right_big_2_url }}"><img
                                                        src="/files/{{ $home->banner_right_big_2 }}" width="300"
                                                        alt="" style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (isset($home->banner_right_big_3) && $home->banner_right_big_3 != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_right_big_3_url }}"><img
                                                        src="/files/{{ $home->banner_right_big_3 }}" width="300"
                                                        alt="" style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (isset($home->banner_right_big_4) && $home->banner_right_big_4 != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_right_big_4_url }}"><img
                                                        src="/files/{{ $home->banner_right_big_4 }}" width="300"
                                                        alt="" style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (isset($home->banner_right_big_5) && $home->banner_right_big_5 != '')
                                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                                <a href="{{ $home->banner_right_big_5_url }}"><img
                                                        src="/files/{{ $home->banner_right_big_5 }}" width="300"
                                                        alt="" style="border:1px solid gray;"></a>
                                            </div>
                                            @php
                                                $found = true;
                                            @endphp
                                        @endif
                                        @if (!$found)
                                            <div class="widget"
                                                style="width:300px;height:600px;border:1px solid gray;"></div>
                                        @endif
                                    @endif
                                </div>
                            </div>
                        @endif

                        <div class="advertisement carousel slide" data-ride="carousel"
                            style="margin-right:0px;padding-top:14px; margin-top:0px;;margin-bottom:20px;">
                            <div class="desktop-advert carousel-inner">

                                <!--<img src="/images/banner-home.gif" width="300" alt="" style="border:1px solid gray;">-->
                                @for ($xxx = 1; $xxx <= 5; $xxx++)
                                    <div class="item {{ $xxx == 1 ? 'active' : '' }}">
                                        <img src="/images/rotator_{{ $xxx }}.png" width="300"
                                            alt="" style="border:1px solid gray;">
                                    </div>
                                @endfor

                            </div>
                            <div class="tablet-advert carousel-inner">
                                <!--<img src="/images/banner-home.gif" width="300" alt="" style="border:1px solid gray;">-->
                                @for ($xxx = 1; $xxx <= 5; $xxx++)
                                    <div class="item {{ $xxx == 1 ? 'active' : '' }}">
                                        <img src="/images/rotator_{{ $xxx }}.png" width="300"
                                            alt="" style="border:1px solid gray;">
                                    </div>
                                @endfor
                            </div>
                            <div class="mobile-advert carousel-inner">
                                <!--<img src="/images/banner-home.gif" width="300" alt="" style="border:1px solid gray;">-->
                                @for ($xxx = 1; $xxx <= 5; $xxx++)
                                    <div class="item {{ $xxx == 1 ? 'active' : '' }}">
                                        <img src="/images/rotator_{{ $xxx }}.png" width="300"
                                            alt="" style="border:1px solid gray;">
                                    </div>
                                @endfor
                            </div>
                        </div>

                        @if (
                            $home->radio1_file != '' ||
                                $home->radio1_url != '' ||
                                $home->radio2_file != '' ||
                                $home->radio2_url != '' ||
                                $home->radio3_file != '' ||
                                $home->radio3_url != '')
                            <div class="block-content" style="margin-top: 2em;">
                                <div class="title-section">
                                    <h1><span style="font-size: 21px;">Web Radio</span></h1>
                                </div>
                                <select class="form-control" id="cbRadio">
                                    @if ($home->radio1_file != '' || $home->radio1_url != '')
                                        <option
                                            value="{{ $home->radio1_file != '' ? '/files/' . $home->radio1_file : $home->radio1_url }}">
                                            {{ $home->radio1_title }}</option>
                                    @endif
                                    @if ($home->radio2_file != '' || $home->radio2_url != '')
                                        <option
                                            value="{{ $home->radio2_file != '' ? '/files/' . $home->radio2_file : $home->radio2_url }}">
                                            {{ $home->radio2_title }}</option>
                                    @endif
                                    @if ($home->radio3_file != '' || $home->radio3_url != '')
                                        <option
                                            value="{{ $home->radio3_file != '' ? '/files/' . $home->radio3_file : $home->radio3_url }}">
                                            {{ $home->radio3_title }}</option>
                                    @endif
                                </select><br>

                                @if ($home->radio1_file != '' || $home->radio1_url != '')
                                    <audio id="player"
                                        src="{{ $home->radio1_file != '' ? '/files/' . $home->radio1_file : $home->radio1_url }}"></audio>
                                @else
                                    @if ($home->radio2_file != '' || $home->radio2_url != '')
                                        <audio id="player"
                                            src="{{ $home->radio2_file != '' ? '/files/' . $home->radio2_file : $home->radio2_url }}"></audio>
                                    @else
                                        @if ($home->radio3_file != '' || $home->radio3_url != '')
                                            <audio id="player"
                                                src="{{ $home->radio3_file != '' ? '/files/' . $home->radio3_file : $home->radio3_url }}"></audio>
                                        @endif
                                    @endif
                                @endif


                                <div>
                                    <button class="btn btn-success btn-lg"
                                        onclick="document.getElementById('player').play()" style="font-size:15px;"><i
                                            class="fa fa-play"></i> Play</button>
                                    <button class="btn btn-danger btn-lg"
                                        onclick="document.getElementById('player').pause()" style="font-size:15px;"><i
                                            class="fa fa-pause"></i> Pause</button>
                                    <button class="btn  btn-lg"
                                        onclick="document.getElementById('player').volume += 0.1"
                                        style="font-size:15px;"><i class="fa fa-volume-up"></i> +</button>
                                    <button class="btn btn-lg"
                                        onclick="document.getElementById('player').volume -= 0.1"
                                        style="font-size:15px;"><i class="fa fa-volume-down"></i> -</button>
                                </div>
                            </div>
                        @endif
                        <!-- END Web Radio -->


                    </div>
                    <!-- End sidebar -->

                </div>

            </div>
        </section>

        <div class="container">
            <div class="advertisement carousel slide" data-ride="carousel">
                <div class="desktop-advert carousel-inner">
                    @if ($home->banner_middle_google != '')
                        <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
                        <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-0209495346002620"
                            data-ad-slot="{{ $home->banner_middle_google }}" data-ad-format="auto"
                            data-full-width-responsive="true"></ins>
                        <script>
                            (adsbygoogle = window.adsbygoogle || []).push({});
                        </script>
                    @else
                        @php
                            $found = false;
                            $count = 0;
                        @endphp
                        @if (isset($home->banner_middle) && $home->banner_middle != '')
                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                <a href="{{ $home->banner_middle_url }}"><img
                                        src="/files/{{ $home->banner_middle }}" width="997" alt=""
                                        style="border:1px solid gray;"></a>
                            </div>
                            @php
                                $count += 1;
                                $found = true;
                            @endphp
                        @endif
                        @if (isset($home->banner_middle_2) && $home->banner_middle_2 != '')
                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                <a href="{{ $home->banner_middle_url_2 }}"><img
                                        src="/files/{{ $home->banner_middle_2 }}" width="997" alt=""
                                        style="border:1px solid gray;"></a>
                            </div>
                            @php
                                $found = true;
                            @endphp
                        @endif
                        @if (isset($home->banner_middle_3) && $home->banner_middle_3 != '')
                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                <a href="{{ $home->banner_middle_url_3 }}"><img
                                        src="/files/{{ $home->banner_middle_3 }}" width="997" alt=""
                                        style="border:1px solid gray;"></a>
                            </div>
                            @php
                                $found = true;
                            @endphp
                        @endif
                        @if (isset($home->banner_middle_4) && $home->banner_middle_4 != '')
                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                <a href="{{ $home->banner_middle_url_4 }}"><img
                                        src="/files/{{ $home->banner_middle_4 }}" width="997" alt=""
                                        style="border:1px solid gray;"></a>
                            </div>
                            @php
                                $found = true;
                            @endphp
                        @endif
                        @if (isset($home->banner_middle_5) && $home->banner_middle_5 != '')
                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                <a href="{{ $home->banner_middle_url_5 }}"><img
                                        src="/files/{{ $home->banner_middle_5 }}" width="997" alt=""
                                        style="border:1px solid gray;"></a>
                            </div>
                            @php
                                $found = true;
                            @endphp
                        @endif
                        @if (!$found)
                            <div class="widget" style="width:997;height:300;border:1px solid gray;"></div>
                        @endif
                    @endif
                </div>
                <div class="tablet-advert carousel-inner">
                    @if ($home->banner_middle_google != '')
                        <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
                        <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-0209495346002620"
                            data-ad-slot="{{ $home->banner_middle_google }}" data-ad-format="auto"
                            data-full-width-responsive="true"></ins>
                        <script>
                            (adsbygoogle = window.adsbygoogle || []).push({});
                        </script>
                    @else
                        @php
                            $found = false;
                            $count = 0;
                        @endphp
                        @if (isset($home->banner_middle) && $home->banner_middle != '')
                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                <a href="{{ $home->banner_middle_url }}"><img
                                        src="/files/{{ $home->banner_middle }}" width="997" alt=""
                                        style="border:1px solid gray;"></a>
                            </div>
                            @php
                                $count += 1;
                                $found = true;
                            @endphp
                        @endif
                        @if (isset($home->banner_middle_2) && $home->banner_middle_2 != '')
                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                <a href="{{ $home->banner_middle_url_2 }}"><img
                                        src="/files/{{ $home->banner_middle_2 }}" width="997" alt=""
                                        style="border:1px solid gray;"></a>
                            </div>
                            @php
                                $found = true;
                            @endphp
                        @endif
                        @if (isset($home->banner_middle_3) && $home->banner_middle_3 != '')
                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                <a href="{{ $home->banner_middle_url_3 }}"><img
                                        src="/files/{{ $home->banner_middle_3 }}" width="997" alt=""
                                        style="border:1px solid gray;"></a>
                            </div>
                            @php
                                $found = true;
                            @endphp
                        @endif
                        @if (isset($home->banner_middle_4) && $home->banner_middle_4 != '')
                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                <a href="{{ $home->banner_middle_url_4 }}"><img
                                        src="/files/{{ $home->banner_middle_4 }}" width="997" alt=""
                                        style="border:1px solid gray;"></a>
                            </div>
                            @php
                                $found = true;
                            @endphp
                        @endif
                        @if (isset($home->banner_middle_5) && $home->banner_middle_5 != '')
                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                <a href="{{ $home->banner_middle_url_5 }}"><img
                                        src="/files/{{ $home->banner_middle_5 }}" width="997" alt=""
                                        style="border:1px solid gray;"></a>
                            </div>
                            @php
                                $found = true;
                            @endphp
                        @endif
                        @if (!$found)
                            <div class="widget" style="width:997;height:300;border:1px solid gray;">
                            </div>
                        @endif
                    @endif
                </div>
                <div class="mobile-advert carousel-inner">
                    @if ($home->banner_middle_google != '')
                        <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
                        <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-0209495346002620"
                            data-ad-slot="{{ $home->banner_middle_google }}" data-ad-format="auto"
                            data-full-width-responsive="true"></ins>
                        <script>
                            (adsbygoogle = window.adsbygoogle || []).push({});
                        </script>
                    @else
                        @php
                            $found = false;
                            $count = 0;
                        @endphp
                        @if (isset($home->banner_middle) && $home->banner_middle != '')
                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                <a href="{{ $home->banner_middle_url }}"><img
                                        src="/files/{{ $home->banner_middle }}" width="300" alt=""
                                        style="border:1px solid gray;"></a>
                            </div>
                            @php
                                $count += 1;
                                $found = true;
                            @endphp
                        @endif
                        @if (isset($home->banner_middle_2) && $home->banner_middle_2 != '')
                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                <a href="{{ $home->banner_middle_url_2 }}"><img
                                        src="/files/{{ $home->banner_middle_2 }}" width="300" alt=""
                                        style="border:1px solid gray;"></a>
                            </div>
                            @php
                                $found = true;
                            @endphp
                        @endif
                        @if (isset($home->banner_middle_3) && $home->banner_middle_3 != '')
                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                <a href="{{ $home->banner_middle_url_3 }}"><img
                                        src="/files/{{ $home->banner_middle_3 }}" width="300" alt=""
                                        style="border:1px solid gray;"></a>
                            </div>
                            @php
                                $found = true;
                            @endphp
                        @endif
                        @if (isset($home->banner_middle_4) && $home->banner_middle_4 != '')
                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                <a href="{{ $home->banner_middle_url_4 }}"><img
                                        src="/files/{{ $home->banner_middle_4 }}" width="300" alt=""
                                        style="border:1px solid gray;"></a>
                            </div>
                            @php
                                $found = true;
                            @endphp
                        @endif
                        @if (isset($home->banner_middle_5) && $home->banner_middle_5 != '')
                            <div class="item {{ $count == 0 ? 'active' : '' }}">
                                <a href="{{ $home->banner_middle_url_5 }}"><img
                                        src="/files/{{ $home->banner_middle_5 }}" width="300" alt=""
                                        style="border:1px solid gray;"></a>
                            </div>
                            @php
                                $found = true;
                            @endphp
                        @endif
                        @if (!$found)
                            <div class="widget" style="width:300;height:90;border:1px solid gray;">
                            </div>
                        @endif
                    @endif
                </div>
            </div>
        </div>


        @yield('content')

        @include('layouts.footer')

    </div>

    <button onclick="topFunction()" id="btTop" title="Go to top">Top</button>
    <!-- End Container -->

    <script type="text/javascript" src="js/jquery.min.js"></script>
    <script type="text/javascript" src="js/jquery.migrate.js"></script>
    <script type="text/javascript" src="js/jquery.bxslider.min.js"></script>
    <script type="text/javascript" src="js/jquery.magnific-popup.min.js"></script>
    <script type="text/javascript" src="js/bootstrap.min.js"></script>
    <script type="text/javascript" src="js/jquery.ticker.js"></script>
    <script type="text/javascript" src="js/jquery.imagesloaded.min.js"></script>
    <script type="text/javascript" src="js/jquery.isotope.min.js"></script>
    <script type="text/javascript" src="js/owl.carousel.min.js"></script>
    <script type="text/javascript" src="js/plugins-scroll.js"></script>
    <script type="text/javascript" src="js/script.js"></script>
    <script type="text/javascript" src="js/jquery.lazy.min.js"></script>
    <script type="text/javascript" src="js/lightslider.js"></script>

    <script type="text/javascript">
        var count = 0;
        var max_count = {{ sizeof($aHome) }};

        $(document).ready(function() {

            $(".fa-search").click(function() {
                $(".togglesearch").toggle();
                $("input[type='text']").focus();
            });

            // $('body').css('cursor', 'pointer');
            $('body').click(function(event) {
                if (event.target == event.currentTarget) {
                    var url = $("#url" + count).val();
                    document.location.href = url;
                }
                //inserire url dinamica qui
                // window.open('http://www.google.it');
            });

            $("#cbRadio").change(function() {
                var audio_url = this.value;
                document.getElementById("player").setAttribute('src', audio_url);
            });

        });

        function scroll_to(id) {
            $('html,body').animate({
                scrollTop: $('#' + id).offset().top - 150
            }, 'slow');
        }
        $('#btn-nav-previous').click(function() {
            $(".menu-inner-box").animate({
                scrollLeft: "-=150px"
            });
        });

        $('#btn-nav-next').click(function() {
            $(".menu-inner-box").animate({
                scrollLeft: "+=150px"
            });
        });
        /*
        setTimeout(function(){
        	window.location.reload(1);
         }, 180000);*/
        if (max_count > 0) {
            /*$('body.bg-adv').click(function() {
            	var url = $("#url" + count).val();
            	document.location.href = url;
            })
            $('body>*').click(function(e) {
            			e.stopPropagation()
            });*/
            setInterval(function() {

                count = count + 1;
                if (count == max_count)
                    count = 0;

                var img = $("#img" + count).val();
                $(".bg-adv").css("background-image", "url('/files/" + img + "')");


            }, 5000);
        }
        $(function() {
            $('.lazy').Lazy();
        });

        mybutton = document.getElementById("btTop");

        // When the user scrolls down 20px from the top of the document, show the button
        window.onscroll = function() {
            scrollFunction()
        };

        function scrollFunction() {
            if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
                mybutton.style.display = "block";
            } else {
                mybutton.style.display = "none";
            }
        }

        // When the user clicks on the button, scroll to the top of the document
        function topFunction() {
            document.body.scrollTop = 0; // For Safari
            document.documentElement.scrollTop = 0; // For Chrome, Firefox, IE and Opera
        }

        $('#lightSlider').lightSlider({
            gallery: true,
            item: 1,
            loop: true,
            slideMargin: 0,
            thumbItem: 5
        });

        $(document).ready(function() {
            var $overlay = $(
                '<div id="overlay" class="overlay" style="position: fixed;background: $black;width: 100%;height: 100%;top: 0;left: 0;text-align: center;z-index: 999999 !important;display: none;"></div>'
            );
            var $iframe = $(
                '<iframe width="595" height="485" frameborder="0" marginwidth="0" margin="0" height="0" scrolling="no" style="margin-top:10%" allowfullscreen></iframe>'
            );

            $overlay.append($iframe);

            // append overlay to body
            $('body').append($overlay);

            $('a.view-video').click(function(event) {
                event.preventDefault();
                var id = $(this).attr('href');
                var src = '/video/' + id;
                console.log(src);
                // update overlay with iframe
                $iframe.attr('src', src);
                // show overlay
                $overlay.show();
            });

            // when overlay is clicked
            $overlay.click(function() {
                // hide overlay
                $overlay.hide();
                $iframe.attr('src', '');
            });
        });

        $(function() {
            $(document).ready(function() {
                if (window.matchMedia("(max-width: 767px)").matches) {
                    $(".desktop-advert").remove();
                    $(".tablet-advert").remove();
                } else {

                }
            });
            $('.carousel').carousel();
        })
    </script>
    <script type="text/javascript">
        $('.navbar-nav a.home-scroll-section').click(function() {
            $('.navbar-collapse').removeClass('in')
        });
    </script>
    <script>
        document.querySelector('.search-trigger-custom').addEventListener('click', function(e) {
            e.preventDefault();
            document.querySelector('.search-dropdown-custom').classList.toggle('active');
            if (document.querySelector('.search-dropdown-custom').classList.contains('active')) {
                document.querySelector('#search-field-custom').focus();
            }
        });

        // Close search when clicking outside
        document.addEventListener('click', function(e) {
            const searchArea = document.querySelector('.top-search-custom');
            const dropdown = document.querySelector('.search-dropdown-custom');
            if (!searchArea.contains(e.target) && dropdown.classList.contains('active')) {
                dropdown.classList.remove('active');
            }
        });
    </script>

</body>

</html>
