@extends('layouts.main')
@section('title', 'Auktionshaus anlegen')
@section('headline', 'Auktionshaus anlegen')
@section('content')

    {{--<div class="page-title">
        <h3 class="breadcrumb-header">@yield('headline')</h3>
    </div>--}}
    <div id="main-wrapper">
        <div class="row">
            <div class="col-md-12">
                <div class="panel panel-white">

                    {!! Form::open(['action' => 'SourceTypes\SourceTypeController@store', 'class' => 'form-horizontal', 'method' => 'post', 'role' => 'form', 'files' => true]) !!}

                    <div class="panel-body">
                        <div class="row">
                            <div class="col-md-6">
                                <div class="form-group {{ $errors->formErrors->has('name') ? 'has-error' : '' }}">
                                    <label for="name" class="col-sm-3 control-label">Name:</label>
                                    <div class="col-sm-9">
                                        <input name="name" type="text" class="form-control" id="name" value="{{ old('name') }}">
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="form-group {{ $errors->formErrors->has('location') ? 'has-error' : '' }}">
                                    <label for="location" class="col-sm-3 control-label">Ort:</label>
                                    <div class="col-sm-9">
                                        <input name="location" type="text" class="form-control" id="location" value="{{ old('location') }}">
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="form-group {{ $errors->formErrors->has('url') ? 'has-error' : '' }}">
                                    <label for="url" class="col-sm-3 control-label">Domain:</label>
                                    <div class="col-sm-9">
                                        <input name="url" type="text" class="form-control" id="url" value="{{ old('url') }}">
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="form-group {{ $errors->formErrors->has('Unter_ID') ? 'has-error' : '' }}">
                                    <label for="Unter_ID" class="col-sm-3 control-label">Unter_ID:</label>
                                    <div class="col-sm-9">
                                        <input name="Unter_ID" type="text" class="form-control" id="Unter_ID" value="{{ old('Unter_ID') }}">
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="row" style="margin-top: 30px;">
                            <div class="col-md-6">
                                <a class="btn btn-default" type="button" href="{{ route('source-types') }}"><i class="fa fa-times" aria-hidden="true"></i>&nbsp; Abbrechen & zurück</a>
                            </div>
                            <div class="col-md-6">
                                <button class="btn btn-primary pull-right" type="submit"><i class="fa fa-floppy-o" aria-hidden="true"></i>&nbsp; Änderungen speichern</button>
                            </div>
                        </div>
                    </div>
                    {!! Form::close() !!}

                </div>
            </div>
        </div>
    </div>


@stop