sigd/storage/framework/views/62282c9a8cd7889fbdf3d2646ff...

60 lines
1.7 KiB
PHP

<?php $attributes ??= new \Illuminate\View\ComponentAttributeBag;
$__newAttributes = [];
$__propNames = \Illuminate\View\ComponentAttributeBag::extractPropNames(([
'selectedYear' => date('Y'),
'name' => 'year',
'onchange' => ''
]));
foreach ($attributes->all() as $__key => $__value) {
if (in_array($__key, $__propNames)) {
$$__key = $$__key ?? $__value;
} else {
$__newAttributes[$__key] = $__value;
}
}
$attributes = new \Illuminate\View\ComponentAttributeBag($__newAttributes);
unset($__propNames);
unset($__newAttributes);
foreach (array_filter(([
'selectedYear' => date('Y'),
'name' => 'year',
'onchange' => ''
]), 'is_string', ARRAY_FILTER_USE_KEY) as $__key => $__value) {
$$__key = $$__key ?? $__value;
}
$__defined_vars = get_defined_vars();
foreach ($attributes->all() as $__key => $__value) {
if (array_key_exists($__key, $__defined_vars)) unset($$__key);
}
unset($__defined_vars); ?>
<div class="form-group d-flex align-items-center" style="font-family: 'Inter', sans-serif;">
<label for="mitigationYear" class="col-form-label col-sm-auto mb-0">
Tahun Mitigasi:
</label>
<div class="input-group ml-2">
<select
name="<?php echo e($name); ?>"
id="mitigationYear"
class="form-control"
onchange="<?php echo e($onchange); ?>"
>
<?php for($year = date('Y'); $year >= 2000; $year--): ?>
<option value="<?php echo e($year); ?>"
<?php echo e($selectedYear == $year ? 'selected' : ''); ?>>
<?php echo e($year); ?>
</option>
<?php endfor; ?>
</select>
</div>
</div>
<?php /**PATH /var/www/sigd/resources/views/components/mitigation-year-select.blade.php ENDPATH**/ ?>