Commit 92895d6c by Azhan Hannan

selection date

parent e7b1cc02
......@@ -14,9 +14,15 @@
<label>Month</label>
<select name="month" class="ui fluid dropdown" required="required">
@foreach ($month as $key => $value)
<option value="{{ $key+1 }}" @if($key+1 == date('m')) selected="selected" @endif>{{ $value }}</option>
@endforeach
@if($currmonth == 1 && date('j') < 16)
@foreach ($month as $key => $value)
<option value="{{ $key+1 }}" @if($key+1 == 12) selected="selected" @endif>{{ $value }}</option>
@endforeach
@else
@foreach ($month as $key => $value)
<option value="{{ $key+1 }}" @if($key+1 == date('m')) selected="selected" @endif>{{ $value }}</option>
@endforeach
@endif
</select>
</div>
......@@ -27,8 +33,7 @@
<option value="2" @if(date('d') < 16) selected="selected" @endif >2nd Half-month</option>
</select>
</div>
@if($currmonth == 1)
@if($currmonth == 1 && date('j') < 16)
<div class="three wide field">
<label>Year</label>
<select name="year" class="ui fluid dropdown" required="required">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment