<form id="new_offer">
    <input type="hidden" name="data[_client]" value="{{$model->getAttribute('_client')}}">
    <ul class="list-group list-group-flush">
        <li class="list-group-item">{{$model->_client->descriptor}}<br>
        {{$model->_client->firstname}}
        {{$model->_client->surname}}<br>
        {{$model->_client->streetadress}}
        {{$model->_client->housenumber}}<br>
        {{$model->_client->postalcode}}
        {{$model->_client->location}}</li>
        <li class="list-group-item"><input type="date" class="form-control" name="data[date]" placeholder="Datum" value="{{(new \DateTime())->format( 'Y-m-d')}}">
        <li class="list-group-item"><input type="text" class="form-control" name="data[order_number]" placeholder="Kundenreferenz, optional" autocomplete="off"></li>
        <!--li class="list-group-item"><input type="text" class="form-control" name="data[title]" placeholder="Titel, optional" autocomplete="off"></li -->
        <li class="list-group-item"><textarea class="form-control" name="data[assignment]" rows="8" placeholder="geplante Arbeit, optional" autocomplete="off"></textarea></li>
        <li class="list-group-item"><input type="text" class="form-control" name="data[commission_number]" placeholder="Kommisionsnummer, optional" autocomplete="off"></li>
        <li class="list-group-item">
            <div class="input-group mb-3">
                <div class="input-group-prepend">
                    <span class="input-group-text">Gültig bis:</span>
                </div>
                <input type="date" class="form-control" name="data[date_valid_to]" placeholder="Datum" value="{{\Carbon\Carbon::now()->addDays(14)->format('Y-m-d')}}">
            </div>
        </li>
    </ul>
</form>

