home_adv.blade.php 74 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066
  1. @extends('layouts.admin')
  2. @section('title')
  3. Home
  4. @stop
  5. @section('content')
  6. <div class="row">
  7. <div class="col-lg-12">
  8. <form action="/admin/home_adv" method="POST" enctype="multipart/form-data">
  9. {{csrf_field()}}
  10. <div class="box box-primary">
  11. <div class="box-header with-border">
  12. <h3 class="box-title"></h3>
  13. </div>
  14. <div class="box-body">
  15. <div class="box-body table-responsive no-padding">
  16. <table class="table table-striped table-hover">
  17. <thead>
  18. <tr>
  19. <th>Posizione</th>
  20. <th>Immagine</th>
  21. <th>URL</th>
  22. <th>Codice Google ADV</th>
  23. </tr>
  24. </thead>
  25. <tr>
  26. <td><img src="/images/layout_home_skin.jpg" style="max-width:200px"></td>
  27. <td>
  28. @if(isset($_GET["edit"]))
  29. <input type="file" name="image">
  30. @if($home->image != '')
  31. <input type="checkbox" name="delete_image">Rimuovi immagine<br>
  32. <img src="/files/{{$home->image}}" style="max-width:250px">
  33. @endif
  34. @else
  35. @if($home->image != '')
  36. <img src="/files/{{$home->image}}" style="max-width:250px">
  37. @endif
  38. @endif
  39. </td>
  40. <td>
  41. @if(isset($_GET["edit"]))
  42. <input type="text" name="url" value="{{$home->url}}" class="form-control">
  43. @else
  44. {{$home->url}}
  45. @endif
  46. </td>
  47. <td></td>
  48. </tr>
  49. <tr>
  50. <td><img src="/images/layout_home_skin.jpg" style="max-width:200px"></td>
  51. <td>
  52. @if(isset($_GET["edit"]))
  53. <input type="file" name="image_2">
  54. @if($home->image_2 != '')
  55. <input type="checkbox" name="delete_image_2">Rimuovi immagine<br>
  56. <img src="/files/{{$home->image_2}}" style="max-width:250px">
  57. @endif
  58. @else
  59. @if($home->image_2 != '')
  60. <img src="/files/{{$home->image_2}}" style="max-width:250px">
  61. @endif
  62. @endif
  63. </td>
  64. <td>
  65. @if(isset($_GET["edit"]))
  66. <input type="text" name="url_2" value="{{$home->url_2}}" class="form-control">
  67. @else
  68. {{$home->url_2}}
  69. @endif
  70. </td>
  71. <td></td>
  72. </tr>
  73. <tr>
  74. <td><img src="/images/layout_home_skin.jpg" style="max-width:200px"></td>
  75. <td>
  76. @if(isset($_GET["edit"]))
  77. <input type="file" name="image_3">
  78. @if($home->image_3 != '')
  79. <input type="checkbox" name="delete_image_3">Rimuovi immagine<br>
  80. <img src="/files/{{$home->image_3}}" style="max-width:250px">
  81. @endif
  82. @else
  83. @if($home->image_3 != '')
  84. <img src="/files/{{$home->image_3}}" style="max-width:250px">
  85. @endif
  86. @endif
  87. </td>
  88. <td>
  89. @if(isset($_GET["edit"]))
  90. <input type="text" name="url_3" value="{{$home->url_3}}" class="form-control">
  91. @else
  92. {{$home->url_3}}
  93. @endif
  94. </td>
  95. <td></td>
  96. </tr>
  97. <tr>
  98. <td><img src="/images/layout_home_skin.jpg" style="max-width:200px"></td>
  99. <td>
  100. @if(isset($_GET["edit"]))
  101. <input type="file" name="image_4">
  102. @if($home->image_4 != '')
  103. <input type="checkbox" name="delete_image_4">Rimuovi immagine<br>
  104. <img src="/files/{{$home->image_4}}" style="max-width:250px">
  105. @endif
  106. @else
  107. @if($home->image_4 != '')
  108. <img src="/files/{{$home->image_4}}" style="max-width:250px">
  109. @endif
  110. @endif
  111. </td>
  112. <td>
  113. @if(isset($_GET["edit"]))
  114. <input type="text" name="url_4" value="{{$home->url_4}}" class="form-control">
  115. @else
  116. {{$home->url_4}}
  117. @endif
  118. </td>
  119. <td></td>
  120. </tr>
  121. <tr>
  122. <td><img src="/images/layout_home_skin.jpg" style="max-width:200px"></td>
  123. <td>
  124. @if(isset($_GET["edit"]))
  125. <input type="file" name="image_5">
  126. @if($home->image_5 != '')
  127. <input type="checkbox" name="delete_image_5">Rimuovi immagine<br>
  128. <img src="/files/{{$home->image_5}}" style="max-width:250px">
  129. @endif
  130. @else
  131. @if($home->image_5 != '')
  132. <img src="/files/{{$home->image_5}}" style="max-width:250px">
  133. @endif
  134. @endif
  135. </td>
  136. <td>
  137. @if(isset($_GET["edit"]))
  138. <input type="text" name="url_5" value="{{$home->url_5}}" class="form-control">
  139. @else
  140. {{$home->url_5}}
  141. @endif
  142. </td>
  143. <td></td>
  144. </tr>
  145. <tr>
  146. <td><b>Vicino al logo</b><br><img src="/images/layout_home_top.jpg" style="max-width:200px"></td>
  147. <td colspan="2">
  148. <table width="100%">
  149. <tr>
  150. <td>
  151. @if(isset($_GET["edit"]))
  152. <input type="file" name="banner_top">
  153. @if($home->banner_top != '')
  154. <input type="checkbox" name="delete_banner_top">Rimuovi immagine<br>
  155. <img src="/files/{{$home->banner_top}}" style="max-width:250px">
  156. @endif
  157. @else
  158. @if($home->banner_top != '')
  159. <img src="/files/{{$home->banner_top}}" style="max-width:250px">
  160. @endif
  161. @endif
  162. </td>
  163. <td>
  164. @if(isset($_GET["edit"]))
  165. <input type="text" name="banner_top_url" value="{{$home->banner_top_url}}" class="form-control">
  166. @else
  167. {{$home->banner_top_url}}
  168. @endif
  169. </td>
  170. </tr>
  171. <tr><td colspan="2"><hr size="1"></td></tr>
  172. <tr>
  173. <td>
  174. @if(isset($_GET["edit"]))
  175. <input type="file" name="banner_top_2">
  176. @if($home->banner_top_2 != '')
  177. <input type="checkbox" name="delete_banner_top_2">Rimuovi immagine<br>
  178. <img src="/files/{{$home->banner_top_2}}" style="max-width:250px">
  179. @endif
  180. @else
  181. @if($home->banner_top_2 != '')
  182. <img src="/files/{{$home->banner_top_2}}" style="max-width:250px">
  183. @endif
  184. @endif
  185. </td>
  186. <td>
  187. @if(isset($_GET["edit"]))
  188. <input type="text" name="banner_top_2_url" value="{{$home->banner_top_2_url}}" class="form-control">
  189. @else
  190. {{$home->banner_top_2_url}}
  191. @endif
  192. </td>
  193. </tr>
  194. <tr><td colspan="2"><hr size="1"></td></tr>
  195. <tr>
  196. <td>
  197. @if(isset($_GET["edit"]))
  198. <input type="file" name="banner_top_3">
  199. @if($home->banner_top_3 != '')
  200. <input type="checkbox" name="delete_banner_top_3">Rimuovi immagine<br>
  201. <img src="/files/{{$home->banner_top_3}}" style="max-width:250px">
  202. @endif
  203. @else
  204. @if($home->banner_top_3 != '')
  205. <img src="/files/{{$home->banner_top_3}}" style="max-width:250px">
  206. @endif
  207. @endif
  208. </td>
  209. <td>
  210. @if(isset($_GET["edit"]))
  211. <input type="text" name="banner_top_3_url" value="{{$home->banner_top_3_url}}" class="form-control">
  212. @else
  213. {{$home->banner_top_3_url}}
  214. @endif
  215. </td>
  216. </tr>
  217. <tr><td colspan="2"><hr size="1"></td></tr>
  218. <tr>
  219. <td>
  220. @if(isset($_GET["edit"]))
  221. <input type="file" name="banner_top_4">
  222. @if($home->banner_top_4 != '')
  223. <input type="checkbox" name="delete_banner_top_4">Rimuovi immagine<br>
  224. <img src="/files/{{$home->banner_top_4}}" style="max-width:250px">
  225. @endif
  226. @else
  227. @if($home->banner_top_4 != '')
  228. <img src="/files/{{$home->banner_top_4}}" style="max-width:250px">
  229. @endif
  230. @endif
  231. </td>
  232. <td>
  233. @if(isset($_GET["edit"]))
  234. <input type="text" name="banner_top_4_url" value="{{$home->banner_top_4_url}}" class="form-control">
  235. @else
  236. {{$home->banner_top_4_url}}
  237. @endif
  238. </td>
  239. </tr>
  240. <tr><td colspan="2"><hr size="1"></td></tr>
  241. <tr>
  242. <td>
  243. @if(isset($_GET["edit"]))
  244. <input type="file" name="banner_top_5">
  245. @if($home->banner_top_5 != '')
  246. <input type="checkbox" name="delete_banner_top_5">Rimuovi immagine<br>
  247. <img src="/files/{{$home->banner_top_5}}" style="max-width:250px">
  248. @endif
  249. @else
  250. @if($home->banner_top_5 != '')
  251. <img src="/files/{{$home->banner_top_5}}" style="max-width:250px">
  252. @endif
  253. @endif
  254. </td>
  255. <td>
  256. @if(isset($_GET["edit"]))
  257. <input type="text" name="banner_top_5_url" value="{{$home->banner_top_5_url}}" class="form-control">
  258. @else
  259. {{$home->banner_top_5_url}}
  260. @endif
  261. </td>
  262. </tr>
  263. </table>
  264. </td>
  265. <td>
  266. @if(isset($_GET["edit"]))
  267. <input type="text" name="banner_top_google" value="{{$home->banner_top_google}}" class="form-control">
  268. @else
  269. {{$home->banner_top_google}}
  270. @endif
  271. </td>
  272. </tr>
  273. <tr>
  274. <td><b>Sotto breaking news</b><br><img src="/images/layout_home_underb.jpg" style="max-width:200px"></td>
  275. <td colspan="2">
  276. <table width="100%">
  277. <tr>
  278. <td>
  279. @if(isset($_GET["edit"]))
  280. <input type="file" name="banner_underb">
  281. @if($home->banner_underb != '')
  282. <input type="checkbox" name="delete_banner_underb">Rimuovi immagine<br>
  283. <img src="/files/{{$home->banner_underb}}" style="max-width:250px">
  284. @endif
  285. @else
  286. @if($home->banner_underb != '')
  287. <img src="/files/{{$home->banner_underb}}" style="max-width:250px">
  288. @endif
  289. @endif
  290. </td>
  291. <td>
  292. @if(isset($_GET["edit"]))
  293. <input type="text" name="banner_underb_url" value="{{$home->banner_underb_url}}" class="form-control">
  294. @else
  295. {{$home->banner_underb_url}}
  296. @endif
  297. </td>
  298. </tr>
  299. <tr><td colspan="2"><hr size="1"></td></tr>
  300. <tr>
  301. <td>
  302. @if(isset($_GET["edit"]))
  303. <input type="file" name="banner_underb_2">
  304. @if($home->banner_underb_2 != '')
  305. <input type="checkbox" name="delete_banner_underb_2">Rimuovi immagine<br>
  306. <img src="/files/{{$home->banner_underb_2}}" style="max-width:250px">
  307. @endif
  308. @else
  309. @if($home->banner_underb_2 != '')
  310. <img src="/files/{{$home->banner_underb_2}}" style="max-width:250px">
  311. @endif
  312. @endif
  313. </td>
  314. <td>
  315. @if(isset($_GET["edit"]))
  316. <input type="text" name="banner_underb_2_url" value="{{$home->banner_underb_2_url}}" class="form-control">
  317. @else
  318. {{$home->banner_underb_2_url}}
  319. @endif
  320. </td>
  321. </tr>
  322. <tr><td colspan="2"><hr size="1"></td></tr>
  323. <tr>
  324. <td>
  325. @if(isset($_GET["edit"]))
  326. <input type="file" name="banner_underb_3">
  327. @if($home->banner_underb_3 != '')
  328. <input type="checkbox" name="delete_banner_underb_3">Rimuovi immagine<br>
  329. <img src="/files/{{$home->banner_underb_3}}" style="max-width:250px">
  330. @endif
  331. @else
  332. @if($home->banner_underb_3 != '')
  333. <img src="/files/{{$home->banner_underb_3}}" style="max-width:250px">
  334. @endif
  335. @endif
  336. </td>
  337. <td>
  338. @if(isset($_GET["edit"]))
  339. <input type="text" name="banner_underb_3_url" value="{{$home->banner_underb_3_url}}" class="form-control">
  340. @else
  341. {{$home->banner_underb_3_url}}
  342. @endif
  343. </td>
  344. </tr>
  345. <tr><td colspan="2"><hr size="1"></td></tr>
  346. <tr>
  347. <td>
  348. @if(isset($_GET["edit"]))
  349. <input type="file" name="banner_underb_4">
  350. @if($home->banner_underb_4 != '')
  351. <input type="checkbox" name="delete_banner_underb_4">Rimuovi immagine<br>
  352. <img src="/files/{{$home->banner_underb_4}}" style="max-width:250px">
  353. @endif
  354. @else
  355. @if($home->banner_underb_4 != '')
  356. <img src="/files/{{$home->banner_underb_4}}" style="max-width:250px">
  357. @endif
  358. @endif
  359. </td>
  360. <td>
  361. @if(isset($_GET["edit"]))
  362. <input type="text" name="banner_underb_4_url" value="{{$home->banner_underb_4_url}}" class="form-control">
  363. @else
  364. {{$home->banner_underb_4_url}}
  365. @endif
  366. </td>
  367. </tr>
  368. <tr><td colspan="2"><hr size="1"></td></tr>
  369. <tr>
  370. <td>
  371. @if(isset($_GET["edit"]))
  372. <input type="file" name="banner_underb_5">
  373. @if($home->banner_underb_5 != '')
  374. <input type="checkbox" name="delete_banner_underb_5">Rimuovi immagine<br>
  375. <img src="/files/{{$home->banner_underb_5}}" style="max-width:250px">
  376. @endif
  377. @else
  378. @if($home->banner_underb_5 != '')
  379. <img src="/files/{{$home->banner_underb_5}}" style="max-width:250px">
  380. @endif
  381. @endif
  382. </td>
  383. <td>
  384. @if(isset($_GET["edit"]))
  385. <input type="text" name="banner_underb_5_url" value="{{$home->banner_underb_5_url}}" class="form-control">
  386. @else
  387. {{$home->banner_underb_5_url}}
  388. @endif
  389. </td>
  390. </tr>
  391. </table>
  392. </td>
  393. <td>
  394. @if(isset($_GET["edit"]))
  395. <input type="text" name="banner_underb_google" value="{{$home->banner_underb_google}}" class="form-control">
  396. @else
  397. {{$home->banner_underb_google}}
  398. @endif
  399. </td>
  400. </tr>
  401. <tr>
  402. <td><b>Sotto primo piano</b><br><img src="/images/layout_home_medio.jpg" style="max-width:200px"></td>
  403. <td colspan="2">
  404. <table width="100%">
  405. <tr>
  406. <td>
  407. @if(isset($_GET["edit"]))
  408. <input type="file" name="banner_middle">
  409. @if($home->banner_middle != '')
  410. <input type="checkbox" name="delete_banner_middle">Rimuovi immagine<br>
  411. <img src="/files/{{$home->banner_middle}}" style="max-width:250px">
  412. @endif
  413. @else
  414. @if($home->banner_middle != '')
  415. <img src="/files/{{$home->banner_middle}}" style="max-width:250px">
  416. @endif
  417. @endif
  418. </td>
  419. <td>
  420. @if(isset($_GET["edit"]))
  421. <input type="text" name="banner_middle_url" value="{{$home->banner_middle_url}}" class="form-control">
  422. @else
  423. {{$home->banner_middle_url}}
  424. @endif
  425. </td>
  426. </tr>
  427. <tr><td colspan="2"><hr size="1"></td></tr>
  428. <tr>
  429. <td>
  430. @if(isset($_GET["edit"]))
  431. <input type="file" name="banner_middle_2">
  432. @if($home->banner_middle_2 != '')
  433. <input type="checkbox" name="delete_banner_middle_2">Rimuovi immagine<br>
  434. <img src="/files/{{$home->banner_middle_2}}" style="max-width:250px">
  435. @endif
  436. @else
  437. @if($home->banner_middle_2 != '')
  438. <img src="/files/{{$home->banner_middle_2}}" style="max-width:250px">
  439. @endif
  440. @endif
  441. </td>
  442. <td>
  443. @if(isset($_GET["edit"]))
  444. <input type="text" name="banner_middle_2_url" value="{{$home->banner_middle_2_url}}" class="form-control">
  445. @else
  446. {{$home->banner_middle_2_url}}
  447. @endif
  448. </td>
  449. </tr>
  450. <tr><td colspan="2"><hr size="1"></td></tr>
  451. <tr>
  452. <td>
  453. @if(isset($_GET["edit"]))
  454. <input type="file" name="banner_middle_3">
  455. @if($home->banner_middle_3 != '')
  456. <input type="checkbox" name="delete_banner_middle_3">Rimuovi immagine<br>
  457. <img src="/files/{{$home->banner_middle_3}}" style="max-width:250px">
  458. @endif
  459. @else
  460. @if($home->banner_middle_3 != '')
  461. <img src="/files/{{$home->banner_middle_3}}" style="max-width:250px">
  462. @endif
  463. @endif
  464. </td>
  465. <td>
  466. @if(isset($_GET["edit"]))
  467. <input type="text" name="banner_middle_3_url" value="{{$home->banner_middle_3_url}}" class="form-control">
  468. @else
  469. {{$home->banner_middle_3_url}}
  470. @endif
  471. </td>
  472. </tr>
  473. <tr><td colspan="2"><hr size="1"></td></tr>
  474. <tr>
  475. <td>
  476. @if(isset($_GET["edit"]))
  477. <input type="file" name="banner_middle_4">
  478. @if($home->banner_middle_4 != '')
  479. <input type="checkbox" name="delete_banner_middle_4">Rimuovi immagine<br>
  480. <img src="/files/{{$home->banner_middle_4}}" style="max-width:250px">
  481. @endif
  482. @else
  483. @if($home->banner_middle_4 != '')
  484. <img src="/files/{{$home->banner_middle_4}}" style="max-width:250px">
  485. @endif
  486. @endif
  487. </td>
  488. <td>
  489. @if(isset($_GET["edit"]))
  490. <input type="text" name="banner_middle_4_url" value="{{$home->banner_middle_4_url}}" class="form-control">
  491. @else
  492. {{$home->banner_middle_4_url}}
  493. @endif
  494. </td>
  495. </tr>
  496. <tr><td colspan="2"><hr size="1"></td></tr>
  497. <tr>
  498. <td>
  499. @if(isset($_GET["edit"]))
  500. <input type="file" name="banner_middle_5">
  501. @if($home->banner_middle_5 != '')
  502. <input type="checkbox" name="delete_banner_middle_5">Rimuovi immagine<br>
  503. <img src="/files/{{$home->banner_middle_5}}" style="max-width:250px">
  504. @endif
  505. @else
  506. @if($home->banner_middle_5 != '')
  507. <img src="/files/{{$home->banner_middle_5}}" style="max-width:250px">
  508. @endif
  509. @endif
  510. </td>
  511. <td>
  512. @if(isset($_GET["edit"]))
  513. <input type="text" name="banner_middle_5_url" value="{{$home->banner_middle_5_url}}" class="form-control">
  514. @else
  515. {{$home->banner_middle_5_url}}
  516. @endif
  517. </td>
  518. </tr>
  519. </table>
  520. </td>
  521. <td>
  522. @if(isset($_GET["edit"]))
  523. <input type="text" name="banner_middle_google" value="{{$home->banner_middle_google}}" class="form-control">
  524. @else
  525. {{$home->banner_middle_google}}
  526. @endif
  527. </td>
  528. </tr>
  529. @if(false)
  530. <tr>
  531. <td><b>Sotto video</b><br><img src="/images/layout_home_primopiano.jpg" style="max-width:200px"></td>
  532. <td colspan="2">
  533. <table width="100%">
  534. <tr>
  535. <td>
  536. @if(isset($_GET["edit"]))
  537. <input type="file" name="banner_first">
  538. @if($home->banner_first != '')
  539. <input type="checkbox" name="delete_banner_first">Rimuovi immagine<br>
  540. <img src="/files/{{$home->banner_first}}" style="max-width:250px">
  541. @endif
  542. @else
  543. @if($home->banner_first != '')
  544. <img src="/files/{{$home->banner_first}}" style="max-width:250px">
  545. @endif
  546. @endif
  547. </td>
  548. <td>
  549. @if(isset($_GET["edit"]))
  550. <input type="text" name="banner_first_url" value="{{$home->banner_first_url}}" class="form-control">
  551. @else
  552. {{$home->banner_first_url}}
  553. @endif
  554. </td>
  555. </tr>
  556. <tr><td colspan="2"><hr size="1"></td></tr>
  557. <tr>
  558. <td>
  559. @if(isset($_GET["edit"]))
  560. <input type="file" name="banner_first_2">
  561. @if($home->banner_first_2 != '')
  562. <input type="checkbox" name="delete_banner_first_2">Rimuovi immagine<br>
  563. <img src="/files/{{$home->banner_first_2}}" style="max-width:250px">
  564. @endif
  565. @else
  566. @if($home->banner_first_2 != '')
  567. <img src="/files/{{$home->banner_first_2}}" style="max-width:250px">
  568. @endif
  569. @endif
  570. </td>
  571. <td>
  572. @if(isset($_GET["edit"]))
  573. <input type="text" name="banner_first_2_url" value="{{$home->banner_first_2_url}}" class="form-control">
  574. @else
  575. {{$home->banner_first_2_url}}
  576. @endif
  577. </td>
  578. </tr>
  579. <tr><td colspan="2"><hr size="1"></td></tr>
  580. <tr>
  581. <td>
  582. @if(isset($_GET["edit"]))
  583. <input type="file" name="banner_first_3">
  584. @if($home->banner_first_3 != '')
  585. <input type="checkbox" name="delete_banner_first_3">Rimuovi immagine<br>
  586. <img src="/files/{{$home->banner_first_3}}" style="max-width:250px">
  587. @endif
  588. @else
  589. @if($home->banner_first_3 != '')
  590. <img src="/files/{{$home->banner_first_3}}" style="max-width:250px">
  591. @endif
  592. @endif
  593. </td>
  594. <td>
  595. @if(isset($_GET["edit"]))
  596. <input type="text" name="banner_first_3_url" value="{{$home->banner_first_3_url}}" class="form-control">
  597. @else
  598. {{$home->banner_first_3_url}}
  599. @endif
  600. </td>
  601. </tr>
  602. <tr><td colspan="2"><hr size="1"></td></tr>
  603. <tr>
  604. <td>
  605. @if(isset($_GET["edit"]))
  606. <input type="file" name="banner_first_4">
  607. @if($home->banner_first_4 != '')
  608. <input type="checkbox" name="delete_banner_first_4">Rimuovi immagine<br>
  609. <img src="/files/{{$home->banner_first_4}}" style="max-width:250px">
  610. @endif
  611. @else
  612. @if($home->banner_first_4 != '')
  613. <img src="/files/{{$home->banner_first_4}}" style="max-width:250px">
  614. @endif
  615. @endif
  616. </td>
  617. <td>
  618. @if(isset($_GET["edit"]))
  619. <input type="text" name="banner_first_4_url" value="{{$home->banner_first_4_url}}" class="form-control">
  620. @else
  621. {{$home->banner_first_4_url}}
  622. @endif
  623. </td>
  624. </tr>
  625. <tr><td colspan="2"><hr size="1"></td></tr>
  626. <tr>
  627. <td>
  628. @if(isset($_GET["edit"]))
  629. <input type="file" name="banner_first_5">
  630. @if($home->banner_first_5 != '')
  631. <input type="checkbox" name="delete_banner_first_5">Rimuovi immagine<br>
  632. <img src="/files/{{$home->banner_first_5}}" style="max-width:250px">
  633. @endif
  634. @else
  635. @if($home->banner_first_5 != '')
  636. <img src="/files/{{$home->banner_first_5}}" style="max-width:250px">
  637. @endif
  638. @endif
  639. </td>
  640. <td>
  641. @if(isset($_GET["edit"]))
  642. <input type="text" name="banner_first_5_url" value="{{$home->banner_first_5_url}}" class="form-control">
  643. @else
  644. {{$home->banner_first_5_url}}
  645. @endif
  646. </td>
  647. </tr>
  648. </table>
  649. <td>
  650. @if(isset($_GET["edit"]))
  651. <input type="text" name="banner_first_google" value="{{$home->banner_first_google}}" class="form-control">
  652. @else
  653. {{$home->banner_first_google}}
  654. @endif
  655. </td>
  656. </tr>
  657. @endif
  658. <tr>
  659. <td><b>Destra sopra 300x250-1</b><br><img src="/images/layout_dx_sopra.jpg" style="max-width:200px"></td>
  660. <td colspan="2">
  661. <table width="100%">
  662. <tr>
  663. <td>
  664. @if(isset($_GET["edit"]))
  665. <input type="file" name="banner_right_top">
  666. @if($home->banner_right_top != '')
  667. <input type="checkbox" name="delete_banner_right_top">Rimuovi immagine<br>
  668. <img src="/files/{{$home->banner_right_top}}" style="max-width:250px">
  669. @endif
  670. @else
  671. @if($home->banner_right_top != '')
  672. <img src="/files/{{$home->banner_right_top}}" style="max-width:250px">
  673. @endif
  674. @endif
  675. </td>
  676. <td>
  677. @if(isset($_GET["edit"]))
  678. <input type="text" name="banner_right_top_url" value="{{$home->banner_right_top_url}}" class="form-control">
  679. @else
  680. {{$home->banner_right_top_url}}
  681. @endif
  682. </td>
  683. </tr>
  684. <tr><td colspan="2"><hr size="1"></td></tr>
  685. <tr>
  686. <td>
  687. @if(isset($_GET["edit"]))
  688. <input type="file" name="banner_right_top_2">
  689. @if($home->banner_right_top_2 != '')
  690. <input type="checkbox" name="delete_banner_right_top_2">Rimuovi immagine<br>
  691. <img src="/files/{{$home->banner_right_top_2}}" style="max-width:250px">
  692. @endif
  693. @else
  694. @if($home->banner_right_top_2 != '')
  695. <img src="/files/{{$home->banner_right_top_2}}" style="max-width:250px">
  696. @endif
  697. @endif
  698. </td>
  699. <td>
  700. @if(isset($_GET["edit"]))
  701. <input type="text" name="banner_right_top_2_url" value="{{$home->banner_right_top_2_url}}" class="form-control">
  702. @else
  703. {{$home->banner_right_top_2_url}}
  704. @endif
  705. </td>
  706. </tr>
  707. <tr><td colspan="2"><hr size="1"></td></tr>
  708. <tr>
  709. <td>
  710. @if(isset($_GET["edit"]))
  711. <input type="file" name="banner_right_top_3">
  712. @if($home->banner_right_top_3 != '')
  713. <input type="checkbox" name="delete_banner_right_top_3">Rimuovi immagine<br>
  714. <img src="/files/{{$home->banner_right_top_3}}" style="max-width:250px">
  715. @endif
  716. @else
  717. @if($home->banner_right_top_3 != '')
  718. <img src="/files/{{$home->banner_right_top_3}}" style="max-width:250px">
  719. @endif
  720. @endif
  721. </td>
  722. <td>
  723. @if(isset($_GET["edit"]))
  724. <input type="text" name="banner_right_top_3_url" value="{{$home->banner_right_top_3_url}}" class="form-control">
  725. @else
  726. {{$home->banner_right_top_3_url}}
  727. @endif
  728. </td>
  729. </tr>
  730. <tr><td colspan="2"><hr size="1"></td></tr>
  731. <tr>
  732. <td>
  733. @if(isset($_GET["edit"]))
  734. <input type="file" name="banner_right_top_4">
  735. @if($home->banner_right_top_4 != '')
  736. <input type="checkbox" name="delete_banner_right_top_4">Rimuovi immagine<br>
  737. <img src="/files/{{$home->banner_right_top_4}}" style="max-width:250px">
  738. @endif
  739. @else
  740. @if($home->banner_right_top_4 != '')
  741. <img src="/files/{{$home->banner_right_top_4}}" style="max-width:250px">
  742. @endif
  743. @endif
  744. </td>
  745. <td>
  746. @if(isset($_GET["edit"]))
  747. <input type="text" name="banner_right_top_4_url" value="{{$home->banner_right_top_4_url}}" class="form-control">
  748. @else
  749. {{$home->banner_right_top_4_url}}
  750. @endif
  751. </td>
  752. </tr>
  753. <tr><td colspan="2"><hr size="1"></td></tr>
  754. <tr>
  755. <td>
  756. @if(isset($_GET["edit"]))
  757. <input type="file" name="banner_right_top_5">
  758. @if($home->banner_right_top_5 != '')
  759. <input type="checkbox" name="delete_banner_right_top_5">Rimuovi immagine<br>
  760. <img src="/files/{{$home->banner_right_top_5}}" style="max-width:250px">
  761. @endif
  762. @else
  763. @if($home->banner_right_top_5 != '')
  764. <img src="/files/{{$home->banner_right_top_5}}" style="max-width:250px">
  765. @endif
  766. @endif
  767. </td>
  768. <td>
  769. @if(isset($_GET["edit"]))
  770. <input type="text" name="banner_right_top_5_url" value="{{$home->banner_right_top_5_url}}" class="form-control">
  771. @else
  772. {{$home->banner_right_top_5_url}}
  773. @endif
  774. </td>
  775. </tr>
  776. </table>
  777. <td>
  778. @if(isset($_GET["edit"]))
  779. <input type="text" name="banner_right_top_google" value="{{$home->banner_right_top_google}}" class="form-control">
  780. @else
  781. {{$home->banner_right_top_google}}
  782. @endif
  783. </td>
  784. </tr>
  785. <tr>
  786. <td><b>Destra sopra 300x250-2</b><br><img src="/images/layout_dx_sotto.jpg" style="max-width:200px"></td>
  787. <td colspan="2">
  788. <table width="100%">
  789. <tr>
  790. <td>
  791. @if(isset($_GET["edit"]))
  792. <input type="file" name="banner_right_bottom">
  793. @if($home->banner_right_bottom != '')
  794. <input type="checkbox" name="delete_banner_right_bottom">Rimuovi immagine<br>
  795. <img src="/files/{{$home->banner_right_bottom}}" style="max-width:250px">
  796. @endif
  797. @else
  798. @if($home->banner_right_bottom != '')
  799. <img src="/files/{{$home->banner_right_bottom}}" style="max-width:250px">
  800. @endif
  801. @endif
  802. </td>
  803. <td>
  804. @if(isset($_GET["edit"]))
  805. <input type="text" name="banner_right_bottom_url" value="{{$home->banner_right_bottom_url}}" class="form-control">
  806. @else
  807. {{$home->banner_right_bottom_url}}
  808. @endif
  809. </td>
  810. </tr>
  811. <tr><td colspan="2"><hr size="1"></td></tr>
  812. <tr>
  813. <td>
  814. @if(isset($_GET["edit"]))
  815. <input type="file" name="banner_right_bottom_2">
  816. @if($home->banner_right_bottom_2 != '')
  817. <input type="checkbox" name="delete_banner_right_bottom_2">Rimuovi immagine<br>
  818. <img src="/files/{{$home->banner_right_bottom_2}}" style="max-width:250px">
  819. @endif
  820. @else
  821. @if($home->banner_right_bottom_2 != '')
  822. <img src="/files/{{$home->banner_right_bottom_2}}" style="max-width:250px">
  823. @endif
  824. @endif
  825. </td>
  826. <td>
  827. @if(isset($_GET["edit"]))
  828. <input type="text" name="banner_right_bottom_2_url" value="{{$home->banner_right_bottom_2_url}}" class="form-control">
  829. @else
  830. {{$home->banner_right_bottom_2_url}}
  831. @endif
  832. </td>
  833. </tr>
  834. <tr><td colspan="2"><hr size="1"></td></tr>
  835. <tr>
  836. <td>
  837. @if(isset($_GET["edit"]))
  838. <input type="file" name="banner_right_bottom_3">
  839. @if($home->banner_right_bottom_3 != '')
  840. <input type="checkbox" name="delete_banner_right_bottom_3">Rimuovi immagine<br>
  841. <img src="/files/{{$home->banner_right_bottom_3}}" style="max-width:250px">
  842. @endif
  843. @else
  844. @if($home->banner_right_bottom_3 != '')
  845. <img src="/files/{{$home->banner_right_bottom_3}}" style="max-width:250px">
  846. @endif
  847. @endif
  848. </td>
  849. <td>
  850. @if(isset($_GET["edit"]))
  851. <input type="text" name="banner_right_bottom_3_url" value="{{$home->banner_right_bottom_3_url}}" class="form-control">
  852. @else
  853. {{$home->banner_right_bottom_3_url}}
  854. @endif
  855. </td>
  856. </tr>
  857. <tr><td colspan="2"><hr size="1"></td></tr>
  858. <tr>
  859. <td>
  860. @if(isset($_GET["edit"]))
  861. <input type="file" name="banner_right_bottom_4">
  862. @if($home->banner_right_bottom_4 != '')
  863. <input type="checkbox" name="delete_banner_right_bottom_4">Rimuovi immagine<br>
  864. <img src="/files/{{$home->banner_right_bottom_4}}" style="max-width:250px">
  865. @endif
  866. @else
  867. @if($home->banner_right_bottom_4 != '')
  868. <img src="/files/{{$home->banner_right_bottom_4}}" style="max-width:250px">
  869. @endif
  870. @endif
  871. </td>
  872. <td>
  873. @if(isset($_GET["edit"]))
  874. <input type="text" name="banner_right_bottom_4_url" value="{{$home->banner_right_bottom_4_url}}" class="form-control">
  875. @else
  876. {{$home->banner_right_bottom_4_url}}
  877. @endif
  878. </td>
  879. </tr>
  880. <tr><td colspan="2"><hr size="1"></td></tr>
  881. <tr>
  882. <td>
  883. @if(isset($_GET["edit"]))
  884. <input type="file" name="banner_right_bottom_5">
  885. @if($home->banner_right_bottom_5 != '')
  886. <input type="checkbox" name="delete_banner_right_bottom_5">Rimuovi immagine<br>
  887. <img src="/files/{{$home->banner_right_bottom_5}}" style="max-width:250px">
  888. @endif
  889. @else
  890. @if($home->banner_right_bottom_5 != '')
  891. <img src="/files/{{$home->banner_right_bottom_5}}" style="max-width:250px">
  892. @endif
  893. @endif
  894. </td>
  895. <td>
  896. @if(isset($_GET["edit"]))
  897. <input type="text" name="banner_right_bottom_5_url" value="{{$home->banner_right_bottom_5_url}}" class="form-control">
  898. @else
  899. {{$home->banner_right_bottom_5_url}}
  900. @endif
  901. </td>
  902. </tr>
  903. </table>
  904. <td>
  905. @if(isset($_GET["edit"]))
  906. <input type="text" name="banner_right_bottom_google" value="{{$home->banner_right_bottom_google}}" class="form-control">
  907. @else
  908. {{$home->banner_right_bottom_google}}
  909. @endif
  910. </td>
  911. </tr>
  912. <tr>
  913. <td><b>Destra sopra 300x600</b><br><img src="/images/layout_dx_grande.jpg" style="max-width:200px"></td>
  914. <td colspan="2">
  915. <table width="100%">
  916. <tr>
  917. <td>
  918. @if(isset($_GET["edit"]))
  919. <input type="file" name="banner_right_big">
  920. @if($home->banner_right_big != '')
  921. <input type="checkbox" name="delete_banner_right_big">Rimuovi immagine<br>
  922. <img src="/files/{{$home->banner_right_big}}" style="max-width:250px">
  923. @endif
  924. @else
  925. @if($home->banner_right_big != '')
  926. <img src="/files/{{$home->banner_right_big}}" style="max-width:250px">
  927. @endif
  928. @endif
  929. </td>
  930. <td>
  931. @if(isset($_GET["edit"]))
  932. <input type="text" name="banner_right_big_url" value="{{$home->banner_right_big_url}}" class="form-control">
  933. @else
  934. {{$home->banner_right_big_url}}
  935. @endif
  936. </td>
  937. </tr>
  938. <tr><td colspan="2"><hr size="1"></td></tr>
  939. <tr>
  940. <td>
  941. @if(isset($_GET["edit"]))
  942. <input type="file" name="banner_right_big_2">
  943. @if($home->banner_right_big_2 != '')
  944. <input type="checkbox" name="delete_banner_right_big_2">Rimuovi immagine<br>
  945. <img src="/files/{{$home->banner_right_big_2}}" style="max-width:250px">
  946. @endif
  947. @else
  948. @if($home->banner_right_big_2 != '')
  949. <img src="/files/{{$home->banner_right_big_2}}" style="max-width:250px">
  950. @endif
  951. @endif
  952. </td>
  953. <td>
  954. @if(isset($_GET["edit"]))
  955. <input type="text" name="banner_right_big_2_url" value="{{$home->banner_right_big_2_url}}" class="form-control">
  956. @else
  957. {{$home->banner_right_big_2_url}}
  958. @endif
  959. </td>
  960. </tr>
  961. <tr><td colspan="2"><hr size="1"></td></tr>
  962. <tr>
  963. <td>
  964. @if(isset($_GET["edit"]))
  965. <input type="file" name="banner_right_big_3">
  966. @if($home->banner_right_big_3 != '')
  967. <input type="checkbox" name="delete_banner_right_big_3">Rimuovi immagine<br>
  968. <img src="/files/{{$home->banner_right_big_3}}" style="max-width:250px">
  969. @endif
  970. @else
  971. @if($home->banner_right_big_3 != '')
  972. <img src="/files/{{$home->banner_right_big_3}}" style="max-width:250px">
  973. @endif
  974. @endif
  975. </td>
  976. <td>
  977. @if(isset($_GET["edit"]))
  978. <input type="text" name="banner_right_big_3_url" value="{{$home->banner_right_big_3_url}}" class="form-control">
  979. @else
  980. {{$home->banner_right_big_3_url}}
  981. @endif
  982. </td>
  983. </tr>
  984. <tr><td colspan="2"><hr size="1"></td></tr>
  985. <tr>
  986. <td>
  987. @if(isset($_GET["edit"]))
  988. <input type="file" name="banner_right_big_4">
  989. @if($home->banner_right_big_4 != '')
  990. <input type="checkbox" name="delete_banner_right_big_4">Rimuovi immagine<br>
  991. <img src="/files/{{$home->banner_right_big_4}}" style="max-width:250px">
  992. @endif
  993. @else
  994. @if($home->banner_right_big_4 != '')
  995. <img src="/files/{{$home->banner_right_big_4}}" style="max-width:250px">
  996. @endif
  997. @endif
  998. </td>
  999. <td>
  1000. @if(isset($_GET["edit"]))
  1001. <input type="text" name="banner_right_big_4_url" value="{{$home->banner_right_big_4_url}}" class="form-control">
  1002. @else
  1003. {{$home->banner_right_big_4_url}}
  1004. @endif
  1005. </td>
  1006. </tr>
  1007. <tr><td colspan="2"><hr size="1"></td></tr>
  1008. <tr>
  1009. <td>
  1010. @if(isset($_GET["edit"]))
  1011. <input type="file" name="banner_right_big_5">
  1012. @if($home->banner_right_big_5 != '')
  1013. <input type="checkbox" name="delete_banner_right_big_5">Rimuovi immagine<br>
  1014. <img src="/files/{{$home->banner_right_big_5}}" style="max-width:250px">
  1015. @endif
  1016. @else
  1017. @if($home->banner_right_big_5 != '')
  1018. <img src="/files/{{$home->banner_right_big_5}}" style="max-width:250px">
  1019. @endif
  1020. @endif
  1021. </td>
  1022. <td>
  1023. @if(isset($_GET["edit"]))
  1024. <input type="text" name="banner_right_big_5_url" value="{{$home->banner_right_big_5_url}}" class="form-control">
  1025. @else
  1026. {{$home->banner_right_big_5_url}}
  1027. @endif
  1028. </td>
  1029. </tr>
  1030. </table>
  1031. <td>
  1032. @if(isset($_GET["edit"]))
  1033. <input type="text" name="banner_right_big_google" value="{{$home->banner_right_big_google}}" class="form-control">
  1034. @else
  1035. {{$home->banner_right_big_google}}
  1036. @endif
  1037. </td>
  1038. </tr>
  1039. </table>
  1040. </div>
  1041. </div>
  1042. <div class="box-footer">
  1043. @if(isset($_GET["edit"]))
  1044. <button type="submit" class="btn btn-success">Salva</button>
  1045. @else
  1046. <a href="/admin/home_adv?edit=1" class="btn btn-info">Modifica</a>
  1047. @endif
  1048. <a href="{{ route('home_adv') }}" class="btn btn-info">Annulla</a>
  1049. </div>
  1050. </div>
  1051. </form>
  1052. </div>
  1053. </div>
  1054. @stop