Files
portal-api/resources/views/components/form/customer.blade.php
T
2025-07-24 16:18:27 +07:00

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>