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

        <div class="card-body row">
            <div class="form-group col-sm-6 col-md-4">
                <label class="form-label" for="sf_guard_user_id">{{ __('Sachbearbeiter') }}</label>
                {{ Form::text('sf_guard_user_id', $booking->sf_guard_user->first_name." ".$booking->sf_guard_user->last_name,  array('placeholder'=>__('Sachbearbeiter'), 'class'=>'form-control', 'id'=>'sf_guard_user_id', 'readonly')) }}
            </div>
            <div class="form-group col-sm-6 col-md-4">
                <label class="form-label" for="booking_date">{{ __('Buchungsdatum') }}</label>
                {{ Form::text('booking_date', _format_date($booking->booking_date),  array('placeholder'=>__('Buchungsdatum'), 'class'=>'form-control', 'id'=>'booking_date', 'readonly')) }}
            </div>
            <div class="form-group col-sm-6 col-md-4">
                <label class="form-label" for="travel_country_id">{{ __('Reiseland') }}</label>
                {{ Form::text('travel_country_id', $booking->travel_country ? $booking->travel_country->name : '',  array('placeholder'=>__('Reiseland'), 'class'=>'form-control', 'id'=>'travel_country_id', 'readonly')) }}
            </div>
            <div class="form-group col-sm-6 col-md-4">
                <label class="form-label" for="travel_number">{{ __('Reisenummer') }}</label>
                {{ Form::text('travel_number', $booking->travel_number,  array('placeholder'=>__('Reisenummer'), 'class'=>'form-control', 'id'=>'travel_number', 'readonly')) }}
            </div>
            <div class="form-group col-sm-6 col-md-4">
                <label class="form-label" for="travelagenda_id">{{ __('Reiseprogramm') }}</label>
                {{ Form::text('travelagenda_id', $booking->travel_agenda ? $booking->travel_agenda->name : '',  array('placeholder'=>__('Reiseprogramm'), 'class'=>'form-control', 'id'=>'travelagenda_id', 'readonly')) }}
            </div>
            <div class="form-group col-sm-6 col-md-4">
                <label class="form-label" for="travel_category_id">{{ __('Reiseart') }}</label>
                {{ Form::text('travel_category_id', $booking->travel_category ? $booking->travel_category->name : '',  array('placeholder'=>__('Reiseart'), 'class'=>'form-control', 'id'=>'travel_category_id', 'readonly')) }}
            </div>
            <div class="form-group col-sm-6 col-md-4">
                <label class="form-label" for="start_date">{{ __('Aufenthalt vom') }}</label>
                {{ Form::text('start_date', _format_date($booking->start_date),  array('placeholder'=>__('Aufenthalt vom'), 'class'=>'form-control', 'id'=>'start_date', 'readonly')) }}
            </div>
            <div class="form-group col-sm-6 col-md-4">
                <label class="form-label" for="end_date">{{ __('Aufenthalt bis') }}</label>
                {{ Form::text('end_date', _format_date($booking->end_date),  array('placeholder'=>__('Aufenthalt bis'), 'class'=>'form-control', 'id'=>'end_date', 'readonly')) }}
            </div>
            <div class="form-group col-sm-6 col-md-4">
                <label class="form-label" for="title">{{ __('Reisetitel') }}</label>
                {{ Form::text('title', $booking->title,  array('placeholder'=>__('Reisetitel'), 'class'=>'form-control', 'id'=>'title', 'readonly')) }}
            </div>

            <div class="col-12">
                <h5 class="card-title mt-3 mb-1">Status</h5>
                <hr class="mt-0">
            </div>
            <div class="form-group col-sm-6 col-md-3">
                <label class="form-label" for="paying_out">{{ __('K-Wunsch') }}</label>
                {{ Form::select('paying_out', \App\Models\Booking::$paying_out_types , $booking->paying_out, array('class'=>'custom-select', 'id'=>'paying_out' )) }}
            </div>
            <div class="form-group col-sm-6 col-md-3">
                <label class="form-label" for="paying_out_status">{{ __('KW-Status') }}</label>
                {{ Form::select('paying_out_status', \App\Models\Booking::$paying_out_status_types , $booking->paying_out_status, array('class'=>'custom-select', 'id'=>'paying_out_status' )) }}
            </div>
            <div class="form-group col-sm-6 col-md-3">
                <label class="form-label" for="refund">{{ __('Refund') }}</label>
                {{ Form::select('refund', \App\Models\Booking::$refund_types , $booking->refund, array('class'=>'custom-select', 'id'=>'refund' )) }}
            </div>
            <div class="form-group col-sm-6 col-md-3">
                <label class="form-label" for="refund_date">{{ __('Refund Datum') }}</label>
                {{ Form::text('refund_date', _format_date($booking->refund_date),  array('placeholder'=>__('Refund Datum'), 'class'=>'form-control datepicker-base', 'id'=>'refund_date')) }}
            </div>
            <div class="form-group col-sm-6 col-md-3">
                <label class="form-label" for="xx_tkt">{{ __('XX TKT') }}</label>
                {{ Form::select('xx_tkt', \App\Models\Booking::$xx_tkt_types , $booking->xx_tkt, array('class'=>'custom-select', 'id'=>'xx_tkt' )) }}
            </div>
            <div class="form-group col-sm-6 col-md-3">
                <label class="form-label" for="xx_tkt_date">{{ __('XX TKT Datum') }}</label>
                {{ Form::text('xx_tkt_date', _format_date($booking->xx_tkt_date),  array('placeholder'=>__('XX TKT Datum'), 'class'=>'form-control datepicker-base', 'id'=>'xx_tkt_date')) }}
            </div>
            <div class="form-group col-sm-6 col-md-3">
                <label class="form-label" for="hold">{{ __('Hold') }}</label>
                {{ Form::select('hold', \App\Models\Booking::$hold_types , $booking->hold, array('class'=>'custom-select', 'id'=>'hold' )) }}
            </div>
            <div class="form-group col-sm-6 col-md-3">
                <label class="form-label" for="airline_id">{{ __('Airline') }}</label>
                {{ Form::select('airline_id', \App\Models\Airline::getAsNameIdArray() , $booking->airline_id, array('class'=>'custom-select', 'id'=>'airline_id' )) }}
            </div>
            <div class="form-group col-sm-6 col-md-3">
                <label class="form-label" for="filekey">{{ __('Filekey') }}</label>
                {{ Form::text('filekey', $booking->filekey,  array('placeholder'=>__('Filekey'), 'class'=>'form-control', 'id'=>'filekey')) }}
            </div>
            <div class="form-group col-sm-6 col-md-3">
                <label class="form-label" for="">&nbsp;</label>
                <label class="custom-control custom-checkbox mt-2" style="margin-right: 20px;">
                    {!! Form::checkbox('is_rail_fly', 1, $booking->is_rail_fly, ['class'=>'custom-control-input', 'id'=>'is_rail_fly']) !!}
                    <span class="custom-control-label">{{__('Rail & Fly')}}</span>
                </label>
            </div>
            <div class="form-group col-sm-6 col-md-3">
                <label class="form-label" for="lawyer_date">{{ __('Anwaltsfrist') }}</label>
                {{ Form::text('lawyer_date', _format_date($booking->lawyer_date),  array('placeholder'=>__('Anwaltsfrist'), 'class'=>'form-control datepicker-base', 'id'=>'lawyer_date')) }}
            </div>

            <div class="form-group col-sm-12 col-md-12">
                <label class="form-label" for="notice">{{ __('Bemerkung') }}</label>
                {{ Form::text('notice', $booking->notice,  array('placeholder'=>__('Bemerkung'), 'class'=>'form-control', 'id'=>'notice')) }}
            </div>

            <div class="col-12">
                 <hr>
                <div class="text-left mt-3">
                    <button type="submit" name="action" value="update_booking" 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>