1
0
mirror of https://github.com/cp6/my-idlers.git synced 2024-11-16 23:42:32 +01:00
my-idlers/resources/views/components/providers-select.blade.php
cp6 1251fae0df Fixed providers cache
Fixed providers cache
2022-05-09 15:39:03 +10:00

11 lines
478 B
PHP

<div class="input-group">
<div class="input-group-prepend"><span class="input-group-text">{{ $title ??'Provider'}}</span></div>
<select class="form-control" name="{{$name ?? 'provider_id'}}">
@foreach ($providers as $provider)
<option value="{{ $provider->id }}" {{(isset($current) && (string)$current === (string)$provider->id)? 'selected' : ''}}>
{{ $provider->name }}
</option>
@endforeach
</select>
</div>