
<div class="modal fade" id="myModal{{ $i }}" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel">{{ $product->sort }} {{ $product->fruit() }} <span style="text-transform: lowercase">{{ Lang::get('modal.settings') }}</span> </h4>
            </div>
            <div class="modal-body">
                <div role="tabpanel">

                    <!-- Nav tabs -->
                    <ul class="nav nav-tabs" role="tablist">
                        <li role="presentation" class="active"><a href="#settings{{ $i }}" aria-controls="settings{{ $i }}" role="tab" data-toggle="tab">{{ Lang::get('modal.settings') }}</a></li>
                        <li role="presentation"><a href="#create_auction{{ $i }}" aria-controls="create_auction{{ $i }}" role="tab" data-toggle="tab">{{ Lang::get('modal.create') }}</a></li>
                    </ul>

                    <!-- Tab panes -->
                    <div class="tab-content">

                        <div role="tabpanel" class="tab-pane active" id="settings{{ $i }}">
                            <div class="row settings_modal">
                                <div class="col-md-6">
                                    {!! Form::open(['url' => 'product/'.$product->id, 'method' => 'PUT']) !!}
                                    <div class="form-group">
                                        {!! Form::label('amount', Lang::get('modal.amount')) !!}
                                        <div class="input-group">
                                            {!! Form::text('amount', $product->amount, ['class' => 'form-control']) !!}
                                            <div class="input-group-addon">kg</div>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        {!! Form::label('price', Lang::get('modal.price')) !!}
                                        <div class="input-group">
                                            {!! Form::text('price', $product->price(), ['class' => 'form-control']) !!}
                                            <div class="input-group-addon">€/kg</div>
                                        </div>
                                    </div>
                                </div>

                                <div class="col-md-12">
                                    <div class="form-group">
                                        {!! Form::label('info', Lang::get('modal.info')) !!}
                                        {!! Form::textarea('info', $product->info, ['class' => 'form-control']) !!}
                                    </div>

                                    <div class="form-group">
                                        {!! Form::submit(Lang::get('modal.update'), ['class' => 'btn btn-blue form-control']) !!}
                                    </div>
                                </div>
                            </div>
                            {!! Form::close() !!}

                        </div>
                        <div role=tabpanel class="tab-pane" id="create_auction{{ $i }}">
                            {!! Form::open(['url' => 'product/'.$product->id.'/auction']) !!}
                            <div class="row settings_modal">
                                <div class="col-md-6">
                                     <!-- Amount Form Input -->
                                    <div class="form-group ">
                                        {!! Form::label('amount', Lang::get('modal.amount')) !!}
                                        <div class="input-group">
                                            {!! Form::text('amount', null, ['class' => 'form-control', 'placeholder' => Lang::get('modal.eamount')]) !!}
                                            <div class="input-group-addon">kg</div>
                                        </div>
                                    </div>
                                    <!-- Price Form Input -->
                                    <div class="form-group ">
                                        {!! Form::label('price', Lang::get('modal.startprice')) !!}
                                        <div class="input-group">
                                            {!! Form::text('startprice', null, ['class' => 'form-control', 'placeholder' => Lang::get('modal.eprice')]) !!}
                                            <div class="input-group-addon">€</div>
                                        </div>
                                    </div>
                                    <!-- Minraise Form Input -->
                                    <div class="form-group ">
                                        {!! Form::label('minraise', Lang::get('modal.minraise')) !!}
                                        <div class="input-group">
                                            {!! Form::text('minraise', 1, ['class' => 'form-control', 'placeholder' => Lang::get('modal.eminraise')]) !!}
                                            <div class="input-group-addon">€</div>
                                        </div>
                                    </div>
                                    <!-- Buynow Form Input -->

                                    <div class="form-group ">
                                        {!! Form::label('buynow', Lang::get('modal.buynow')) !!}
                                        <div class="input-group">
                                            {!! Form::text('buynow', null, ['class' => 'form-control', 'placeholder' => Lang::get('modal.ebuynow')]) !!}
                                            <div class="input-group-addon">€</div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-md-8">
                                    <div class="form-group">
                                        {!! Form::label('endtime', Lang::get('modal.endtime')) !!}
                                        <div class="datetimepicker"></div>
                                        {!! Form::hidden('enddate', null, ['class' => 'enddate']) !!}
                                    </div>

                                    <div class="form-group">
                                        {!! Form::submit(Lang::get('modal.create'), ['class' => 'btn btn-blue form-control']) !!}
                                    </div>
                                </div>
                            </div>
                            {!! Form::close() !!}
                        </div>
                    </div>

                </div>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">{{ Lang::get('modal.close') }}</button>
            </div>
        </div>
    </div>
</div>

