<div class="card mb-2">
    <h6 class="card-header bg-primary text-white py-2" data-toggle="collapse" data-target="#collapseBookingPrice" aria-expanded="false" aria-controls="collapseBookingPrice">
        <strong style="line-height: 1.6em">Preis</strong>
    </h6>
    <div class="collapse" id="collapseBookingPrice">
        <div class="card-body row">

            <div class="col-sm-4">
                <div class="form-group ">
                    <label class="form-label" for="price">{{ __('Gesamtpreis Organisation') }}</label>
                    <div class="input-group">
                        <div class="input-group-prepend">
                            <span class="input-group-text">€</span>
                        </div>
                        {{ Form::text('price', $booking->price,  array('placeholder'=>__('Gesamtpreis'), 'class'=>'form-control', 'id'=>'price', 'readonly')) }}
                    </div>
                </div>

                <div class="form-group ">
                    <label class="form-label" for="service_total">{{ __('Gesamtpreis Vermittlung') }}</label>
                    <div class="input-group">
                        <div class="input-group-prepend">
                            <span class="input-group-text">€</span>
                        </div>
                        {{ Form::text('service_total', $booking->getServiceTotal(),  array('placeholder'=>__('Gesamtpreis Vermittlung'), 'class'=>'form-control', 'id'=>'service_total', 'readonly')) }}
                    </div>
                </div>
                @if($booking->isCanceled())
                    <div class="form-group ">
                        <label class="form-label" for="price_canceled">{{ __('Storno Betrag') }} <span class="text-muted">{{ __('(Forderung)') }}</span></label>
                        <div class="input-group">
                            <div class="input-group-prepend">
                                <span class="input-group-text">€</span>
                            </div>
                            {{ Form::text('price_canceled', $booking->price_canceled,  array('placeholder'=>__('Storno Betrag'), 'class'=>'form-control', 'id'=>'price_canceled', 'readonly')) }}
                        </div>
                    </div>
                    <div class="form-group ">
                        <label class="form-label" for="price_balance">{{ __('Restbetrag') }} <span class="text-muted">{{ __('(nicht zu zahlen)') }}</span></label>
                        <div class="input-group">
                            <div class="input-group-prepend">
                                <span class="input-group-text">€</span>
                            </div>
                            {{ Form::text('price_balance', $booking->price_balance,  array('placeholder'=>__('Restbetrag'), 'class'=>'form-control', 'id'=>'price_balance', 'readonly')) }}
                        </div>
                    </div>
                @else
                    <div class="form-group ">
                        <label class="form-label" for="price_total">{{ __('Gesamtpreis Reise') }}</label>
                        <div class="input-group">
                            <div class="input-group-prepend">
                                <span class="input-group-text">€</span>
                            </div>
                            {{ Form::text('price_total', $booking->price_total,  array('placeholder'=>__('Gesamtpreis Reise'), 'class'=>'form-control', 'id'=>'price_total', 'readonly')) }}
                        </div>
                    </div>
                @endif
            </div>

            <div class="col-sm-4">
                <div class="form-group">
                    <label class="form-label" for="price">{{ __('Gesamtpreis Leistungsträger') }}</label>
                    <div class="input-group">
                        <div class="input-group-prepend">
                            <span class="input-group-text">€</span>
                        </div>
                        {{ Form::text('price', $booking->getServiceProviderPaymentsFactorTotal(),  array('placeholder'=>__('Gesamtpreis Leistungsträger'), 'class'=>'form-control', 'id'=>'price', 'readonly')) }}
                    </div>
                </div>

                <div class="form-group">
                    <label class="form-label" for="proceeds">{{ __('Nettomarge bei Eigenveranstaltung') }}</label>
                    <div class="input-group">
                        <div class="input-group-prepend">
                            <span class="input-group-text">€</span>
                        </div>
                        {{ Form::text('proceeds', $booking->proceeds(),  array('placeholder'=>__('Erlös'), 'class'=>'form-control', 'id'=>'proceeds', 'readonly')) }}
                    </div>
                </div>

                @if($booking->isCanceled())
                    <div class="form-group">
                        <label class="form-label" for="canceled">{{ __('Storno in %') }}</label>
                        <div class="input-group">
                            <div class="input-group-prepend">
                                <span class="input-group-text">€</span>
                            </div>
                            {{ Form::text('canceled', $booking->canceled,  array('placeholder'=>__('Storno in %'), 'class'=>'form-control', 'id'=>'canceled', 'readonly')) }}
                        </div>
                    </div>
                @endif
            </div>

            <div class="col-sm-4">
                <div class="form-group">
                    <label class="form-label" for="deposit_total">{{ __('Anzahlung') }}</label>
                    <div class="input-group">
                        <div class="input-group-prepend">
                            <span class="input-group-text">€</span>
                        </div>
                        {{ Form::text('deposit_total', $booking->deposit_total,  array('placeholder'=>__('Anzahlung'), 'class'=>'form-control', 'id'=>'deposit_total')) }}
                    </div>
                </div>
                <div class="form-group">
                    <label class="form-label" for="final_payment">{{ __('Restzahlung') }}</label>
                    <div class="input-group">
                        <div class="input-group-prepend">
                            <span class="input-group-text">€</span>
                        </div>
                        {{ Form::text('final_payment', $booking->final_payment,  array('placeholder'=>__('Restzahlung'), 'class'=>'form-control', 'id'=>'final_payment')) }}
                    </div>
                </div>
                <div class="form-group">
                    <label class="form-label" for="final_payment_date">{{ __('Restzahlung bis') }}</label>
                    <div class="input-group">
                        <div class="input-group-prepend">
                            <span class="input-group-text"><i class="fa fa-calendar-alt"></i></span>
                        </div>
                        {{ Form::text('final_payment_date', $booking->getFinalPaymentDateFormat(),  array('placeholder'=>__('Restzahlung bis'), 'class'=>'form-control datepicker-base', 'id'=>'final_payment_date')) }}
                    </div>
                </div>
            </div>

            <div class="col-12">
                <hr>
               <div class="text-left mt-3">
                   <button type="submit" name="action" value="update_booking_price" class="btn btn-sm btn-secondary">{{ __('save changes') }}</button>&nbsp;
                   <a href="{{route('bookings')}}" class="btn btn-sm btn-default">{{ __('zur Übersicht') }}</a>
               </div>

           </div>

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