@extends('layouts.layout-2')

@section('content')

    @if ($errors->any())
        <div class="row">
            <div class="col-sm-12">
                <div class="alert alert-danger">
                    <ul>
                        @foreach ($errors->all() as $error)
                            <li>{{ $error }}</li>
                        @endforeach
                    </ul>
                </div>
            </div>
        </div>
    @endif

    <h4 class="font-weight-bold py-2 mb-2">
        {{ __('Edit Startseite') }}
    </h4>

    {!! Form::open(['url' => route('admin_sites_store', [$site]), 'class' => 'form-horizontal', 'id'=>'']) !!}

    <div class="text-left mt-0 mb-2">
        <button type="submit" class="btn btn-submit btn-primary">{{ __('save') }}</button>&nbsp;
    </div>

    @include('admin.site.form')

    <div class="text-left mt-0 mb-2">
        <button type="submit" class="btn btn-submit btn-primary">{{ __('save') }}</button>&nbsp;
    </div>

    {!! Form::close() !!}


    @include('admin.site.images')


@endsection
