1
0
mirror of https://github.com/cp6/my-idlers.git synced 2024-11-16 15:33:44 +01:00
my-idlers/resources/views/components/currency-select.blade.php

11 lines
476 B
PHP
Raw Permalink 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>