@extends('layouts.admin')

@section('title')

	Home

@stop

@section('content')

	<div class="row">
        <div class="col-lg-12">
            <form action="/admin/home_adv" method="POST" enctype="multipart/form-data">
                {{csrf_field()}}
            <div class="box box-primary">
                <div class="box-header with-border">
                    <h3 class="box-title"></h3>
                </div>

                <div class="box-body">

                    <div class="box-body table-responsive no-padding">
                        <table class="table table-striped table-hover">
                            <thead>
                                <tr>
                                    <th>Posizione</th>
                                    <th>Immagine</th>
                                    <th>URL</th>
                                    <th>Codice Google ADV</th>
                                </tr>
                            </thead>
                            <tr>
                                <td><img src="/images/layout_home_skin.jpg" style="max-width:200px"></td>
                                <td>
                                    @if(isset($_GET["edit"]))
                                        <input type="file" name="image">
                                        @if($home->image != '')
                                            <input type="checkbox" name="delete_image">Rimuovi immagine<br>
                                            <img src="/files/{{$home->image}}" style="max-width:250px">
                                        @endif
                                    @else
                                        @if($home->image != '')
                                            <img src="/files/{{$home->image}}" style="max-width:250px">
                                        @endif
                                    @endif
                                </td>
                                <td>
                                    @if(isset($_GET["edit"]))
                                        <input type="text" name="url" value="{{$home->url}}" class="form-control">
                                    @else
                                        {{$home->url}}
                                    @endif
                                </td>
                                <td></td>
                            </tr>
                            <tr>
                                <td><img src="/images/layout_home_skin.jpg" style="max-width:200px"></td>
                                <td>
                                    @if(isset($_GET["edit"]))
                                        <input type="file" name="image_2">
                                        @if($home->image_2 != '')
                                            <input type="checkbox" name="delete_image_2">Rimuovi immagine<br>
                                            <img src="/files/{{$home->image_2}}" style="max-width:250px">
                                        @endif
                                    @else
                                        @if($home->image_2 != '')
                                            <img src="/files/{{$home->image_2}}" style="max-width:250px">
                                        @endif
                                    @endif
                                </td>
                                <td>
                                    @if(isset($_GET["edit"]))
                                        <input type="text" name="url_2" value="{{$home->url_2}}" class="form-control">
                                    @else
                                        {{$home->url_2}}
                                    @endif
                                </td>
                                <td></td>
                            </tr>
                            <tr>
                                <td><img src="/images/layout_home_skin.jpg" style="max-width:200px"></td>
                                <td>
                                    @if(isset($_GET["edit"]))
                                        <input type="file" name="image_3">
                                        @if($home->image_3 != '')
                                            <input type="checkbox" name="delete_image_3">Rimuovi immagine<br>
                                            <img src="/files/{{$home->image_3}}" style="max-width:250px">
                                        @endif
                                    @else
                                        @if($home->image_3 != '')
                                            <img src="/files/{{$home->image_3}}" style="max-width:250px">
                                        @endif
                                    @endif
                                </td>
                                <td>
                                    @if(isset($_GET["edit"]))
                                        <input type="text" name="url_3" value="{{$home->url_3}}" class="form-control">
                                    @else
                                        {{$home->url_3}}
                                    @endif
                                </td>
                                <td></td>
                            </tr>
                            <tr>
                                <td><img src="/images/layout_home_skin.jpg" style="max-width:200px"></td>
                                <td>
                                    @if(isset($_GET["edit"]))
                                        <input type="file" name="image_4">
                                        @if($home->image_4 != '')
                                            <input type="checkbox" name="delete_image_4">Rimuovi immagine<br>
                                            <img src="/files/{{$home->image_4}}" style="max-width:250px">
                                        @endif
                                    @else
                                        @if($home->image_4 != '')
                                            <img src="/files/{{$home->image_4}}" style="max-width:250px">
                                        @endif
                                    @endif
                                </td>
                                <td>
                                    @if(isset($_GET["edit"]))
                                        <input type="text" name="url_4" value="{{$home->url_4}}" class="form-control">
                                    @else
                                        {{$home->url_4}}
                                    @endif
                                </td>
                                <td></td>
                            </tr>
                            <tr>
                                <td><img src="/images/layout_home_skin.jpg" style="max-width:200px"></td>
                                <td>
                                    @if(isset($_GET["edit"]))
                                        <input type="file" name="image_5">
                                        @if($home->image_5 != '')
                                            <input type="checkbox" name="delete_image_5">Rimuovi immagine<br>
                                            <img src="/files/{{$home->image_5}}" style="max-width:250px">
                                        @endif
                                    @else
                                        @if($home->image_5 != '')
                                            <img src="/files/{{$home->image_5}}" style="max-width:250px">
                                        @endif
                                    @endif
                                </td>
                                <td>
                                    @if(isset($_GET["edit"]))
                                        <input type="text" name="url_5" value="{{$home->url_5}}" class="form-control">
                                    @else
                                        {{$home->url_5}}
                                    @endif
                                </td>
                                <td></td>
                            </tr>
                            <tr>
                                <td><b>Vicino al logo</b><br><img src="/images/layout_home_top.jpg" style="max-width:200px"></td>
                                <td colspan="2">
                                    <table width="100%">
                                        <tr>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="file" name="banner_top">
                                                    @if($home->banner_top != '')
                                                        <input type="checkbox" name="delete_banner_top">Rimuovi immagine<br>
                                                        <img src="/files/{{$home->banner_top}}" style="max-width:250px">
                                                    @endif
                                                @else
                                                    @if($home->banner_top != '')
                                                        <img src="/files/{{$home->banner_top}}" style="max-width:250px">
                                                    @endif
                                                @endif
                                            </td>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="text" name="banner_top_url" value="{{$home->banner_top_url}}" class="form-control">
                                                @else
                                                    {{$home->banner_top_url}}
                                                @endif
                                            </td>
                                        </tr>
                                        <tr><td colspan="2"><hr size="1"></td></tr>
                                        <tr>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="file" name="banner_top_2">
                                                    @if($home->banner_top_2 != '')
                                                        <input type="checkbox" name="delete_banner_top_2">Rimuovi immagine<br>
                                                        <img src="/files/{{$home->banner_top_2}}" style="max-width:250px">
                                                    @endif
                                                @else
                                                    @if($home->banner_top_2 != '')
                                                        <img src="/files/{{$home->banner_top_2}}" style="max-width:250px">
                                                    @endif
                                                @endif
                                            </td>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="text" name="banner_top_2_url" value="{{$home->banner_top_2_url}}" class="form-control">
                                                @else
                                                    {{$home->banner_top_2_url}}
                                                @endif
                                            </td>
                                        </tr>
                                        <tr><td colspan="2"><hr size="1"></td></tr>
                                        <tr>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="file" name="banner_top_3">
                                                    @if($home->banner_top_3 != '')
                                                        <input type="checkbox" name="delete_banner_top_3">Rimuovi immagine<br>
                                                        <img src="/files/{{$home->banner_top_3}}" style="max-width:250px">
                                                    @endif
                                                @else
                                                    @if($home->banner_top_3 != '')
                                                        <img src="/files/{{$home->banner_top_3}}" style="max-width:250px">
                                                    @endif
                                                @endif
                                            </td>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="text" name="banner_top_3_url" value="{{$home->banner_top_3_url}}" class="form-control">
                                                @else
                                                    {{$home->banner_top_3_url}}
                                                @endif
                                            </td>
                                        </tr>
                                        <tr><td colspan="2"><hr size="1"></td></tr>
                                        <tr>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="file" name="banner_top_4">
                                                    @if($home->banner_top_4 != '')
                                                        <input type="checkbox" name="delete_banner_top_4">Rimuovi immagine<br>
                                                        <img src="/files/{{$home->banner_top_4}}" style="max-width:250px">
                                                    @endif
                                                @else
                                                    @if($home->banner_top_4 != '')
                                                        <img src="/files/{{$home->banner_top_4}}" style="max-width:250px">
                                                    @endif
                                                @endif
                                            </td>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="text" name="banner_top_4_url" value="{{$home->banner_top_4_url}}" class="form-control">
                                                @else
                                                    {{$home->banner_top_4_url}}
                                                @endif
                                            </td>
                                        </tr>
                                        <tr><td colspan="2"><hr size="1"></td></tr>
                                        <tr>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="file" name="banner_top_5">
                                                    @if($home->banner_top_5 != '')
                                                        <input type="checkbox" name="delete_banner_top_5">Rimuovi immagine<br>
                                                        <img src="/files/{{$home->banner_top_5}}" style="max-width:250px">
                                                    @endif
                                                @else
                                                    @if($home->banner_top_5 != '')
                                                        <img src="/files/{{$home->banner_top_5}}" style="max-width:250px">
                                                    @endif
                                                @endif
                                            </td>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="text" name="banner_top_5_url" value="{{$home->banner_top_5_url}}" class="form-control">
                                                @else
                                                    {{$home->banner_top_5_url}}
                                                @endif
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                                <td>
                                    @if(isset($_GET["edit"]))
                                        <input type="text" name="banner_top_google" value="{{$home->banner_top_google}}" class="form-control">
                                    @else
                                        {{$home->banner_top_google}}
                                    @endif
                                </td>
                            </tr>
                            <tr>
                                <td><b>Sotto breaking news</b><br><img src="/images/layout_home_underb.jpg" style="max-width:200px"></td>
                                <td colspan="2">
                                    <table width="100%">
                                        <tr>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="file" name="banner_underb">
                                                    @if($home->banner_underb != '')
                                                        <input type="checkbox" name="delete_banner_underb">Rimuovi immagine<br>
                                                        <img src="/files/{{$home->banner_underb}}" style="max-width:250px">
                                                    @endif
                                                @else
                                                    @if($home->banner_underb != '')
                                                        <img src="/files/{{$home->banner_underb}}" style="max-width:250px">
                                                    @endif
                                                @endif
                                            </td>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="text" name="banner_underb_url" value="{{$home->banner_underb_url}}" class="form-control">
                                                @else
                                                    {{$home->banner_underb_url}}
                                                @endif
                                            </td>
                                        </tr>
                                        <tr><td colspan="2"><hr size="1"></td></tr>
                                        <tr>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="file" name="banner_underb_2">
                                                    @if($home->banner_underb_2 != '')
                                                        <input type="checkbox" name="delete_banner_underb_2">Rimuovi immagine<br>
                                                        <img src="/files/{{$home->banner_underb_2}}" style="max-width:250px">
                                                    @endif
                                                @else
                                                    @if($home->banner_underb_2 != '')
                                                        <img src="/files/{{$home->banner_underb_2}}" style="max-width:250px">
                                                    @endif
                                                @endif
                                            </td>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="text" name="banner_underb_2_url" value="{{$home->banner_underb_2_url}}" class="form-control">
                                                @else
                                                    {{$home->banner_underb_2_url}}
                                                @endif
                                            </td>
                                        </tr>
                                        <tr><td colspan="2"><hr size="1"></td></tr>
                                        <tr>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="file" name="banner_underb_3">
                                                    @if($home->banner_underb_3 != '')
                                                        <input type="checkbox" name="delete_banner_underb_3">Rimuovi immagine<br>
                                                        <img src="/files/{{$home->banner_underb_3}}" style="max-width:250px">
                                                    @endif
                                                @else
                                                    @if($home->banner_underb_3 != '')
                                                        <img src="/files/{{$home->banner_underb_3}}" style="max-width:250px">
                                                    @endif
                                                @endif
                                            </td>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="text" name="banner_underb_3_url" value="{{$home->banner_underb_3_url}}" class="form-control">
                                                @else
                                                    {{$home->banner_underb_3_url}}
                                                @endif
                                            </td>
                                        </tr>
                                        <tr><td colspan="2"><hr size="1"></td></tr>
                                        <tr>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="file" name="banner_underb_4">
                                                    @if($home->banner_underb_4 != '')
                                                        <input type="checkbox" name="delete_banner_underb_4">Rimuovi immagine<br>
                                                        <img src="/files/{{$home->banner_underb_4}}" style="max-width:250px">
                                                    @endif
                                                @else
                                                    @if($home->banner_underb_4 != '')
                                                        <img src="/files/{{$home->banner_underb_4}}" style="max-width:250px">
                                                    @endif
                                                @endif
                                            </td>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="text" name="banner_underb_4_url" value="{{$home->banner_underb_4_url}}" class="form-control">
                                                @else
                                                    {{$home->banner_underb_4_url}}
                                                @endif
                                            </td>
                                        </tr>
                                        <tr><td colspan="2"><hr size="1"></td></tr>
                                        <tr>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="file" name="banner_underb_5">
                                                    @if($home->banner_underb_5 != '')
                                                        <input type="checkbox" name="delete_banner_underb_5">Rimuovi immagine<br>
                                                        <img src="/files/{{$home->banner_underb_5}}" style="max-width:250px">
                                                    @endif
                                                @else
                                                    @if($home->banner_underb_5 != '')
                                                        <img src="/files/{{$home->banner_underb_5}}" style="max-width:250px">
                                                    @endif
                                                @endif
                                            </td>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="text" name="banner_underb_5_url" value="{{$home->banner_underb_5_url}}" class="form-control">
                                                @else
                                                    {{$home->banner_underb_5_url}}
                                                @endif
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                                <td>
                                    @if(isset($_GET["edit"]))
                                        <input type="text" name="banner_underb_google" value="{{$home->banner_underb_google}}" class="form-control">
                                    @else
                                        {{$home->banner_underb_google}}
                                    @endif
                                </td>
                            </tr>
                            <tr>
                                <td><b>Sotto primo piano</b><br><img src="/images/layout_home_medio.jpg" style="max-width:200px"></td>
                                <td colspan="2">
                                    <table width="100%">
                                        <tr>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="file" name="banner_middle">
                                                    @if($home->banner_middle != '')
                                                        <input type="checkbox" name="delete_banner_middle">Rimuovi immagine<br>
                                                        <img src="/files/{{$home->banner_middle}}" style="max-width:250px">
                                                    @endif
                                                @else
                                                    @if($home->banner_middle != '')
                                                        <img src="/files/{{$home->banner_middle}}" style="max-width:250px">
                                                    @endif
                                                @endif
                                            </td>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="text" name="banner_middle_url" value="{{$home->banner_middle_url}}" class="form-control">
                                                @else
                                                    {{$home->banner_middle_url}}
                                                @endif
                                            </td>
                                        </tr>
                                        <tr><td colspan="2"><hr size="1"></td></tr>
                                        <tr>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="file" name="banner_middle_2">
                                                    @if($home->banner_middle_2 != '')
                                                        <input type="checkbox" name="delete_banner_middle_2">Rimuovi immagine<br>
                                                        <img src="/files/{{$home->banner_middle_2}}" style="max-width:250px">
                                                    @endif
                                                @else
                                                    @if($home->banner_middle_2 != '')
                                                        <img src="/files/{{$home->banner_middle_2}}" style="max-width:250px">
                                                    @endif
                                                @endif
                                            </td>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="text" name="banner_middle_2_url" value="{{$home->banner_middle_2_url}}" class="form-control">
                                                @else
                                                    {{$home->banner_middle_2_url}}
                                                @endif
                                            </td>
                                        </tr>
                                        <tr><td colspan="2"><hr size="1"></td></tr>
                                        <tr>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="file" name="banner_middle_3">
                                                    @if($home->banner_middle_3 != '')
                                                        <input type="checkbox" name="delete_banner_middle_3">Rimuovi immagine<br>
                                                        <img src="/files/{{$home->banner_middle_3}}" style="max-width:250px">
                                                    @endif
                                                @else
                                                    @if($home->banner_middle_3 != '')
                                                        <img src="/files/{{$home->banner_middle_3}}" style="max-width:250px">
                                                    @endif
                                                @endif
                                            </td>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="text" name="banner_middle_3_url" value="{{$home->banner_middle_3_url}}" class="form-control">
                                                @else
                                                    {{$home->banner_middle_3_url}}
                                                @endif
                                            </td>
                                        </tr>
                                        <tr><td colspan="2"><hr size="1"></td></tr>
                                        <tr>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="file" name="banner_middle_4">
                                                    @if($home->banner_middle_4 != '')
                                                        <input type="checkbox" name="delete_banner_middle_4">Rimuovi immagine<br>
                                                        <img src="/files/{{$home->banner_middle_4}}" style="max-width:250px">
                                                    @endif
                                                @else
                                                    @if($home->banner_middle_4 != '')
                                                        <img src="/files/{{$home->banner_middle_4}}" style="max-width:250px">
                                                    @endif
                                                @endif
                                            </td>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="text" name="banner_middle_4_url" value="{{$home->banner_middle_4_url}}" class="form-control">
                                                @else
                                                    {{$home->banner_middle_4_url}}
                                                @endif
                                            </td>
                                        </tr>
                                        <tr><td colspan="2"><hr size="1"></td></tr>
                                        <tr>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="file" name="banner_middle_5">
                                                    @if($home->banner_middle_5 != '')
                                                        <input type="checkbox" name="delete_banner_middle_5">Rimuovi immagine<br>
                                                        <img src="/files/{{$home->banner_middle_5}}" style="max-width:250px">
                                                    @endif
                                                @else
                                                    @if($home->banner_middle_5 != '')
                                                        <img src="/files/{{$home->banner_middle_5}}" style="max-width:250px">
                                                    @endif
                                                @endif
                                            </td>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="text" name="banner_middle_5_url" value="{{$home->banner_middle_5_url}}" class="form-control">
                                                @else
                                                    {{$home->banner_middle_5_url}}
                                                @endif
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                                <td>
                                    @if(isset($_GET["edit"]))
                                        <input type="text" name="banner_middle_google" value="{{$home->banner_middle_google}}" class="form-control">
                                    @else
                                        {{$home->banner_middle_google}}
                                    @endif
                                </td>
                            </tr>
                            @if(false)
                                <tr>
                                    <td><b>Sotto video</b><br><img src="/images/layout_home_primopiano.jpg" style="max-width:200px"></td>
                                    <td colspan="2">
                                        <table width="100%">
                                            <tr>
                                                <td>
                                                    @if(isset($_GET["edit"]))
                                                        <input type="file" name="banner_first">
                                                        @if($home->banner_first != '')
                                                            <input type="checkbox" name="delete_banner_first">Rimuovi immagine<br>
                                                            <img src="/files/{{$home->banner_first}}" style="max-width:250px">
                                                        @endif
                                                    @else
                                                        @if($home->banner_first != '')
                                                            <img src="/files/{{$home->banner_first}}" style="max-width:250px">
                                                        @endif
                                                    @endif
                                                </td>
                                                <td>
                                                    @if(isset($_GET["edit"]))
                                                        <input type="text" name="banner_first_url" value="{{$home->banner_first_url}}" class="form-control">
                                                    @else
                                                        {{$home->banner_first_url}}
                                                    @endif
                                                </td>
                                            </tr>
                                            <tr><td colspan="2"><hr size="1"></td></tr>
                                            <tr>
                                                <td>
                                                    @if(isset($_GET["edit"]))
                                                        <input type="file" name="banner_first_2">
                                                        @if($home->banner_first_2 != '')
                                                            <input type="checkbox" name="delete_banner_first_2">Rimuovi immagine<br>
                                                            <img src="/files/{{$home->banner_first_2}}" style="max-width:250px">
                                                        @endif
                                                    @else
                                                        @if($home->banner_first_2 != '')
                                                            <img src="/files/{{$home->banner_first_2}}" style="max-width:250px">
                                                        @endif
                                                    @endif
                                                </td>
                                                <td>
                                                    @if(isset($_GET["edit"]))
                                                        <input type="text" name="banner_first_2_url" value="{{$home->banner_first_2_url}}" class="form-control">
                                                    @else
                                                        {{$home->banner_first_2_url}}
                                                    @endif
                                                </td>
                                            </tr>
                                            <tr><td colspan="2"><hr size="1"></td></tr>
                                            <tr>
                                                <td>
                                                    @if(isset($_GET["edit"]))
                                                        <input type="file" name="banner_first_3">
                                                        @if($home->banner_first_3 != '')
                                                            <input type="checkbox" name="delete_banner_first_3">Rimuovi immagine<br>
                                                            <img src="/files/{{$home->banner_first_3}}" style="max-width:250px">
                                                        @endif
                                                    @else
                                                        @if($home->banner_first_3 != '')
                                                            <img src="/files/{{$home->banner_first_3}}" style="max-width:250px">
                                                        @endif
                                                    @endif
                                                </td>
                                                <td>
                                                    @if(isset($_GET["edit"]))
                                                        <input type="text" name="banner_first_3_url" value="{{$home->banner_first_3_url}}" class="form-control">
                                                    @else
                                                        {{$home->banner_first_3_url}}
                                                    @endif
                                                </td>
                                            </tr>
                                            <tr><td colspan="2"><hr size="1"></td></tr>
                                            <tr>
                                                <td>
                                                    @if(isset($_GET["edit"]))
                                                        <input type="file" name="banner_first_4">
                                                        @if($home->banner_first_4 != '')
                                                            <input type="checkbox" name="delete_banner_first_4">Rimuovi immagine<br>
                                                            <img src="/files/{{$home->banner_first_4}}" style="max-width:250px">
                                                        @endif
                                                    @else
                                                        @if($home->banner_first_4 != '')
                                                            <img src="/files/{{$home->banner_first_4}}" style="max-width:250px">
                                                        @endif
                                                    @endif
                                                </td>
                                                <td>
                                                    @if(isset($_GET["edit"]))
                                                        <input type="text" name="banner_first_4_url" value="{{$home->banner_first_4_url}}" class="form-control">
                                                    @else
                                                        {{$home->banner_first_4_url}}
                                                    @endif
                                                </td>
                                            </tr>
                                            <tr><td colspan="2"><hr size="1"></td></tr>
                                            <tr>
                                                <td>
                                                    @if(isset($_GET["edit"]))
                                                        <input type="file" name="banner_first_5">
                                                        @if($home->banner_first_5 != '')
                                                            <input type="checkbox" name="delete_banner_first_5">Rimuovi immagine<br>
                                                            <img src="/files/{{$home->banner_first_5}}" style="max-width:250px">
                                                        @endif
                                                    @else
                                                        @if($home->banner_first_5 != '')
                                                            <img src="/files/{{$home->banner_first_5}}" style="max-width:250px">
                                                        @endif
                                                    @endif
                                                </td>
                                                <td>
                                                    @if(isset($_GET["edit"]))
                                                        <input type="text" name="banner_first_5_url" value="{{$home->banner_first_5_url}}" class="form-control">
                                                    @else
                                                        {{$home->banner_first_5_url}}
                                                    @endif
                                                </td>
                                            </tr>
                                        </table>
                                    <td>
                                        @if(isset($_GET["edit"]))
                                            <input type="text" name="banner_first_google" value="{{$home->banner_first_google}}" class="form-control">
                                        @else
                                            {{$home->banner_first_google}}
                                        @endif
                                    </td>
                                </tr>
                            @endif
                            <tr>
                                <td><b>Destra sopra 300x250-1</b><br><img src="/images/layout_dx_sopra.jpg" style="max-width:200px"></td>
                                <td colspan="2">
                                    <table width="100%">
                                        <tr>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="file" name="banner_right_top">
                                                    @if($home->banner_right_top != '')
                                                        <input type="checkbox" name="delete_banner_right_top">Rimuovi immagine<br>
                                                        <img src="/files/{{$home->banner_right_top}}" style="max-width:250px">
                                                    @endif
                                                @else
                                                    @if($home->banner_right_top != '')
                                                        <img src="/files/{{$home->banner_right_top}}" style="max-width:250px">
                                                    @endif
                                                @endif
                                            </td>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="text" name="banner_right_top_url" value="{{$home->banner_right_top_url}}" class="form-control">
                                                @else
                                                    {{$home->banner_right_top_url}}
                                                @endif
                                            </td>
                                        </tr>
                                        <tr><td colspan="2"><hr size="1"></td></tr>
                                        <tr>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="file" name="banner_right_top_2">
                                                    @if($home->banner_right_top_2 != '')
                                                        <input type="checkbox" name="delete_banner_right_top_2">Rimuovi immagine<br>
                                                        <img src="/files/{{$home->banner_right_top_2}}" style="max-width:250px">
                                                    @endif
                                                @else
                                                    @if($home->banner_right_top_2 != '')
                                                        <img src="/files/{{$home->banner_right_top_2}}" style="max-width:250px">
                                                    @endif
                                                @endif
                                            </td>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="text" name="banner_right_top_2_url" value="{{$home->banner_right_top_2_url}}" class="form-control">
                                                @else
                                                    {{$home->banner_right_top_2_url}}
                                                @endif
                                            </td>
                                        </tr>
                                        <tr><td colspan="2"><hr size="1"></td></tr>
                                        <tr>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="file" name="banner_right_top_3">
                                                    @if($home->banner_right_top_3 != '')
                                                        <input type="checkbox" name="delete_banner_right_top_3">Rimuovi immagine<br>
                                                        <img src="/files/{{$home->banner_right_top_3}}" style="max-width:250px">
                                                    @endif
                                                @else
                                                    @if($home->banner_right_top_3 != '')
                                                        <img src="/files/{{$home->banner_right_top_3}}" style="max-width:250px">
                                                    @endif
                                                @endif
                                            </td>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="text" name="banner_right_top_3_url" value="{{$home->banner_right_top_3_url}}" class="form-control">
                                                @else
                                                    {{$home->banner_right_top_3_url}}
                                                @endif
                                            </td>
                                        </tr>
                                        <tr><td colspan="2"><hr size="1"></td></tr>
                                        <tr>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="file" name="banner_right_top_4">
                                                    @if($home->banner_right_top_4 != '')
                                                        <input type="checkbox" name="delete_banner_right_top_4">Rimuovi immagine<br>
                                                        <img src="/files/{{$home->banner_right_top_4}}" style="max-width:250px">
                                                    @endif
                                                @else
                                                    @if($home->banner_right_top_4 != '')
                                                        <img src="/files/{{$home->banner_right_top_4}}" style="max-width:250px">
                                                    @endif
                                                @endif
                                            </td>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="text" name="banner_right_top_4_url" value="{{$home->banner_right_top_4_url}}" class="form-control">
                                                @else
                                                    {{$home->banner_right_top_4_url}}
                                                @endif
                                            </td>
                                        </tr>
                                        <tr><td colspan="2"><hr size="1"></td></tr>
                                        <tr>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="file" name="banner_right_top_5">
                                                    @if($home->banner_right_top_5 != '')
                                                        <input type="checkbox" name="delete_banner_right_top_5">Rimuovi immagine<br>
                                                        <img src="/files/{{$home->banner_right_top_5}}" style="max-width:250px">
                                                    @endif
                                                @else
                                                    @if($home->banner_right_top_5 != '')
                                                        <img src="/files/{{$home->banner_right_top_5}}" style="max-width:250px">
                                                    @endif
                                                @endif
                                            </td>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="text" name="banner_right_top_5_url" value="{{$home->banner_right_top_5_url}}" class="form-control">
                                                @else
                                                    {{$home->banner_right_top_5_url}}
                                                @endif
                                            </td>
                                        </tr>
                                    </table>
                                <td>
                                    @if(isset($_GET["edit"]))
                                        <input type="text" name="banner_right_top_google" value="{{$home->banner_right_top_google}}" class="form-control">
                                    @else
                                        {{$home->banner_right_top_google}}
                                    @endif
                                </td>
                            </tr>
                            <tr>
                                <td><b>Destra sopra 300x250-2</b><br><img src="/images/layout_dx_sotto.jpg" style="max-width:200px"></td>
                                <td colspan="2">
                                    <table width="100%">
                                        <tr>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="file" name="banner_right_bottom">
                                                    @if($home->banner_right_bottom != '')
                                                        <input type="checkbox" name="delete_banner_right_bottom">Rimuovi immagine<br>
                                                        <img src="/files/{{$home->banner_right_bottom}}" style="max-width:250px">
                                                    @endif
                                                @else
                                                    @if($home->banner_right_bottom != '')
                                                        <img src="/files/{{$home->banner_right_bottom}}" style="max-width:250px">
                                                    @endif
                                                @endif
                                            </td>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="text" name="banner_right_bottom_url" value="{{$home->banner_right_bottom_url}}" class="form-control">
                                                @else
                                                    {{$home->banner_right_bottom_url}}
                                                @endif
                                            </td>
                                        </tr>
                                        <tr><td colspan="2"><hr size="1"></td></tr>
                                        <tr>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="file" name="banner_right_bottom_2">
                                                    @if($home->banner_right_bottom_2 != '')
                                                        <input type="checkbox" name="delete_banner_right_bottom_2">Rimuovi immagine<br>
                                                        <img src="/files/{{$home->banner_right_bottom_2}}" style="max-width:250px">
                                                    @endif
                                                @else
                                                    @if($home->banner_right_bottom_2 != '')
                                                        <img src="/files/{{$home->banner_right_bottom_2}}" style="max-width:250px">
                                                    @endif
                                                @endif
                                            </td>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="text" name="banner_right_bottom_2_url" value="{{$home->banner_right_bottom_2_url}}" class="form-control">
                                                @else
                                                    {{$home->banner_right_bottom_2_url}}
                                                @endif
                                            </td>
                                        </tr>
                                        <tr><td colspan="2"><hr size="1"></td></tr>
                                        <tr>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="file" name="banner_right_bottom_3">
                                                    @if($home->banner_right_bottom_3 != '')
                                                        <input type="checkbox" name="delete_banner_right_bottom_3">Rimuovi immagine<br>
                                                        <img src="/files/{{$home->banner_right_bottom_3}}" style="max-width:250px">
                                                    @endif
                                                @else
                                                    @if($home->banner_right_bottom_3 != '')
                                                        <img src="/files/{{$home->banner_right_bottom_3}}" style="max-width:250px">
                                                    @endif
                                                @endif
                                            </td>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="text" name="banner_right_bottom_3_url" value="{{$home->banner_right_bottom_3_url}}" class="form-control">
                                                @else
                                                    {{$home->banner_right_bottom_3_url}}
                                                @endif
                                            </td>
                                        </tr>
                                        <tr><td colspan="2"><hr size="1"></td></tr>
                                        <tr>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="file" name="banner_right_bottom_4">
                                                    @if($home->banner_right_bottom_4 != '')
                                                        <input type="checkbox" name="delete_banner_right_bottom_4">Rimuovi immagine<br>
                                                        <img src="/files/{{$home->banner_right_bottom_4}}" style="max-width:250px">
                                                    @endif
                                                @else
                                                    @if($home->banner_right_bottom_4 != '')
                                                        <img src="/files/{{$home->banner_right_bottom_4}}" style="max-width:250px">
                                                    @endif
                                                @endif
                                            </td>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="text" name="banner_right_bottom_4_url" value="{{$home->banner_right_bottom_4_url}}" class="form-control">
                                                @else
                                                    {{$home->banner_right_bottom_4_url}}
                                                @endif
                                            </td>
                                        </tr>
                                        <tr><td colspan="2"><hr size="1"></td></tr>
                                        <tr>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="file" name="banner_right_bottom_5">
                                                    @if($home->banner_right_bottom_5 != '')
                                                        <input type="checkbox" name="delete_banner_right_bottom_5">Rimuovi immagine<br>
                                                        <img src="/files/{{$home->banner_right_bottom_5}}" style="max-width:250px">
                                                    @endif
                                                @else
                                                    @if($home->banner_right_bottom_5 != '')
                                                        <img src="/files/{{$home->banner_right_bottom_5}}" style="max-width:250px">
                                                    @endif
                                                @endif
                                            </td>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="text" name="banner_right_bottom_5_url" value="{{$home->banner_right_bottom_5_url}}" class="form-control">
                                                @else
                                                    {{$home->banner_right_bottom_5_url}}
                                                @endif
                                            </td>
                                        </tr>
                                    </table>
                                <td>
                                    @if(isset($_GET["edit"]))
                                        <input type="text" name="banner_right_bottom_google" value="{{$home->banner_right_bottom_google}}" class="form-control">
                                    @else
                                        {{$home->banner_right_bottom_google}}
                                    @endif
                                </td>
                            </tr>
                            <tr>
                                <td><b>Destra sopra 300x600</b><br><img src="/images/layout_dx_grande.jpg" style="max-width:200px"></td>
                                <td colspan="2">
                                    <table width="100%">
                                        <tr>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="file" name="banner_right_big">
                                                    @if($home->banner_right_big != '')
                                                        <input type="checkbox" name="delete_banner_right_big">Rimuovi immagine<br>
                                                        <img src="/files/{{$home->banner_right_big}}" style="max-width:250px">
                                                    @endif
                                                @else
                                                    @if($home->banner_right_big != '')
                                                        <img src="/files/{{$home->banner_right_big}}" style="max-width:250px">
                                                    @endif
                                                @endif
                                            </td>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="text" name="banner_right_big_url" value="{{$home->banner_right_big_url}}" class="form-control">
                                                @else
                                                    {{$home->banner_right_big_url}}
                                                @endif
                                            </td>
                                        </tr>
                                        <tr><td colspan="2"><hr size="1"></td></tr>
                                        <tr>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="file" name="banner_right_big_2">
                                                    @if($home->banner_right_big_2 != '')
                                                        <input type="checkbox" name="delete_banner_right_big_2">Rimuovi immagine<br>
                                                        <img src="/files/{{$home->banner_right_big_2}}" style="max-width:250px">
                                                    @endif
                                                @else
                                                    @if($home->banner_right_big_2 != '')
                                                        <img src="/files/{{$home->banner_right_big_2}}" style="max-width:250px">
                                                    @endif
                                                @endif
                                            </td>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="text" name="banner_right_big_2_url" value="{{$home->banner_right_big_2_url}}" class="form-control">
                                                @else
                                                    {{$home->banner_right_big_2_url}}
                                                @endif
                                            </td>
                                        </tr>
                                        <tr><td colspan="2"><hr size="1"></td></tr>
                                        <tr>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="file" name="banner_right_big_3">
                                                    @if($home->banner_right_big_3 != '')
                                                        <input type="checkbox" name="delete_banner_right_big_3">Rimuovi immagine<br>
                                                        <img src="/files/{{$home->banner_right_big_3}}" style="max-width:250px">
                                                    @endif
                                                @else
                                                    @if($home->banner_right_big_3 != '')
                                                        <img src="/files/{{$home->banner_right_big_3}}" style="max-width:250px">
                                                    @endif
                                                @endif
                                            </td>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="text" name="banner_right_big_3_url" value="{{$home->banner_right_big_3_url}}" class="form-control">
                                                @else
                                                    {{$home->banner_right_big_3_url}}
                                                @endif
                                            </td>
                                        </tr>
                                        <tr><td colspan="2"><hr size="1"></td></tr>
                                        <tr>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="file" name="banner_right_big_4">
                                                    @if($home->banner_right_big_4 != '')
                                                        <input type="checkbox" name="delete_banner_right_big_4">Rimuovi immagine<br>
                                                        <img src="/files/{{$home->banner_right_big_4}}" style="max-width:250px">
                                                    @endif
                                                @else
                                                    @if($home->banner_right_big_4 != '')
                                                        <img src="/files/{{$home->banner_right_big_4}}" style="max-width:250px">
                                                    @endif
                                                @endif
                                            </td>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="text" name="banner_right_big_4_url" value="{{$home->banner_right_big_4_url}}" class="form-control">
                                                @else
                                                    {{$home->banner_right_big_4_url}}
                                                @endif
                                            </td>
                                        </tr>
                                        <tr><td colspan="2"><hr size="1"></td></tr>
                                        <tr>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="file" name="banner_right_big_5">
                                                    @if($home->banner_right_big_5 != '')
                                                        <input type="checkbox" name="delete_banner_right_big_5">Rimuovi immagine<br>
                                                        <img src="/files/{{$home->banner_right_big_5}}" style="max-width:250px">
                                                    @endif
                                                @else
                                                    @if($home->banner_right_big_5 != '')
                                                        <img src="/files/{{$home->banner_right_big_5}}" style="max-width:250px">
                                                    @endif
                                                @endif
                                            </td>
                                            <td>
                                                @if(isset($_GET["edit"]))
                                                    <input type="text" name="banner_right_big_5_url" value="{{$home->banner_right_big_5_url}}" class="form-control">
                                                @else
                                                    {{$home->banner_right_big_5_url}}
                                                @endif
                                            </td>
                                        </tr>
                                    </table>
                                <td>
                                    @if(isset($_GET["edit"]))
                                        <input type="text" name="banner_right_big_google" value="{{$home->banner_right_big_google}}" class="form-control">
                                    @else
                                        {{$home->banner_right_big_google}}
                                    @endif
                                </td>
                            </tr>

                        </table>
                    </div>

                </div>

                <div class="box-footer">
                    @if(isset($_GET["edit"]))
                        {!! Form::submit('Salva', ['class'=>'btn btn-success']) !!}
                    @else
                        <a href="/admin/home_adv?edit=1" class="btn btn-info">Modifica</a>
                    @endif
                    {!! link_to_route('home_adv', 'Annulla', null, array('class' => 'btn btn-info')) !!}
                </div>
            </div>
            </form>

        </div>
    </div>

@stop
