2022-03-05 16:29:58 +01:00
|
|
|
<div class="input-group">
|
|
|
|
<div class="input-group-prepend"><span class="input-group-text">{{ $title ??'Location'}}</span></div>
|
|
|
|
<select class="form-control" name="{{$name ?? 'location_id'}}">
|
|
|
|
@foreach ($locations as $location)
|
2022-05-09 07:00:33 +02:00
|
|
|
<option
|
2023-09-09 16:13:13 +02:00
|
|
|
value="{{ $location['id'] }}" {{(isset($current) && (string)$current === (string)$location['id'])? 'selected' : ''}}>
|
|
|
|
{{ $location['name'] }}
|
2022-03-05 16:29:58 +01:00
|
|
|
</option>
|
|
|
|
@endforeach
|
|
|
|
</select>
|
|
|
|
</div>
|