<div class="card mb-2  border-primary">
    <h6 class="card-header  bg-primary text-white py-2" data-toggle="collapse" data-target="#collapseBookingLead" aria-expanded="false" aria-controls="collapseBookingLead">
        <strong style="line-height: 1.6em">Anfrage</strong>
    </h6>
    <div class="collapse" id="collapseBookingLead">
        <div class="card-body row">
            @if($booking->lead->count())
                <div class="form-group col-sm-6">
                    <label class="form-label" for="lead_id">{{ __('Anfrage ID') }}</label>
                    <div class="input-group">
                        <div class="input-group-prepend">
                            <span class="input-group-text">
                            <a class="text-primary" href="{{route('lead_detail', [$booking->lead->id])}}"><i class="fa fa-edit"></i></a></span>
                        </div>
                        {{ Form::text('lead[id]', $booking->lead->id,  array('placeholder'=>__('Anfrage ID'), 'class'=>'form-control', 'id'=>'lead_id', 'readonly')) }}
                    </div>
                </div>

                <div class="form-group col-sm-6 col-md-6">
                    <label class="form-label" for="lead_status_id">{{ __('Status ändern') }}  </label>
                    {{ Form::select('lead[status_id]', \App\Models\Lead::getStatusArray() , $booking->lead->status_id, array('class'=>'custom-select')) }}
                </div>

               

                <div class="form-group col-sm-6">
                    <label class="custom-control custom-checkbox mt-2">
                        {!! Form::checkbox('lead[is_rebook]', 1, $booking->lead->is_rebook, ['class'=>'custom-control-input', 'readonly']) !!}
                        <span class="custom-control-label">{{__('Umbuchung abgeschlossen')}}</span>
                    </label>
                </div>

                <div class="form-group col-sm-6">
                    <label class="custom-control custom-checkbox mt-2">
                        {!! Form::checkbox('lead[is_closed]', 1, $booking->lead->is_closed, ['class'=>'custom-control-input', 'readonly']) !!}
                        <span class="custom-control-label">{{__('Vorgang abgeschlossen')}}</span>
                    </label>
                </div>

                <div class="col-sm-12">
                    <div class="text-left mt-2">
                        <button type="submit" name="action" value="save_lead_status" class="btn btn-sm btn-secondary">Änderungen speichern</button>&nbsp;
                        <a href="{{route('leads')}}" class="btn btn-sm  btn-default">{{ __('zur Übersicht') }}</a>
                    </div>
                </div>
            @endif
        </div>
    </div>
</div>