home.blade.php 117 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979
  1. <!doctype html>
  2. <html lang="it" class="no-js">
  3. <head>
  4. <!-- Global site tag (gtag.js) - Google Analytics -->
  5. <script async src="https://www.googletagmanager.com/gtag/js?id=UA-12619965-34"></script>
  6. <script src="//d3u598arehftfk.cloudfront.net/prebid_hb_14302_22192.js" async></script>
  7. <script>
  8. window.dataLayer = window.dataLayer || [];
  9. function gtag() {
  10. dataLayer.push(arguments);
  11. }
  12. gtag('js', new Date());
  13. gtag('config', 'UA-12619965-34');
  14. </script>
  15. <title>Calcio a 5 Anteprima</title>
  16. <meta charset="utf-8">
  17. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  18. <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  19. <link href='https://fonts.googleapis.com/css?family=Lato:300,400,700,900,400italic' rel='stylesheet' type='text/css'>
  20. <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
  21. <link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css" media="screen">
  22. <link rel="stylesheet" type="text/css" href="/css/jquery.bxslider.css" media="screen">
  23. <link rel="stylesheet" type="text/css" href="/css/font-awesome.css" media="screen">
  24. <link rel="stylesheet" type="text/css" href="/css/magnific-popup.css" media="screen">
  25. <link rel="stylesheet" type="text/css" href="/css/owl.carousel.css" media="screen">
  26. <link rel="stylesheet" type="text/css" href="/css/owl.theme.css" media="screen">
  27. <link rel="stylesheet" type="text/css" href="/css/ticker-style.css" />
  28. <link rel="stylesheet" type="text/css" href="/css/style.css" media="screen">
  29. <link rel="stylesheet" type="text/css" href="/css/print.css" media="print">
  30. <link rel="stylesheet" type="text/css" href="/css/custom.css" media="screen">
  31. <link rel="stylesheet" type="text/css" href="/css/lightslider.min.css" media="screen">
  32. <link rel="apple-touch-icon" sizes="120x120" href="/apple-touch-icon.png">
  33. <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
  34. <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
  35. <link rel="manifest" href="/site.webmanifest">
  36. <link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
  37. <meta name="msapplication-TileColor" content="#da532c">
  38. <meta name="theme-color" content="#ffffff">
  39. <style>
  40. nav#menu-container {
  41. position: relative;
  42. width: 100%;
  43. height: 56px;
  44. }
  45. #btn-nav-previous {
  46. text-align: center;
  47. color: black;
  48. cursor: pointer;
  49. font-size: 18px;
  50. position: absolute;
  51. left: 0px;
  52. fill: #FFF;
  53. }
  54. #btn-nav-next {
  55. text-align: center;
  56. color: black;
  57. cursor: pointer;
  58. font-size: 18px;
  59. position: absolute;
  60. right: 0px;
  61. fill: #FFF;
  62. }
  63. .menu-inner-box {
  64. width: 90%;
  65. white-space: nowrap;
  66. margin: 0 auto;
  67. overflow: hidden;
  68. padding: 0px 5px;
  69. box-sizing: border-box;
  70. }
  71. .menu {
  72. padding: 0;
  73. margin: 0;
  74. list-style-type: none;
  75. display: block;
  76. text-align: center;
  77. }
  78. a.menu-item {
  79. color: #fff;
  80. text-decoration: none;
  81. text-align: center;
  82. white-space: no-wrap;
  83. }
  84. .menu-item:hover {
  85. text-decoration: underline;
  86. }
  87. @media only screen and (max-width: 480px) {
  88. #btn-nav-previous {
  89. /* display:none; */
  90. }
  91. #btn-nav-next {
  92. /* display:none; */
  93. }
  94. .menu-inner-box {
  95. width: 80%;
  96. overflow-x: auto;
  97. }
  98. }
  99. @if ($home->image != '')
  100. @media (min-width: 400px) {
  101. .bg-adv {
  102. background-color: white;
  103. }
  104. .adv {
  105. background-color: white;
  106. }
  107. }
  108. @media (min-width: 1170px) {
  109. .navbar-nav>li>a {
  110. padding: 20px 10px 20px 10px;
  111. z-index: 2;
  112. }
  113. #container {
  114. margin-top: 120px;
  115. }
  116. .container {
  117. width: 1040px !important;
  118. }
  119. .bg-adv {
  120. /*https://source.unsplash.com/twukN12EN7c/1920x1080*/
  121. background: url('/files/{{ $home->image }}');
  122. background-size: 1920px !important;
  123. background-repeat: no-repeat;
  124. background-attachment: fixed;
  125. background-position: top;
  126. }
  127. .adv {
  128. max-width: 1040px;
  129. padding-right: 5px;
  130. padding-left: 5px;
  131. margin-right: auto;
  132. margin-left: auto;
  133. /* margin-top: 120px!important; */
  134. background-color: white;
  135. }
  136. }
  137. @endif
  138. .slide-video {
  139. width: 320px;
  140. }
  141. .slide-video>ul {
  142. list-style: none outside none;
  143. padding-left: 0;
  144. margin-bottom: 0;
  145. }
  146. .slide-video>ul>li {
  147. display: block;
  148. float: left;
  149. margin-right: 6px;
  150. cursor: pointer;
  151. }
  152. .slide-video>ul>li>img {
  153. display: block;
  154. height: auto;
  155. max-width: 90%;
  156. }
  157. .caption {
  158. background-color: rgba(0, 0, 0, 0.55);
  159. position: relative;
  160. top: 0;
  161. left: 0;
  162. padding: 5px;
  163. color: white;
  164. width: 320px;
  165. }
  166. .caption p {
  167. margin: 0;
  168. color: white;
  169. }
  170. // overlay
  171. .overlay {
  172. position: fixed;
  173. background: $black;
  174. width: 100%;
  175. height: 100%;
  176. top: 0;
  177. left: 0;
  178. text-align: center;
  179. z-index: 999999 !important;
  180. display: none;
  181. iframe {
  182. margin-top: 10%;
  183. }
  184. }
  185. .togglesearch {
  186. background: #FFFFFF;
  187. position: absolute;
  188. top: 0px;
  189. z-index: 99999;
  190. right: 8%;
  191. width: 350px;
  192. height: 60px;
  193. box-shadow: 0 0 10px rgba(0, 0, 0, .5);
  194. display: none;
  195. }
  196. </style>
  197. </head>
  198. <body class="bg-adv home">
  199. @foreach ($aHome as $id => $img)
  200. <input type="hidden" id="img{{ $id }}" value="{{ $img['image'] }}">
  201. <input type="hidden" id="url{{ $id }}" value="{{ $img['url'] }}">
  202. @endforeach
  203. <div id="container" class="adv">
  204. @include('layouts.header')
  205. <section class="block-wrapper">
  206. <div class="container">
  207. <!-- Advertisement carousel with proper closing tags -->
  208. <div class="advertisement carousel slide" style="margin-top:0px;">
  209. <div class="desktop-advert carousel-inner">
  210. @if ($home->banner_underb_google != '')
  211. <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  212. <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-0209495346002620"
  213. data-ad-slot="{{ $home->banner_underb_google }}" data-ad-format="auto"
  214. data-full-width-responsive="true"></ins>
  215. <script>
  216. (adsbygoogle = window.adsbygoogle || []).push({});
  217. </script>
  218. @else
  219. @php
  220. $found = false;
  221. $count = 0;
  222. @endphp
  223. @if (isset($home->banner_underb) && $home->banner_underb != '')
  224. <div class="item {{ $count == 0 ? 'active' : '' }}">
  225. <a href="{{ $home->banner_underb_url }}"
  226. onclick="scroll_to('torneo-nazionale-citta-di-padova-')"><img
  227. src="/files/{{ $home->banner_underb }}" width="1000" alt=""
  228. style="border:1px solid gray;"></a>
  229. </div>
  230. @php
  231. $count += 1;
  232. $found = true;
  233. @endphp
  234. @endif
  235. @if (isset($home->banner_underb_2) && $home->banner_underb_2 != '')
  236. <div class="item {{ $count == 0 ? 'active' : '' }}">
  237. <a href="{{ $home->banner_underb_url_2 }}"><img
  238. src="/files/{{ $home->banner_underb_2 }}" width="1000" alt=""
  239. style="border:1px solid gray;"></a>
  240. </div>
  241. @php
  242. $found = true;
  243. @endphp
  244. @endif
  245. @if (isset($home->banner_underb_3) && $home->banner_underb_3 != '')
  246. <div class="item {{ $count == 0 ? 'active' : '' }}">
  247. <a href="{{ $home->banner_underb_url_3 }}"><img
  248. src="/files/{{ $home->banner_underb_3 }}" width="1000" alt=""
  249. style="border:1px solid gray;"></a>
  250. </div>
  251. @php
  252. $found = true;
  253. @endphp
  254. @endif
  255. @if (isset($home->banner_underb_4) && $home->banner_underb_4 != '')
  256. <div class="item {{ $count == 0 ? 'active' : '' }}">
  257. <a href="{{ $home->banner_underb_url_4 }}"><img
  258. src="/files/{{ $home->banner_underb_4 }}" width="1000" alt=""
  259. style="border:1px solid gray;"></a>
  260. </div>
  261. @php
  262. $found = true;
  263. @endphp
  264. @endif
  265. @if (isset($home->banner_underb_5) && $home->banner_underb_5 != '')
  266. <div class="item {{ $count == 0 ? 'active' : '' }}">
  267. <a href="{{ $home->banner_underb_url_5 }}"><img
  268. src="/files/{{ $home->banner_underb_5 }}" width="1000" alt=""
  269. style="border:1px solid gray;"></a>
  270. </div>
  271. @php
  272. $found = true;
  273. @endphp
  274. @endif
  275. @if (!$found)
  276. <div class="widget" style="width:997px;height:90px;border:1px solid gray;margin:0px;"></div>
  277. @endif
  278. @endif
  279. </div>
  280. <div class="tablet-advert carousel-inner">
  281. @if ($home->banner_underb_google != '')
  282. <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  283. <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-0209495346002620"
  284. data-ad-slot="{{ $home->banner_underb_google }}" data-ad-format="auto"
  285. data-full-width-responsive="true"></ins>
  286. <script>
  287. (adsbygoogle = window.adsbygoogle || []).push({});
  288. </script>
  289. @else
  290. @php
  291. $found = false;
  292. $count = 0;
  293. @endphp
  294. @if (isset($home->banner_underb) && $home->banner_underb != '')
  295. <div class="item {{ $count == 0 ? 'active' : '' }}">
  296. <a href="{{ $home->banner_underb_url }}"
  297. onclick="scroll_to('torneo-nazionale-citta-di-padova-')"><img
  298. src="/files/{{ $home->banner_underb }}" width="1000" alt=""
  299. style="border:1px solid gray;"></a>
  300. </div>
  301. @php
  302. $count += 1;
  303. $found = true;
  304. @endphp
  305. @endif
  306. @if (isset($home->banner_underb_2) && $home->banner_underb_2 != '')
  307. <div class="item {{ $count == 0 ? 'active' : '' }}">
  308. <a href="{{ $home->banner_underb_url_2 }}"><img
  309. src="/files/{{ $home->banner_underb_2 }}" width="1000" alt=""
  310. style="border:1px solid gray;"></a>
  311. </div>
  312. @php
  313. $found = true;
  314. @endphp
  315. @endif
  316. @if (isset($home->banner_underb_3) && $home->banner_underb_3 != '')
  317. <div class="item {{ $count == 0 ? 'active' : '' }}">
  318. <a href="{{ $home->banner_underb_url_3 }}"><img
  319. src="/files/{{ $home->banner_underb_3 }}" width="1000" alt=""
  320. style="border:1px solid gray;"></a>
  321. </div>
  322. @php
  323. $found = true;
  324. @endphp
  325. @endif
  326. @if (isset($home->banner_underb_4) && $home->banner_underb_4 != '')
  327. <div class="item {{ $count == 0 ? 'active' : '' }}">
  328. <a href="{{ $home->banner_underb_url_4 }}"><img
  329. src="/files/{{ $home->banner_underb_4 }}" width="1000" alt=""
  330. style="border:1px solid gray;"></a>
  331. </div>
  332. @php
  333. $found = true;
  334. @endphp
  335. @endif
  336. @if (isset($home->banner_underb_5) && $home->banner_underb_5 != '')
  337. <div class="item {{ $count == 0 ? 'active' : '' }}">
  338. <a href="{{ $home->banner_underb_url_5 }}"><img
  339. src="/files/{{ $home->banner_underb_5 }}" width="1000" alt=""
  340. style="border:1px solid gray;"></a>
  341. </div>
  342. @php
  343. $found = true;
  344. @endphp
  345. @endif
  346. @if (!$found)
  347. <div class="widget" style="width:997px;height:90px;border:1px solid gray;margin:0px;">
  348. </div>
  349. @endif
  350. @endif
  351. </div>
  352. <div class="mobile-advert carousel-inner">
  353. @if ($home->banner_underb_google != '')
  354. <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  355. <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-0209495346002620"
  356. data-ad-slot="{{ $home->banner_underb_google }}" data-ad-format="auto"
  357. data-full-width-responsive="true"></ins>
  358. <script>
  359. (adsbygoogle = window.adsbygoogle || []).push({});
  360. </script>
  361. @else
  362. @php
  363. $found = false;
  364. $count = 0;
  365. @endphp
  366. @if (isset($home->banner_underb) && $home->banner_underb != '')
  367. <div class="item {{ $count == 0 ? 'active' : '' }}">
  368. <a href="{{ $home->banner_underb_url }}"
  369. onclick="scroll_to('torneo-nazionale-citta-di-padova-')"><img
  370. src="/files/{{ $home->banner_underb }}" width="1000300" alt=""
  371. style="border:1px solid gray;"></a>
  372. </div>
  373. @php
  374. $count += 1;
  375. $found = true;
  376. @endphp
  377. @endif
  378. @if (isset($home->banner_underb_2) && $home->banner_underb_2 != '')
  379. <div class="item {{ $count == 0 ? 'active' : '' }}">
  380. <a href="{{ $home->banner_underb_url_2 }}"><img
  381. src="/files/{{ $home->banner_underb_2 }}" width="1000300" alt=""
  382. style="border:1px solid gray;"></a>
  383. </div>
  384. @php
  385. $found = true;
  386. @endphp
  387. @endif
  388. @if (isset($home->banner_underb_3) && $home->banner_underb_3 != '')
  389. <div class="item {{ $count == 0 ? 'active' : '' }}">
  390. <a href="{{ $home->banner_underb_url_3 }}"><img
  391. src="/files/{{ $home->banner_underb_3 }}" width="300" alt=""
  392. style="border:1px solid gray;"></a>
  393. </div>
  394. @php
  395. $found = true;
  396. @endphp
  397. @endif
  398. @if (isset($home->banner_underb_4) && $home->banner_underb_4 != '')
  399. <div class="item {{ $count == 0 ? 'active' : '' }}">
  400. <a href="{{ $home->banner_underb_url_4 }}"><img
  401. src="/files/{{ $home->banner_underb_4 }}" width="300" alt=""
  402. style="border:1px solid gray;"></a>
  403. </div>
  404. @php
  405. $found = true;
  406. @endphp
  407. @endif
  408. @if (isset($home->banner_underb_5) && $home->banner_underb_5 != '')
  409. <div class="item {{ $count == 0 ? 'active' : '' }}">
  410. <a href="{{ $home->banner_underb_url_5 }}"><img
  411. src="/files/{{ $home->banner_underb_5 }}" width="300" alt=""
  412. style="border:1px solid gray;"></a>
  413. </div>
  414. @php
  415. $found = true;
  416. @endphp
  417. @endif
  418. @if (!$found)
  419. <div class="widget" style="width:300;height:50px;border:1px solid gray;margin:0px;">
  420. </div>
  421. @endif
  422. @endif
  423. </div>
  424. </div>
  425. <section class="ticker-news" style="margin-top: 30px;">
  426. <div class="container">
  427. <div class="ticker-news-box" style="margin-left:-15px;">
  428. <span class="breaking-news">breaking news</span>
  429. <span class="new-news">New</span>
  430. <ul id="js-news">
  431. @foreach ($breaking_news as $news)
  432. <li class="news-item"><span
  433. class="time-news">{{ date('d/m/Y H:i', strtotime($news->date)) }}</span>
  434. {{ $news->title }}</li>
  435. @endforeach
  436. </ul>
  437. </div>
  438. </div>
  439. </section>
  440. <div class="row" style="margin-top:30px;min-height:620px !important;margin-right:0!important">
  441. <div class="col-sm-8">
  442. <!-- block content -->
  443. <div class="block-content">
  444. <div class="title-section">
  445. <h1><span style="font-size:21px;">Primo piano</span></h1>
  446. </div>
  447. <div class="carousel-box owl-wrapper">
  448. @if (isset($home->slide1) && $home->slide1 != '')
  449. <div class="image-slider snd-size">
  450. <div class="news-post image-post">
  451. @if ($home->slide1->live)
  452. <span class="top-live">LIVE</span>
  453. @endif
  454. <a href="{{ $home->slide1->slug }}"><img
  455. src="/files/news/{{ $home->slide1->image }}" alt=""></a>
  456. <div class="box-title">
  457. <div class="inner-hover">
  458. <h2><a
  459. href="/{{ $home->slide1->slug }}">{{ $home->slide1->title }}</a>
  460. </h2>
  461. <ul class="post-tags">
  462. <li><i
  463. class="fa fa-clock-o"></i><span>{{ date('d/m/Y', strtotime($home->slide1->date)) }}</span>
  464. </li>
  465. </ul>
  466. </div>
  467. </div>
  468. </div>
  469. </div>
  470. @endif
  471. </div>
  472. <div class="row primo-piano">
  473. <div class="col-md-6">
  474. <div class="carousel-box owl-wrapper">
  475. <div class="image-slider snd-size">
  476. <ul class="{{ $home->hasSlider('left') ? 'bxslider bxsliderLeft' : '' }}">
  477. @if (isset($home->left1) && $home->left1 != '')
  478. <li>
  479. <div class="item news-post standard-post">
  480. <div class="post-gallery">
  481. <img src="/files/news/{{ $home->left1->image }}"
  482. alt="">
  483. </div>
  484. <div class="post-content">
  485. <h2><a
  486. href="{{ $home->left1->slug }}">{{ $home->left1->title }}</a>
  487. </h2>
  488. <ul class="post-tags">
  489. <li><i
  490. class="fa fa-clock-o"></i>{{ date('d/m/Y', strtotime($home->left1->date)) }}
  491. </li>
  492. </ul>
  493. </div>
  494. </div>
  495. </li>
  496. @endif
  497. @if (isset($home->left2) && $home->left2 != '')
  498. <li>
  499. <div class="item news-post standard-post">
  500. <div class="post-gallery">
  501. <img src="/files/news/{{ $home->left2->image }}"
  502. alt="">
  503. </div>
  504. <div class="post-content">
  505. <h2><a
  506. href="{{ $home->left2->slug }}">{{ $home->left2->title }}</a>
  507. </h2>
  508. <ul class="post-tags">
  509. <li><i
  510. class="fa fa-clock-o"></i>{{ date('d/m/Y', strtotime($home->left2->date)) }}
  511. </li>
  512. </ul>
  513. </div>
  514. </div>
  515. </li>
  516. @endif
  517. @if (isset($home->left3) && $home->left3 != '')
  518. <li>
  519. <div class="item news-post standard-post">
  520. <div class="post-gallery">
  521. <img src="/files/news/{{ $home->left3->image }}"
  522. alt="">
  523. </div>
  524. <div class="post-content">
  525. <h2><a
  526. href="{{ $home->left3->slug }}">{{ $home->left3->title }}</a>
  527. </h2>
  528. <ul class="post-tags">
  529. <li><i
  530. class="fa fa-clock-o"></i>{{ date('d/m/Y', strtotime($home->left3->date)) }}
  531. </li>
  532. </ul>
  533. </div>
  534. </div>
  535. </li>
  536. @endif
  537. @if (isset($home->left4) && $home->left4 != '')
  538. <li>
  539. <div class="item news-post standard-post">
  540. <div class="post-gallery">
  541. <img src="/files/news/{{ $home->left4->image }}"
  542. alt="">
  543. </div>
  544. <div class="post-content">
  545. <h2><a
  546. href="{{ $home->left4->slug }}">{{ $home->left4->title }}</a>
  547. </h2>
  548. <ul class="post-tags">
  549. <li><i
  550. class="fa fa-clock-o"></i>{{ date('d/m/Y', strtotime($home->left4->date)) }}
  551. </li>
  552. </ul>
  553. </div>
  554. </div>
  555. </li>
  556. @endif
  557. @if (isset($home->left5) && $home->left5 != '')
  558. <li>
  559. <div class="item news-post standard-post">
  560. <div class="post-gallery">
  561. <img src="/files/news/{{ $home->left5->image }}"
  562. alt="">
  563. </div>
  564. <div class="post-content">
  565. <h2><a
  566. href="{{ $home->left5->slug }}">{{ $home->left5->title }}</a>
  567. </h2>
  568. <ul class="post-tags">
  569. <li><i
  570. class="fa fa-clock-o"></i>{{ date('d/m/Y', strtotime($home->left5->date)) }}
  571. </li>
  572. </ul>
  573. </div>
  574. </div>
  575. </li>
  576. @endif
  577. </ul>
  578. </div>
  579. </div>
  580. </div>
  581. <div class="col-md-6">
  582. <div class="carousel-box owl-wrapper">
  583. <div class="image-slider snd-size">
  584. <ul
  585. class="{{ $home->hasSlider('right') ? 'bxslider bxsliderRight' : '' }}">
  586. @if (isset($home->right1) && $home->right1 != '')
  587. <li>
  588. <div class="item news-post standard-post">
  589. <div class="post-gallery">
  590. <img src="/files/news/{{ $home->right1->image }}"
  591. alt="">
  592. </div>
  593. <div class="post-content">
  594. <h2><a
  595. href="{{ $home->right1->slug }}">{{ $home->right1->title }}</a>
  596. </h2>
  597. <ul class="post-tags">
  598. <li><i
  599. class="fa fa-clock-o"></i>{{ date('d/m/Y', strtotime($home->right1->date)) }}
  600. </li>
  601. </ul>
  602. </div>
  603. </div>
  604. </li>
  605. @endif
  606. @if (isset($home->right2) && $home->right2 != '')
  607. <li>
  608. <div class="item news-post standard-post">
  609. <div class="post-gallery">
  610. <img src="/files/news/{{ $home->right2->image }}"
  611. alt="">
  612. </div>
  613. <div class="post-content">
  614. <h2><a
  615. href="{{ $home->right2->slug }}">{{ $home->right2->title }}</a>
  616. </h2>
  617. <ul class="post-tags">
  618. <li><i
  619. class="fa fa-clock-o"></i>{{ date('d/m/Y', strtotime($home->right2->date)) }}
  620. </li>
  621. </ul>
  622. </div>
  623. </div>
  624. </li>
  625. @endif
  626. @if (isset($home->right3) && $home->right3 != '')
  627. <li>
  628. <div class="item news-post standard-post">
  629. <div class="post-gallery">
  630. <img src="/files/news/{{ $home->right3->image }}"
  631. alt="">
  632. </div>
  633. <div class="post-content">
  634. <h2><a
  635. href="{{ $home->right3->slug }}">{{ $home->right3->title }}</a>
  636. </h2>
  637. <ul class="post-tags">
  638. <li><i
  639. class="fa fa-clock-o"></i>{{ date('d/m/Y', strtotime($home->right3->date)) }}
  640. </li>
  641. </ul>
  642. </div>
  643. </div>
  644. </li>
  645. @endif
  646. @if (isset($home->right4) && $home->right4 != '')
  647. <li>
  648. <div class="item news-post standard-post">
  649. <div class="post-gallery">
  650. <img src="/files/news/{{ $home->right4->image }}"
  651. alt="">
  652. </div>
  653. <div class="post-content">
  654. <h2><a
  655. href="{{ $home->right4->slug }}">{{ $home->right4->title }}</a>
  656. </h2>
  657. <ul class="post-tags">
  658. <li><i
  659. class="fa fa-clock-o"></i>{{ date('d/m/Y', strtotime($home->right4->date)) }}
  660. </li>
  661. </ul>
  662. </div>
  663. </div>
  664. </li>
  665. @endif
  666. @if (isset($home->right5) && $home->right5 != '')
  667. <li>
  668. <div class="item news-post standard-post">
  669. <div class="post-gallery">
  670. <img src="/files/news/{{ $home->right5->image }}"
  671. alt="">
  672. </div>
  673. <div class="post-content">
  674. <h2><a
  675. href="{{ $home->right5->slug }}">{{ $home->right5->title }}</a>
  676. </h2>
  677. <ul class="post-tags">
  678. <li><i
  679. class="fa fa-clock-o"></i>{{ date('d/m/Y', strtotime($home->right5->date)) }}
  680. </li>
  681. </ul>
  682. </div>
  683. </div>
  684. </li>
  685. @endif
  686. </ul>
  687. </div>
  688. </div>
  689. </div>
  690. </div>
  691. </div>
  692. <!-- End block content -->
  693. </div>
  694. <!-- sidebar -->
  695. <div class="col-sm-4 sidebar">
  696. <div class="top-search-custom">
  697. <div class="search-trigger-custom">
  698. <a href="#"><i class="fa fa-search" aria-hidden="true"></i></a>
  699. </div>
  700. <div class="search-dropdown-custom">
  701. <form class="navbar-form form-inline my-2 my-lg-0" role="search" autocomplete="off"
  702. action="/ricerca" method="POST">
  703. {{ csrf_field() }}
  704. <div class="search-input-wrapper">
  705. <input type="text" id="search-field-custom" name="search"
  706. placeholder="Cerca qui">
  707. <button type="submit" style="top:11px" class="search-submit-custom">
  708. <i class="fa fa-search"></i>
  709. </button>
  710. </div>
  711. </form>
  712. </div>
  713. </div>
  714. @if ($show_top)
  715. <div class="advertisement carousel slide" data-ride="carousel"
  716. style="margin-right:0px;padding-top:14px; margin-top:0px;;margin-bottom:20px;">
  717. <div class="desktop-advert carousel-inner">
  718. @if ($home->banner_right_top_google != '')
  719. <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  720. <ins class="adsbygoogle" style="display:block"
  721. data-ad-client="ca-pub-0209495346002620"
  722. data-ad-slot="{{ $home->banner_right_top_google }}"
  723. data-ad-format="auto" data-full-width-responsive="true"></ins>
  724. <script>
  725. (adsbygoogle = window.adsbygoogle || []).push({});
  726. </script>
  727. @else
  728. @php
  729. $found = false;
  730. $count = 0;
  731. @endphp
  732. @if (isset($home->banner_right_top) && $home->banner_right_top != '')
  733. <div class="item {{ $count == 0 ? 'active' : '' }}">
  734. <a href="{{ $home->banner_right_top_url }}"><img
  735. src="/files/{{ $home->banner_right_top }}" width="300"
  736. alt="" style="border:1px solid gray;"></a>
  737. </div>
  738. @php
  739. $count += 1;
  740. $found = true;
  741. @endphp
  742. @endif
  743. @if (isset($home->banner_right_top_2) && $home->banner_right_top_2 != '')
  744. <div class="item {{ $count == 0 ? 'active' : '' }}">
  745. <a href="{{ $home->banner_right_top_2_url }}"><img
  746. src="/files/{{ $home->banner_right_top_2 }}" width="300"
  747. alt="" style="border:1px solid gray;"></a>
  748. </div>
  749. @php
  750. $found = true;
  751. @endphp
  752. @endif
  753. @if (isset($home->banner_right_top_3) && $home->banner_right_top_3 != '')
  754. <div class="item {{ $count == 0 ? 'active' : '' }}">
  755. <a href="{{ $home->banner_right_top_3_url }}"><img
  756. src="/files/{{ $home->banner_right_top_3 }}" width="300"
  757. alt="" style="border:1px solid gray;"></a>
  758. </div>
  759. @php
  760. $found = true;
  761. @endphp
  762. @endif
  763. @if (isset($home->banner_right_top_4) && $home->banner_right_top_4 != '')
  764. <div class="item {{ $count == 0 ? 'active' : '' }}">
  765. <a href="{{ $home->banner_right_top_4_url }}"><img
  766. src="/files/{{ $home->banner_right_top_4 }}" width="300"
  767. alt="" style="border:1px solid gray;"></a>
  768. </div>
  769. @php
  770. $found = true;
  771. @endphp
  772. @endif
  773. @if (isset($home->banner_right_top_5) && $home->banner_right_top_5 != '')
  774. <div class="item {{ $count == 0 ? 'active' : '' }}">
  775. <a href="{{ $home->banner_right_top_5_url }}"><img
  776. src="/files/{{ $home->banner_right_top_5 }}" width="300"
  777. alt="" style="border:1px solid gray;"></a>
  778. </div>
  779. @php
  780. $found = true;
  781. @endphp
  782. @endif
  783. @if (!$found)
  784. <div class="widget"
  785. style="width:300px;height:250px;border:1px solid gray;"></div>
  786. @endif
  787. @endif
  788. </div>
  789. <div class="tablet-advert carousel-inner">
  790. @if ($home->banner_right_top_google != '')
  791. <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  792. <ins class="adsbygoogle" style="display:block"
  793. data-ad-client="ca-pub-0209495346002620"
  794. data-ad-slot="{{ $home->banner_right_top_google }}"
  795. data-ad-format="auto" data-full-width-responsive="true"></ins>
  796. <script>
  797. (adsbygoogle = window.adsbygoogle || []).push({});
  798. </script>
  799. @else
  800. @php
  801. $found = false;
  802. $count = 0;
  803. @endphp
  804. @if (isset($home->banner_right_top) && $home->banner_right_top != '')
  805. <div class="item {{ $count == 0 ? 'active' : '' }}">
  806. <a href="{{ $home->banner_right_top_url }}"><img
  807. src="/files/{{ $home->banner_right_top }}" width="300"
  808. alt="" style="border:1px solid gray;"></a>
  809. </div>
  810. @php
  811. $count += 1;
  812. $found = true;
  813. @endphp
  814. @endif
  815. @if (isset($home->banner_right_top_2) && $home->banner_right_top_2 != '')
  816. <div class="item {{ $count == 0 ? 'active' : '' }}">
  817. <a href="{{ $home->banner_right_top_2_url }}"><img
  818. src="/files/{{ $home->banner_right_top_2 }}" width="300"
  819. alt="" style="border:1px solid gray;"></a>
  820. </div>
  821. @php
  822. $found = true;
  823. @endphp
  824. @endif
  825. @if (isset($home->banner_right_top_3) && $home->banner_right_top_3 != '')
  826. <div class="item {{ $count == 0 ? 'active' : '' }}">
  827. <a href="{{ $home->banner_right_top_3_url }}"><img
  828. src="/files/{{ $home->banner_right_top_3 }}" width="300"
  829. alt="" style="border:1px solid gray;"></a>
  830. </div>
  831. @php
  832. $found = true;
  833. @endphp
  834. @endif
  835. @if (isset($home->banner_right_top_4) && $home->banner_right_top_4 != '')
  836. <div class="item {{ $count == 0 ? 'active' : '' }}">
  837. <a href="{{ $home->banner_right_top_4_url }}"><img
  838. src="/files/{{ $home->banner_right_top_4 }}" width="300"
  839. alt="" style="border:1px solid gray;"></a>
  840. </div>
  841. @php
  842. $found = true;
  843. @endphp
  844. @endif
  845. @if (isset($home->banner_right_top_5) && $home->banner_right_top_5 != '')
  846. <div class="item {{ $count == 0 ? 'active' : '' }}">
  847. <a href="{{ $home->banner_right_top_5_url }}"><img
  848. src="/files/{{ $home->banner_right_top_5 }}" width="300"
  849. alt="" style="border:1px solid gray;"></a>
  850. </div>
  851. @php
  852. $found = true;
  853. @endphp
  854. @endif
  855. @if (!$found)
  856. <div class="widget"
  857. style="width:300px;height:250px;border:1px solid gray;"></div>
  858. @endif
  859. @endif
  860. </div>
  861. <div class="mobile-advert carousel-inner">
  862. @if ($home->banner_right_top_google != '')
  863. <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  864. <ins class="adsbygoogle" style="display:block"
  865. data-ad-client="ca-pub-0209495346002620"
  866. data-ad-slot="{{ $home->banner_right_top_google }}"
  867. data-ad-format="auto" data-full-width-responsive="true"></ins>
  868. <script>
  869. (adsbygoogle = window.adsbygoogle || []).push({});
  870. </script>
  871. @else
  872. @php
  873. $found = false;
  874. $count = 0;
  875. @endphp
  876. @if (isset($home->banner_right_top) && $home->banner_right_top != '')
  877. <div class="item {{ $count == 0 ? 'active' : '' }}">
  878. <a href="{{ $home->banner_right_top_url }}"><img
  879. src="/files/{{ $home->banner_right_top }}" width="300"
  880. alt="" style="border:1px solid gray;"></a>
  881. </div>
  882. @php
  883. $count += 1;
  884. $found = true;
  885. @endphp
  886. @endif
  887. @if (isset($home->banner_right_top_2) && $home->banner_right_top_2 != '')
  888. <div class="item {{ $count == 0 ? 'active' : '' }}">
  889. <a href="{{ $home->banner_right_top_2_url }}"><img
  890. src="/files/{{ $home->banner_right_top_2 }}" width="300"
  891. alt="" style="border:1px solid gray;"></a>
  892. </div>
  893. @php
  894. $found = true;
  895. @endphp
  896. @endif
  897. @if (isset($home->banner_right_top_3) && $home->banner_right_top_3 != '')
  898. <div class="item {{ $count == 0 ? 'active' : '' }}">
  899. <a href="{{ $home->banner_right_top_3_url }}"><img
  900. src="/files/{{ $home->banner_right_top_3 }}" width="300"
  901. alt="" style="border:1px solid gray;"></a>
  902. </div>
  903. @php
  904. $found = true;
  905. @endphp
  906. @endif
  907. @if (isset($home->banner_right_top_4) && $home->banner_right_top_4 != '')
  908. <div class="item {{ $count == 0 ? 'active' : '' }}">
  909. <a href="{{ $home->banner_right_top_4_url }}"><img
  910. src="/files/{{ $home->banner_right_top_4 }}" width="300"
  911. alt="" style="border:1px solid gray;"></a>
  912. </div>
  913. @php
  914. $found = true;
  915. @endphp
  916. @endif
  917. @if (isset($home->banner_right_top_5) && $home->banner_right_top_5 != '')
  918. <div class="item {{ $count == 0 ? 'active' : '' }}">
  919. <a href="{{ $home->banner_right_top_5_url }}"><img
  920. src="/files/{{ $home->banner_right_top_5 }}" width="300"
  921. alt="" style="border:1px solid gray;"></a>
  922. </div>
  923. @php
  924. $found = true;
  925. @endphp
  926. @endif
  927. @if (!$found)
  928. <div class="widget"
  929. style="width:300px;height:250px;border:1px solid gray;"></div>
  930. @endif
  931. @endif
  932. </div>
  933. </div>
  934. <div class="advertisement carousel slide" data-ride="carousel"
  935. style="margin-right:0px;margin-top:0px;">
  936. <div class="desktop-advert carousel-inner">
  937. @if ($home->banner_right_bottom_google != '')
  938. <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  939. <ins class="adsbygoogle" style="display:block"
  940. data-ad-client="ca-pub-0209495346002620"
  941. data-ad-slot="{{ $home->banner_right_bottom_google }}"
  942. data-ad-format="auto" data-full-width-responsive="true"></ins>
  943. <script>
  944. (adsbygoogle = window.adsbygoogle || []).push({});
  945. </script>
  946. @else
  947. @php
  948. $found = false;
  949. $count = 0;
  950. @endphp
  951. @if (isset($home->banner_right_bottom) && $home->banner_right_bottom != '')
  952. <div class="item {{ $count == 0 ? 'active' : '' }}">
  953. <a href="{{ $home->banner_right_bottom_url }}"><img
  954. src="/files/{{ $home->banner_right_bottom }}" width="300"
  955. alt="" style="border:1px solid gray;"></a>
  956. </div>
  957. @php
  958. $count += 1;
  959. $found = true;
  960. @endphp
  961. @endif
  962. @if (isset($home->banner_right_bottom_2) && $home->banner_right_bottom_2 != '')
  963. <div class="item {{ $count == 0 ? 'active' : '' }}">
  964. <a href="{{ $home->banner_right_bottom_2_url }}"><img
  965. src="/files/{{ $home->banner_right_bottom_2 }}"
  966. width="300" alt=""
  967. style="border:1px solid gray;"></a>
  968. </div>
  969. @php
  970. $found = true;
  971. @endphp
  972. @endif
  973. @if (isset($home->banner_right_bottom_3) && $home->banner_right_bottom_3 != '')
  974. <div class="item {{ $count == 0 ? 'active' : '' }}">
  975. <a href="{{ $home->banner_right_bottom_3_url }}"><img
  976. src="/files/{{ $home->banner_right_bottom_3 }}"
  977. width="300" alt=""
  978. style="border:1px solid gray;"></a>
  979. </div>
  980. @php
  981. $found = true;
  982. @endphp
  983. @endif
  984. @if (isset($home->banner_right_bottom_4) && $home->banner_right_bottom_4 != '')
  985. <div class="item {{ $count == 0 ? 'active' : '' }}">
  986. <a href="{{ $home->banner_right_bottom_4_url }}"><img
  987. src="/files/{{ $home->banner_right_bottom_4 }}"
  988. width="300" alt=""
  989. style="border:1px solid gray;"></a>
  990. </div>
  991. @php
  992. $found = true;
  993. @endphp
  994. @endif
  995. @if (isset($home->banner_right_bottom_5) && $home->banner_right_bottom_5 != '')
  996. <div class="item {{ $count == 0 ? 'active' : '' }}">
  997. <a href="{{ $home->banner_right_bottom_5_url }}"><img
  998. src="/files/{{ $home->banner_right_bottom_5 }}"
  999. width="300" alt=""
  1000. style="border:1px solid gray;"></a>
  1001. </div>
  1002. @php
  1003. $found = true;
  1004. @endphp
  1005. @endif
  1006. @if (!$found)
  1007. <div class="widget"
  1008. style="width:300px;height:250px;border:1px solid gray;"></div>
  1009. @endif
  1010. @endif
  1011. </div>
  1012. <div class="tablet-advert carousel-inner">
  1013. @if ($home->banner_right_bottom_google != '')
  1014. <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  1015. <ins class="adsbygoogle" style="display:block"
  1016. data-ad-client="ca-pub-0209495346002620"
  1017. data-ad-slot="{{ $home->banner_right_bottom_google }}"
  1018. data-ad-format="auto" data-full-width-responsive="true"></ins>
  1019. <script>
  1020. (adsbygoogle = window.adsbygoogle || []).push({});
  1021. </script>
  1022. @else
  1023. @php
  1024. $found = false;
  1025. $count = 0;
  1026. @endphp
  1027. @if (isset($home->banner_right_bottom) && $home->banner_right_bottom != '')
  1028. <div class="item {{ $count == 0 ? 'active' : '' }}">
  1029. <a href="{{ $home->banner_right_bottom_url }}"><img
  1030. src="/files/{{ $home->banner_right_bottom }}" width="300"
  1031. alt="" style="border:1px solid gray;"></a>
  1032. </div>
  1033. @php
  1034. $count += 1;
  1035. $found = true;
  1036. @endphp
  1037. @endif
  1038. @if (isset($home->banner_right_bottom_2) && $home->banner_right_bottom_2 != '')
  1039. <div class="item {{ $count == 0 ? 'active' : '' }}">
  1040. <a href="{{ $home->banner_right_bottom_2_url }}"><img
  1041. src="/files/{{ $home->banner_right_bottom_2 }}"
  1042. width="300" alt=""
  1043. style="border:1px solid gray;"></a>
  1044. </div>
  1045. @php
  1046. $found = true;
  1047. @endphp
  1048. @endif
  1049. @if (isset($home->banner_right_bottom_3) && $home->banner_right_bottom_3 != '')
  1050. <div class="item {{ $count == 0 ? 'active' : '' }}">
  1051. <a href="{{ $home->banner_right_bottom_3_url }}"><img
  1052. src="/files/{{ $home->banner_right_bottom_3 }}"
  1053. width="300" alt=""
  1054. style="border:1px solid gray;"></a>
  1055. </div>
  1056. @php
  1057. $found = true;
  1058. @endphp
  1059. @endif
  1060. @if (isset($home->banner_right_bottom_4) && $home->banner_right_bottom_4 != '')
  1061. <div class="item {{ $count == 0 ? 'active' : '' }}">
  1062. <a href="{{ $home->banner_right_bottom_4_url }}"><img
  1063. src="/files/{{ $home->banner_right_bottom_4 }}"
  1064. width="300" alt=""
  1065. style="border:1px solid gray;"></a>
  1066. </div>
  1067. @php
  1068. $found = true;
  1069. @endphp
  1070. @endif
  1071. @if (isset($home->banner_right_bottom_5) && $home->banner_right_bottom_5 != '')
  1072. <div class="item {{ $count == 0 ? 'active' : '' }}">
  1073. <a href="{{ $home->banner_right_bottom_5_url }}"><img
  1074. src="/files/{{ $home->banner_right_bottom_5 }}"
  1075. width="300" alt=""
  1076. style="border:1px solid gray;"></a>
  1077. </div>
  1078. @php
  1079. $found = true;
  1080. @endphp
  1081. @endif
  1082. @if (!$found)
  1083. <div class="widget"
  1084. style="width:300px;height:250px;border:1px solid gray;"></div>
  1085. @endif
  1086. @endif
  1087. </div>
  1088. <div class="mobile-advert carousel-inner">
  1089. @if ($home->banner_right_bottom_google != '')
  1090. <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  1091. <ins class="adsbygoogle" style="display:block"
  1092. data-ad-client="ca-pub-0209495346002620"
  1093. data-ad-slot="{{ $home->banner_right_bottom_google }}"
  1094. data-ad-format="auto" data-full-width-responsive="true"></ins>
  1095. <script>
  1096. (adsbygoogle = window.adsbygoogle || []).push({});
  1097. </script>
  1098. @else
  1099. @php
  1100. $found = false;
  1101. $count = 0;
  1102. @endphp
  1103. @if (isset($home->banner_right_bottom) && $home->banner_right_bottom != '')
  1104. <div class="item {{ $count == 0 ? 'active' : '' }}">
  1105. <a href="{{ $home->banner_right_bottom_url }}"><img
  1106. src="/files/{{ $home->banner_right_bottom }}" width="300"
  1107. alt="" style="border:1px solid gray;"></a>
  1108. </div>
  1109. @php
  1110. $count += 1;
  1111. $found = true;
  1112. @endphp
  1113. @endif
  1114. @if (isset($home->banner_right_bottom_2) && $home->banner_right_bottom_2 != '')
  1115. <div class="item {{ $count == 0 ? 'active' : '' }}">
  1116. <a href="{{ $home->banner_right_bottom_2_url }}"><img
  1117. src="/files/{{ $home->banner_right_bottom_2 }}"
  1118. width="300" alt=""
  1119. style="border:1px solid gray;"></a>
  1120. </div>
  1121. @php
  1122. $found = true;
  1123. @endphp
  1124. @endif
  1125. @if (isset($home->banner_right_bottom_3) && $home->banner_right_bottom_3 != '')
  1126. <div class="item {{ $count == 0 ? 'active' : '' }}">
  1127. <a href="{{ $home->banner_right_bottom_3_url }}"><img
  1128. src="/files/{{ $home->banner_right_bottom_3 }}"
  1129. width="300" alt=""
  1130. style="border:1px solid gray;"></a>
  1131. </div>
  1132. @php
  1133. $found = true;
  1134. @endphp
  1135. @endif
  1136. @if (isset($home->banner_right_bottom_4) && $home->banner_right_bottom_4 != '')
  1137. <div class="item {{ $count == 0 ? 'active' : '' }}">
  1138. <a href="{{ $home->banner_right_bottom_4_url }}"><img
  1139. src="/files/{{ $home->banner_right_bottom_4 }}"
  1140. width="300" alt=""
  1141. style="border:1px solid gray;"></a>
  1142. </div>
  1143. @php
  1144. $found = true;
  1145. @endphp
  1146. @endif
  1147. @if (isset($home->banner_right_bottom_5) && $home->banner_right_bottom_5 != '')
  1148. <div class="item {{ $count == 0 ? 'active' : '' }}">
  1149. <a href="{{ $home->banner_right_bottom_5_url }}"><img
  1150. src="/files/{{ $home->banner_right_bottom_5 }}"
  1151. width="300" alt=""
  1152. style="border:1px solid gray;"></a>
  1153. </div>
  1154. @php
  1155. $found = true;
  1156. @endphp
  1157. @endif
  1158. @if (!$found)
  1159. <div class="widget"
  1160. style="width:300px;height:250px;border:1px solid gray;"></div>
  1161. @endif
  1162. @endif
  1163. </div>
  1164. </div>
  1165. @else
  1166. <div class="advertisement carousel slide" data-ride="carousel"
  1167. style="margin-right:0px;padding-top:14px; margin-top:0px;;margin-bottom:20px;">
  1168. <div class="desktop-advert carousel-inner">
  1169. @if ($home->banner_right_big_google != '')
  1170. <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  1171. <ins class="adsbygoogle" style="display:block"
  1172. data-ad-client="ca-pub-0209495346002620"
  1173. data-ad-slot="{{ $home->banner_right_big_google }}"
  1174. data-ad-format="auto" data-full-width-responsive="true"></ins>
  1175. <script>
  1176. (adsbygoogle = window.adsbygoogle || []).push({});
  1177. </script>
  1178. @else
  1179. @php
  1180. $found = false;
  1181. $count = 0;
  1182. @endphp
  1183. @if (isset($home->banner_right_big) && $home->banner_right_big != '')
  1184. <div class="item {{ $count == 0 ? 'active' : '' }}">
  1185. <a href="{{ $home->banner_right_big_url }}"><img
  1186. src="/files/{{ $home->banner_right_big }}" width="300"
  1187. alt="" style="border:1px solid gray;"></a>
  1188. </div>
  1189. @php
  1190. $count += 1;
  1191. $found = true;
  1192. @endphp
  1193. @endif
  1194. @if (isset($home->banner_right_big_2) && $home->banner_right_big_2 != '')
  1195. <div class="item {{ $count == 0 ? 'active' : '' }}">
  1196. <a href="{{ $home->banner_right_big_2_url }}"><img
  1197. src="/files/{{ $home->banner_right_big_2 }}" width="300"
  1198. alt="" style="border:1px solid gray;"></a>
  1199. </div>
  1200. @php
  1201. $found = true;
  1202. @endphp
  1203. @endif
  1204. @if (isset($home->banner_right_big_3) && $home->banner_right_big_3 != '')
  1205. <div class="item {{ $count == 0 ? 'active' : '' }}">
  1206. <a href="{{ $home->banner_right_big_3_url }}"><img
  1207. src="/files/{{ $home->banner_right_big_3 }}" width="300"
  1208. alt="" style="border:1px solid gray;"></a>
  1209. </div>
  1210. @php
  1211. $found = true;
  1212. @endphp
  1213. @endif
  1214. @if (isset($home->banner_right_big_4) && $home->banner_right_big_4 != '')
  1215. <div class="item {{ $count == 0 ? 'active' : '' }}">
  1216. <a href="{{ $home->banner_right_big_4_url }}"><img
  1217. src="/files/{{ $home->banner_right_big_4 }}" width="300"
  1218. alt="" style="border:1px solid gray;"></a>
  1219. </div>
  1220. @php
  1221. $found = true;
  1222. @endphp
  1223. @endif
  1224. @if (isset($home->banner_right_big_5) && $home->banner_right_big_5 != '')
  1225. <div class="item {{ $count == 0 ? 'active' : '' }}">
  1226. <a href="{{ $home->banner_right_big_5_url }}"><img
  1227. src="/files/{{ $home->banner_right_big_5 }}" width="300"
  1228. alt="" style="border:1px solid gray;"></a>
  1229. </div>
  1230. @php
  1231. $found = true;
  1232. @endphp
  1233. @endif
  1234. @if (!$found)
  1235. <div class="widget"
  1236. style="width:300px;height:600px;border:1px solid gray;"></div>
  1237. @endif
  1238. @endif
  1239. </div>
  1240. <div class="tablet-advert carousel-inner">
  1241. @if ($home->banner_right_big_google != '')
  1242. <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  1243. <ins class="adsbygoogle" style="display:block"
  1244. data-ad-client="ca-pub-0209495346002620"
  1245. data-ad-slot="{{ $home->banner_right_big_google }}"
  1246. data-ad-format="auto" data-full-width-responsive="true"></ins>
  1247. <script>
  1248. (adsbygoogle = window.adsbygoogle || []).push({});
  1249. </script>
  1250. @else
  1251. @php
  1252. $found = false;
  1253. $count = 0;
  1254. @endphp
  1255. @if (isset($home->banner_right_big) && $home->banner_right_big != '')
  1256. <div class="item {{ $count == 0 ? 'active' : '' }}">
  1257. <a href="{{ $home->banner_right_big_url }}"><img
  1258. src="/files/{{ $home->banner_right_big }}" width="300"
  1259. alt="" style="border:1px solid gray;"></a>
  1260. </div>
  1261. @php
  1262. $count += 1;
  1263. $found = true;
  1264. @endphp
  1265. @endif
  1266. @if (isset($home->banner_right_big_2) && $home->banner_right_big_2 != '')
  1267. <div class="item {{ $count == 0 ? 'active' : '' }}">
  1268. <a href="{{ $home->banner_right_big_2_url }}"><img
  1269. src="/files/{{ $home->banner_right_big_2 }}" width="300"
  1270. alt="" style="border:1px solid gray;"></a>
  1271. </div>
  1272. @php
  1273. $found = true;
  1274. @endphp
  1275. @endif
  1276. @if (isset($home->banner_right_big_3) && $home->banner_right_big_3 != '')
  1277. <div class="item {{ $count == 0 ? 'active' : '' }}">
  1278. <a href="{{ $home->banner_right_big_3_url }}"><img
  1279. src="/files/{{ $home->banner_right_big_3 }}" width="300"
  1280. alt="" style="border:1px solid gray;"></a>
  1281. </div>
  1282. @php
  1283. $found = true;
  1284. @endphp
  1285. @endif
  1286. @if (isset($home->banner_right_big_4) && $home->banner_right_big_4 != '')
  1287. <div class="item {{ $count == 0 ? 'active' : '' }}">
  1288. <a href="{{ $home->banner_right_big_4_url }}"><img
  1289. src="/files/{{ $home->banner_right_big_4 }}" width="300"
  1290. alt="" style="border:1px solid gray;"></a>
  1291. </div>
  1292. @php
  1293. $found = true;
  1294. @endphp
  1295. @endif
  1296. @if (isset($home->banner_right_big_5) && $home->banner_right_big_5 != '')
  1297. <div class="item {{ $count == 0 ? 'active' : '' }}">
  1298. <a href="{{ $home->banner_right_big_5_url }}"><img
  1299. src="/files/{{ $home->banner_right_big_5 }}" width="300"
  1300. alt="" style="border:1px solid gray;"></a>
  1301. </div>
  1302. @php
  1303. $found = true;
  1304. @endphp
  1305. @endif
  1306. @if (!$found)
  1307. <div class="widget"
  1308. style="width:300px;height:250px;border:1px solid gray;"></div>
  1309. @endif
  1310. @endif
  1311. </div>
  1312. <div class="mobile-advert carousel-inner">
  1313. @if ($home->banner_right_big_google != '')
  1314. <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  1315. <ins class="adsbygoogle" style="display:block"
  1316. data-ad-client="ca-pub-0209495346002620"
  1317. data-ad-slot="{{ $home->banner_right_big_google }}"
  1318. data-ad-format="auto" data-full-width-responsive="true"></ins>
  1319. <script>
  1320. (adsbygoogle = window.adsbygoogle || []).push({});
  1321. </script>
  1322. @else
  1323. @php
  1324. $found = false;
  1325. $count = 0;
  1326. @endphp
  1327. @if (isset($home->banner_right_big) && $home->banner_right_big != '')
  1328. <div class="item {{ $count == 0 ? 'active' : '' }}">
  1329. <a href="{{ $home->banner_right_big_url }}"><img
  1330. src="/files/{{ $home->banner_right_big }}" width="300"
  1331. alt="" style="border:1px solid gray;"></a>
  1332. </div>
  1333. @php
  1334. $count += 1;
  1335. $found = true;
  1336. @endphp
  1337. @endif
  1338. @if (isset($home->banner_right_big_2) && $home->banner_right_big_2 != '')
  1339. <div class="item {{ $count == 0 ? 'active' : '' }}">
  1340. <a href="{{ $home->banner_right_big_2_url }}"><img
  1341. src="/files/{{ $home->banner_right_big_2 }}" width="300"
  1342. alt="" style="border:1px solid gray;"></a>
  1343. </div>
  1344. @php
  1345. $found = true;
  1346. @endphp
  1347. @endif
  1348. @if (isset($home->banner_right_big_3) && $home->banner_right_big_3 != '')
  1349. <div class="item {{ $count == 0 ? 'active' : '' }}">
  1350. <a href="{{ $home->banner_right_big_3_url }}"><img
  1351. src="/files/{{ $home->banner_right_big_3 }}" width="300"
  1352. alt="" style="border:1px solid gray;"></a>
  1353. </div>
  1354. @php
  1355. $found = true;
  1356. @endphp
  1357. @endif
  1358. @if (isset($home->banner_right_big_4) && $home->banner_right_big_4 != '')
  1359. <div class="item {{ $count == 0 ? 'active' : '' }}">
  1360. <a href="{{ $home->banner_right_big_4_url }}"><img
  1361. src="/files/{{ $home->banner_right_big_4 }}" width="300"
  1362. alt="" style="border:1px solid gray;"></a>
  1363. </div>
  1364. @php
  1365. $found = true;
  1366. @endphp
  1367. @endif
  1368. @if (isset($home->banner_right_big_5) && $home->banner_right_big_5 != '')
  1369. <div class="item {{ $count == 0 ? 'active' : '' }}">
  1370. <a href="{{ $home->banner_right_big_5_url }}"><img
  1371. src="/files/{{ $home->banner_right_big_5 }}" width="300"
  1372. alt="" style="border:1px solid gray;"></a>
  1373. </div>
  1374. @php
  1375. $found = true;
  1376. @endphp
  1377. @endif
  1378. @if (!$found)
  1379. <div class="widget"
  1380. style="width:300px;height:600px;border:1px solid gray;"></div>
  1381. @endif
  1382. @endif
  1383. </div>
  1384. </div>
  1385. @endif
  1386. <div class="advertisement carousel slide" data-ride="carousel"
  1387. style="margin-right:0px;padding-top:14px; margin-top:0px;;margin-bottom:20px;">
  1388. <div class="desktop-advert carousel-inner">
  1389. <!--<img src="/images/banner-home.gif" width="300" alt="" style="border:1px solid gray;">-->
  1390. @for ($xxx = 1; $xxx <= 5; $xxx++)
  1391. <div class="item {{ $xxx == 1 ? 'active' : '' }}">
  1392. <img src="/images/rotator_{{ $xxx }}.png" width="300"
  1393. alt="" style="border:1px solid gray;">
  1394. </div>
  1395. @endfor
  1396. </div>
  1397. <div class="tablet-advert carousel-inner">
  1398. <!--<img src="/images/banner-home.gif" width="300" alt="" style="border:1px solid gray;">-->
  1399. @for ($xxx = 1; $xxx <= 5; $xxx++)
  1400. <div class="item {{ $xxx == 1 ? 'active' : '' }}">
  1401. <img src="/images/rotator_{{ $xxx }}.png" width="300"
  1402. alt="" style="border:1px solid gray;">
  1403. </div>
  1404. @endfor
  1405. </div>
  1406. <div class="mobile-advert carousel-inner">
  1407. <!--<img src="/images/banner-home.gif" width="300" alt="" style="border:1px solid gray;">-->
  1408. @for ($xxx = 1; $xxx <= 5; $xxx++)
  1409. <div class="item {{ $xxx == 1 ? 'active' : '' }}">
  1410. <img src="/images/rotator_{{ $xxx }}.png" width="300"
  1411. alt="" style="border:1px solid gray;">
  1412. </div>
  1413. @endfor
  1414. </div>
  1415. </div>
  1416. @if (
  1417. $home->radio1_file != '' ||
  1418. $home->radio1_url != '' ||
  1419. $home->radio2_file != '' ||
  1420. $home->radio2_url != '' ||
  1421. $home->radio3_file != '' ||
  1422. $home->radio3_url != '')
  1423. <div class="block-content" style="margin-top: 2em;">
  1424. <div class="title-section">
  1425. <h1><span style="font-size: 21px;">Web Radio</span></h1>
  1426. </div>
  1427. <select class="form-control" id="cbRadio">
  1428. @if ($home->radio1_file != '' || $home->radio1_url != '')
  1429. <option
  1430. value="{{ $home->radio1_file != '' ? '/files/' . $home->radio1_file : $home->radio1_url }}">
  1431. {{ $home->radio1_title }}</option>
  1432. @endif
  1433. @if ($home->radio2_file != '' || $home->radio2_url != '')
  1434. <option
  1435. value="{{ $home->radio2_file != '' ? '/files/' . $home->radio2_file : $home->radio2_url }}">
  1436. {{ $home->radio2_title }}</option>
  1437. @endif
  1438. @if ($home->radio3_file != '' || $home->radio3_url != '')
  1439. <option
  1440. value="{{ $home->radio3_file != '' ? '/files/' . $home->radio3_file : $home->radio3_url }}">
  1441. {{ $home->radio3_title }}</option>
  1442. @endif
  1443. </select><br>
  1444. @if ($home->radio1_file != '' || $home->radio1_url != '')
  1445. <audio id="player"
  1446. src="{{ $home->radio1_file != '' ? '/files/' . $home->radio1_file : $home->radio1_url }}"></audio>
  1447. @else
  1448. @if ($home->radio2_file != '' || $home->radio2_url != '')
  1449. <audio id="player"
  1450. src="{{ $home->radio2_file != '' ? '/files/' . $home->radio2_file : $home->radio2_url }}"></audio>
  1451. @else
  1452. @if ($home->radio3_file != '' || $home->radio3_url != '')
  1453. <audio id="player"
  1454. src="{{ $home->radio3_file != '' ? '/files/' . $home->radio3_file : $home->radio3_url }}"></audio>
  1455. @endif
  1456. @endif
  1457. @endif
  1458. <div>
  1459. <button class="btn btn-success btn-lg"
  1460. onclick="document.getElementById('player').play()" style="font-size:15px;"><i
  1461. class="fa fa-play"></i> Play</button>
  1462. <button class="btn btn-danger btn-lg"
  1463. onclick="document.getElementById('player').pause()" style="font-size:15px;"><i
  1464. class="fa fa-pause"></i> Pause</button>
  1465. <button class="btn btn-lg"
  1466. onclick="document.getElementById('player').volume += 0.1"
  1467. style="font-size:15px;"><i class="fa fa-volume-up"></i> +</button>
  1468. <button class="btn btn-lg"
  1469. onclick="document.getElementById('player').volume -= 0.1"
  1470. style="font-size:15px;"><i class="fa fa-volume-down"></i> -</button>
  1471. </div>
  1472. </div>
  1473. @endif
  1474. <!-- END Web Radio -->
  1475. </div>
  1476. <!-- End sidebar -->
  1477. </div>
  1478. </div>
  1479. </section>
  1480. <div class="container">
  1481. <div class="advertisement carousel slide" data-ride="carousel">
  1482. <div class="desktop-advert carousel-inner">
  1483. @if ($home->banner_middle_google != '')
  1484. <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  1485. <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-0209495346002620"
  1486. data-ad-slot="{{ $home->banner_middle_google }}" data-ad-format="auto"
  1487. data-full-width-responsive="true"></ins>
  1488. <script>
  1489. (adsbygoogle = window.adsbygoogle || []).push({});
  1490. </script>
  1491. @else
  1492. @php
  1493. $found = false;
  1494. $count = 0;
  1495. @endphp
  1496. @if (isset($home->banner_middle) && $home->banner_middle != '')
  1497. <div class="item {{ $count == 0 ? 'active' : '' }}">
  1498. <a href="{{ $home->banner_middle_url }}"><img
  1499. src="/files/{{ $home->banner_middle }}" width="997" alt=""
  1500. style="border:1px solid gray;"></a>
  1501. </div>
  1502. @php
  1503. $count += 1;
  1504. $found = true;
  1505. @endphp
  1506. @endif
  1507. @if (isset($home->banner_middle_2) && $home->banner_middle_2 != '')
  1508. <div class="item {{ $count == 0 ? 'active' : '' }}">
  1509. <a href="{{ $home->banner_middle_url_2 }}"><img
  1510. src="/files/{{ $home->banner_middle_2 }}" width="997" alt=""
  1511. style="border:1px solid gray;"></a>
  1512. </div>
  1513. @php
  1514. $found = true;
  1515. @endphp
  1516. @endif
  1517. @if (isset($home->banner_middle_3) && $home->banner_middle_3 != '')
  1518. <div class="item {{ $count == 0 ? 'active' : '' }}">
  1519. <a href="{{ $home->banner_middle_url_3 }}"><img
  1520. src="/files/{{ $home->banner_middle_3 }}" width="997" alt=""
  1521. style="border:1px solid gray;"></a>
  1522. </div>
  1523. @php
  1524. $found = true;
  1525. @endphp
  1526. @endif
  1527. @if (isset($home->banner_middle_4) && $home->banner_middle_4 != '')
  1528. <div class="item {{ $count == 0 ? 'active' : '' }}">
  1529. <a href="{{ $home->banner_middle_url_4 }}"><img
  1530. src="/files/{{ $home->banner_middle_4 }}" width="997" alt=""
  1531. style="border:1px solid gray;"></a>
  1532. </div>
  1533. @php
  1534. $found = true;
  1535. @endphp
  1536. @endif
  1537. @if (isset($home->banner_middle_5) && $home->banner_middle_5 != '')
  1538. <div class="item {{ $count == 0 ? 'active' : '' }}">
  1539. <a href="{{ $home->banner_middle_url_5 }}"><img
  1540. src="/files/{{ $home->banner_middle_5 }}" width="997" alt=""
  1541. style="border:1px solid gray;"></a>
  1542. </div>
  1543. @php
  1544. $found = true;
  1545. @endphp
  1546. @endif
  1547. @if (!$found)
  1548. <div class="widget" style="width:997;height:300;border:1px solid gray;"></div>
  1549. @endif
  1550. @endif
  1551. </div>
  1552. <div class="tablet-advert carousel-inner">
  1553. @if ($home->banner_middle_google != '')
  1554. <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  1555. <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-0209495346002620"
  1556. data-ad-slot="{{ $home->banner_middle_google }}" data-ad-format="auto"
  1557. data-full-width-responsive="true"></ins>
  1558. <script>
  1559. (adsbygoogle = window.adsbygoogle || []).push({});
  1560. </script>
  1561. @else
  1562. @php
  1563. $found = false;
  1564. $count = 0;
  1565. @endphp
  1566. @if (isset($home->banner_middle) && $home->banner_middle != '')
  1567. <div class="item {{ $count == 0 ? 'active' : '' }}">
  1568. <a href="{{ $home->banner_middle_url }}"><img
  1569. src="/files/{{ $home->banner_middle }}" width="997" alt=""
  1570. style="border:1px solid gray;"></a>
  1571. </div>
  1572. @php
  1573. $count += 1;
  1574. $found = true;
  1575. @endphp
  1576. @endif
  1577. @if (isset($home->banner_middle_2) && $home->banner_middle_2 != '')
  1578. <div class="item {{ $count == 0 ? 'active' : '' }}">
  1579. <a href="{{ $home->banner_middle_url_2 }}"><img
  1580. src="/files/{{ $home->banner_middle_2 }}" width="997" alt=""
  1581. style="border:1px solid gray;"></a>
  1582. </div>
  1583. @php
  1584. $found = true;
  1585. @endphp
  1586. @endif
  1587. @if (isset($home->banner_middle_3) && $home->banner_middle_3 != '')
  1588. <div class="item {{ $count == 0 ? 'active' : '' }}">
  1589. <a href="{{ $home->banner_middle_url_3 }}"><img
  1590. src="/files/{{ $home->banner_middle_3 }}" width="997" alt=""
  1591. style="border:1px solid gray;"></a>
  1592. </div>
  1593. @php
  1594. $found = true;
  1595. @endphp
  1596. @endif
  1597. @if (isset($home->banner_middle_4) && $home->banner_middle_4 != '')
  1598. <div class="item {{ $count == 0 ? 'active' : '' }}">
  1599. <a href="{{ $home->banner_middle_url_4 }}"><img
  1600. src="/files/{{ $home->banner_middle_4 }}" width="997" alt=""
  1601. style="border:1px solid gray;"></a>
  1602. </div>
  1603. @php
  1604. $found = true;
  1605. @endphp
  1606. @endif
  1607. @if (isset($home->banner_middle_5) && $home->banner_middle_5 != '')
  1608. <div class="item {{ $count == 0 ? 'active' : '' }}">
  1609. <a href="{{ $home->banner_middle_url_5 }}"><img
  1610. src="/files/{{ $home->banner_middle_5 }}" width="997" alt=""
  1611. style="border:1px solid gray;"></a>
  1612. </div>
  1613. @php
  1614. $found = true;
  1615. @endphp
  1616. @endif
  1617. @if (!$found)
  1618. <div class="widget" style="width:997;height:300;border:1px solid gray;">
  1619. </div>
  1620. @endif
  1621. @endif
  1622. </div>
  1623. <div class="mobile-advert carousel-inner">
  1624. @if ($home->banner_middle_google != '')
  1625. <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  1626. <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-0209495346002620"
  1627. data-ad-slot="{{ $home->banner_middle_google }}" data-ad-format="auto"
  1628. data-full-width-responsive="true"></ins>
  1629. <script>
  1630. (adsbygoogle = window.adsbygoogle || []).push({});
  1631. </script>
  1632. @else
  1633. @php
  1634. $found = false;
  1635. $count = 0;
  1636. @endphp
  1637. @if (isset($home->banner_middle) && $home->banner_middle != '')
  1638. <div class="item {{ $count == 0 ? 'active' : '' }}">
  1639. <a href="{{ $home->banner_middle_url }}"><img
  1640. src="/files/{{ $home->banner_middle }}" width="300" alt=""
  1641. style="border:1px solid gray;"></a>
  1642. </div>
  1643. @php
  1644. $count += 1;
  1645. $found = true;
  1646. @endphp
  1647. @endif
  1648. @if (isset($home->banner_middle_2) && $home->banner_middle_2 != '')
  1649. <div class="item {{ $count == 0 ? 'active' : '' }}">
  1650. <a href="{{ $home->banner_middle_url_2 }}"><img
  1651. src="/files/{{ $home->banner_middle_2 }}" width="300" alt=""
  1652. style="border:1px solid gray;"></a>
  1653. </div>
  1654. @php
  1655. $found = true;
  1656. @endphp
  1657. @endif
  1658. @if (isset($home->banner_middle_3) && $home->banner_middle_3 != '')
  1659. <div class="item {{ $count == 0 ? 'active' : '' }}">
  1660. <a href="{{ $home->banner_middle_url_3 }}"><img
  1661. src="/files/{{ $home->banner_middle_3 }}" width="300" alt=""
  1662. style="border:1px solid gray;"></a>
  1663. </div>
  1664. @php
  1665. $found = true;
  1666. @endphp
  1667. @endif
  1668. @if (isset($home->banner_middle_4) && $home->banner_middle_4 != '')
  1669. <div class="item {{ $count == 0 ? 'active' : '' }}">
  1670. <a href="{{ $home->banner_middle_url_4 }}"><img
  1671. src="/files/{{ $home->banner_middle_4 }}" width="300" alt=""
  1672. style="border:1px solid gray;"></a>
  1673. </div>
  1674. @php
  1675. $found = true;
  1676. @endphp
  1677. @endif
  1678. @if (isset($home->banner_middle_5) && $home->banner_middle_5 != '')
  1679. <div class="item {{ $count == 0 ? 'active' : '' }}">
  1680. <a href="{{ $home->banner_middle_url_5 }}"><img
  1681. src="/files/{{ $home->banner_middle_5 }}" width="300" alt=""
  1682. style="border:1px solid gray;"></a>
  1683. </div>
  1684. @php
  1685. $found = true;
  1686. @endphp
  1687. @endif
  1688. @if (!$found)
  1689. <div class="widget" style="width:300;height:90;border:1px solid gray;">
  1690. </div>
  1691. @endif
  1692. @endif
  1693. </div>
  1694. </div>
  1695. </div>
  1696. @yield('content')
  1697. @include('layouts.footer')
  1698. </div>
  1699. <button onclick="topFunction()" id="btTop" title="Go to top">Top</button>
  1700. <!-- End Container -->
  1701. <script type="text/javascript" src="js/jquery.min.js"></script>
  1702. <script type="text/javascript" src="js/jquery.migrate.js"></script>
  1703. <script type="text/javascript" src="js/jquery.bxslider.min.js"></script>
  1704. <script type="text/javascript" src="js/jquery.magnific-popup.min.js"></script>
  1705. <script type="text/javascript" src="js/bootstrap.min.js"></script>
  1706. <script type="text/javascript" src="js/jquery.ticker.js"></script>
  1707. <script type="text/javascript" src="js/jquery.imagesloaded.min.js"></script>
  1708. <script type="text/javascript" src="js/jquery.isotope.min.js"></script>
  1709. <script type="text/javascript" src="js/owl.carousel.min.js"></script>
  1710. <script type="text/javascript" src="js/plugins-scroll.js"></script>
  1711. <script type="text/javascript" src="js/script.js"></script>
  1712. <script type="text/javascript" src="js/jquery.lazy.min.js"></script>
  1713. <script type="text/javascript" src="js/lightslider.js"></script>
  1714. <script type="text/javascript">
  1715. var count = 0;
  1716. var max_count = {{ sizeof($aHome) }};
  1717. $(document).ready(function() {
  1718. $(".fa-search").click(function() {
  1719. $(".togglesearch").toggle();
  1720. $("input[type='text']").focus();
  1721. });
  1722. // $('body').css('cursor', 'pointer');
  1723. $('body').click(function(event) {
  1724. if (event.target == event.currentTarget) {
  1725. var url = $("#url" + count).val();
  1726. document.location.href = url;
  1727. }
  1728. //inserire url dinamica qui
  1729. // window.open('http://www.google.it');
  1730. });
  1731. $("#cbRadio").change(function() {
  1732. var audio_url = this.value;
  1733. document.getElementById("player").setAttribute('src', audio_url);
  1734. });
  1735. });
  1736. function scroll_to(id) {
  1737. $('html,body').animate({
  1738. scrollTop: $('#' + id).offset().top - 150
  1739. }, 'slow');
  1740. }
  1741. $('#btn-nav-previous').click(function() {
  1742. $(".menu-inner-box").animate({
  1743. scrollLeft: "-=150px"
  1744. });
  1745. });
  1746. $('#btn-nav-next').click(function() {
  1747. $(".menu-inner-box").animate({
  1748. scrollLeft: "+=150px"
  1749. });
  1750. });
  1751. /*
  1752. setTimeout(function(){
  1753. window.location.reload(1);
  1754. }, 180000);*/
  1755. if ($( window ).width() > 800)
  1756. {
  1757. if (max_count > 0) {
  1758. /*$('body.bg-adv').click(function() {
  1759. var url = $("#url" + count).val();
  1760. document.location.href = url;
  1761. })
  1762. $('body>*').click(function(e) {
  1763. e.stopPropagation()
  1764. });*/
  1765. setInterval(function() {
  1766. count = count + 1;
  1767. if (count == max_count)
  1768. count = 0;
  1769. var img = $("#img" + count).val();
  1770. $(".bg-adv").css("background-image", "url('/files/" + img + "')");
  1771. }, 5000);
  1772. }
  1773. }
  1774. $(function() {
  1775. $('.lazy').Lazy();
  1776. });
  1777. mybutton = document.getElementById("btTop");
  1778. // When the user scrolls down 20px from the top of the document, show the button
  1779. window.onscroll = function() {
  1780. scrollFunction()
  1781. };
  1782. function scrollFunction() {
  1783. if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
  1784. mybutton.style.display = "block";
  1785. } else {
  1786. mybutton.style.display = "none";
  1787. }
  1788. }
  1789. // When the user clicks on the button, scroll to the top of the document
  1790. function topFunction() {
  1791. document.body.scrollTop = 0; // For Safari
  1792. document.documentElement.scrollTop = 0; // For Chrome, Firefox, IE and Opera
  1793. }
  1794. $('#lightSlider').lightSlider({
  1795. gallery: true,
  1796. item: 1,
  1797. loop: true,
  1798. slideMargin: 0,
  1799. thumbItem: 5
  1800. });
  1801. $(document).ready(function() {
  1802. var $overlay = $(
  1803. '<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>'
  1804. );
  1805. var $iframe = $(
  1806. '<iframe width="595" height="485" frameborder="0" marginwidth="0" margin="0" height="0" scrolling="no" style="margin-top:10%" allowfullscreen></iframe>'
  1807. );
  1808. $overlay.append($iframe);
  1809. // append overlay to body
  1810. $('body').append($overlay);
  1811. $('a.view-video').click(function(event) {
  1812. event.preventDefault();
  1813. var id = $(this).attr('href');
  1814. var src = '/video/' + id;
  1815. console.log(src);
  1816. // update overlay with iframe
  1817. $iframe.attr('src', src);
  1818. // show overlay
  1819. $overlay.show();
  1820. });
  1821. // when overlay is clicked
  1822. $overlay.click(function() {
  1823. // hide overlay
  1824. $overlay.hide();
  1825. $iframe.attr('src', '');
  1826. });
  1827. });
  1828. $(function() {
  1829. $(document).ready(function() {
  1830. if (window.matchMedia("(max-width: 767px)").matches) {
  1831. $(".desktop-advert").remove();
  1832. $(".tablet-advert").remove();
  1833. } else {
  1834. }
  1835. });
  1836. $('.carousel').carousel();
  1837. })
  1838. </script>
  1839. <script type="text/javascript">
  1840. $('.navbar-nav a.home-scroll-section').click(function() {
  1841. $('.navbar-collapse').removeClass('in')
  1842. });
  1843. </script>
  1844. <script>
  1845. document.querySelector('.search-trigger-custom').addEventListener('click', function(e) {
  1846. e.preventDefault();
  1847. document.querySelector('.search-dropdown-custom').classList.toggle('active');
  1848. if (document.querySelector('.search-dropdown-custom').classList.contains('active')) {
  1849. document.querySelector('#search-field-custom').focus();
  1850. }
  1851. });
  1852. // Close search when clicking outside
  1853. document.addEventListener('click', function(e) {
  1854. const searchArea = document.querySelector('.top-search-custom');
  1855. const dropdown = document.querySelector('.search-dropdown-custom');
  1856. if (!searchArea.contains(e.target) && dropdown.classList.contains('active')) {
  1857. dropdown.classList.remove('active');
  1858. }
  1859. });
  1860. </script>
  1861. </body>
  1862. </html>