@extends('layouts.layout-2')

@section('content')

    <h4 class="font-weight-bold py-3 mb-1">
        Vorlage duplizieren
    </h4>


    {!! Form::open(['url' => route('draft_load_new'), 'class' => 'form-horizontal', 'id'=>'lead-form-validation']) !!}


        <div class="card mb-2">
            <div class="card-body row">
                <div class="form-group col-sm-6">
                    <select class="selectpicker" data-style="btn-light" name="load_new" id="load_new" data-live-search="true" required>
                        @foreach($drafts as $d)
                            <option value="{{$d->id}}">{{$d->name}}</option>
                        @endforeach
                    </select>
                </div>
            </div>
        </div>

    <div class="text-left mt-3">
        <button type="submit" name="action" value="loadOld" class="btn btn-submit">{{ __('laden') }}</button>&nbsp;
        <a href="{{route('drafts')}}" class="btn btn-default">{{ __('back') }}</a>

    </div>
    {!! Form::close() !!}









@endsection