18 lines
661 B
PHP
18 lines
661 B
PHP
<div class="form-group">
|
|
<label for="inputClient">
|
|
Client</label>
|
|
<select name="client" class="form-control" id="inputClient">
|
|
<option value="">-------------</option>
|
|
@if(count($customers) > 0)
|
|
@foreach($customers->all() as $item)
|
|
<option value="{{ $item->id }}"
|
|
@selected(isset($model) && $model === $item->id)>
|
|
{{ $item->firstname . " " . $item->lastname }}
|
|
@if($item->company)
|
|
( {{ $item->comapny }} )
|
|
@endif
|
|
</option>
|
|
@endforeach
|
|
@endif
|
|
</select>
|
|
</div> |