takix
<select name="month">
<option value="">- Month</option>
@for($month = 1; $month <= 12; $month++)
<option value="{{ str_pad($month, 2, 0, STR_PAD_LEFT) }}"
@selected($month === $user->birth?->month)>
{{ $month }}
</option
@endfor
</select>
<select name="day">
<option value="">- Day</option>
@for($day= 1; $day <= (int)date('t'); $day++)
<option value="{{ str_pad($day, 2, 0, STR_PAD_LEFT) }}"
@selected($day === $user->birth?->day)>
{{ $day }}
</option
@endfor
</select>
<select name="year">
<option value="">- Year</option>
@foreach(range(date('Y') - 17, 1951) as $year)
<option value="{{ $year }}"
@selected($year === $user->birth?->year)>
{{ $year }}
</option
@endforeach
</select>