my-idlers/resources/views/components/currency-select.blade.php

11 lines
476 B
PHP
Raw Normal View History

<div class="input-group">
<div class="input-group-prepend"><span class="input-group-text">{{ $title ??'Currency'}}</span></div>
<select class="form-control" name="{{$name ?? 'currency'}}">
2022-06-27 15:56:29 +02:00
@foreach (App\Models\Pricing::getCurrencyList() as $currency)
<option value="{{$currency}}" {{(isset($current) && (string)$current === $currency)? 'selected' : ''}}>
{{$currency}}
</option>
@endforeach
</select>
</div>