Commit 92895d6c by Azhan Hannan

selection date

parent e7b1cc02
...@@ -14,9 +14,15 @@ ...@@ -14,9 +14,15 @@
<label>Month</label> <label>Month</label>
<select name="month" class="ui fluid dropdown" required="required"> <select name="month" class="ui fluid dropdown" required="required">
@foreach ($month as $key => $value) @if($currmonth == 1 && date('j') < 16)
<option value="{{ $key+1 }}" @if($key+1 == date('m')) selected="selected" @endif>{{ $value }}</option> @foreach ($month as $key => $value)
@endforeach <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> </select>
</div> </div>
...@@ -27,8 +33,7 @@ ...@@ -27,8 +33,7 @@
<option value="2" @if(date('d') < 16) selected="selected" @endif >2nd Half-month</option> <option value="2" @if(date('d') < 16) selected="selected" @endif >2nd Half-month</option>
</select> </select>
</div> </div>
@if($currmonth == 1 && date('j') < 16)
@if($currmonth == 1)
<div class="three wide field"> <div class="three wide field">
<label>Year</label> <label>Year</label>
<select name="year" class="ui fluid dropdown" required="required"> <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