This commit is contained in:
Juan Pablo Vial
2023-07-24 20:41:38 -04:00
parent 6ab24c8961
commit be33305cf1
612 changed files with 11436 additions and 107 deletions

View File

@ -0,0 +1,38 @@
<?php $t = \Carbon\Carbon::today(config('app.timezone')) ?>
<div class="col-md-1"><select name="day{{(isset($id)) ? $id : ''}}" class="form-control">
@for ($i = 0; $i < 31; $i ++)
<option value="{{$i + 1}}"
@if (isset($f))
@if ($f->day == $i + 1)
selected="selected"
@endif
@elseif ($t->day == $i + 1)
selected="selected"
@endif
>{{str_pad($i + 1, 2, '0', STR_PAD_LEFT)}}</option>
@endfor
</select></div>
<div class="col-md-1"><select name="month{{(isset($id)) ? $id : ''}}" class="form-control">
@for ($i = 0; $i < 12; $i ++)
<option value="{{$i + 1}}"
@if (isset($f))
@if ($f->month == $i + 1)
selected="selected"
@endif
@elseif ($t->month == $i + 1)
selected="selected"
@endif
>{{str_pad($i + 1, 2, '0', STR_PAD_LEFT)}}</option>
@endfor
</select></div>
<div class="col-md-2"><select name="year{{(isset($id)) ? $id : ''}}" class="form-control">
@for ($i = $t->year; $i > $t->year - 5; $i --)
<option value="{{$i}}"
@if (isset($f))
@if ($f->year == $i)
selected="selected"
@endif
@endif
>{{$i}}</option>
@endfor
</select></div>