my-idlers/resources/views/components/term-select.blade.php
cp6 d13e170f22 V2 (Laravel re-make)
V2 (Laravel re-make)
2022-03-06 02:22:16 +11:00

12 lines
927 B
PHP

<div class="input-group">
<div class="input-group-prepend"><span class="input-group-text">{{ $title ??'Term'}}</span></div>
<select class="form-control" name="{{$name ?? 'payment_term'}}">
<option value="1" {{(isset($current) && (string)$current === '1')? 'selected' : ''}}>Monthly</option>
<option value="2" {{(isset($current) && (string)$current === '2')? 'selected' : ''}}>Quarterly</option>
<option value="3" {{(isset($current) && (string)$current === '3')? 'selected' : ''}}>Half annual (half year)</option>
<option value="4" {{(isset($current) && (string)$current === '4')? 'selected' : ''}}>Annual (yearly)</option>
<option value="5" {{(isset($current) && (string)$current === '5')? 'selected' : ''}}>Biennial (2 years)</option>
<option value="6" {{(isset($current) && (string)$current === '6')? 'selected' : ''}}>Triennial (3 years)</option>
</select>
</div>