Commit 0cf7503e by Azhan Hannan

timesheet year

parent b2bee6b4
...@@ -33,7 +33,18 @@ ...@@ -33,7 +33,18 @@
<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)
{{-- yg year tu dah x boleh pilih 2023? sbb ade lagi pss yg lom submit tahun 2023 -> shikin 18/01/2024 --}}
<div class="three wide field">
<label>Year</label>
<select name="year" class="ui fluid dropdown" required="required">
<option value="{{ $curryear-1 }}">{{ $curryear-1 }}</option>
<option value="{{ $curryear }}">{{ $curryear }}</option>
</select>
</div>
{{-- @if($currmonth == 1 && date('j') < 16)
<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">
...@@ -46,7 +57,7 @@ ...@@ -46,7 +57,7 @@
<label>Year</label> <label>Year</label>
<input type="text" name="year" class="ui fluid dropdown" value="{{ $curryear }}" readonly="readonly"> <input type="text" name="year" class="ui fluid dropdown" value="{{ $curryear }}" readonly="readonly">
</div> </div>
@endif @endif --}}
</div> </div>
<button class="ui green button" type="submit">Open Form</button> <button class="ui green button" type="submit">Open Form</button>
......
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