|
@@ -113,7 +113,18 @@
|
|
</select>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="mb-2">
|
|
<div class="mb-2">
|
|
- <input type="date" max="{{ date('Y-m-d') }}" class="form-control form-control-sm" name="effectiveDate"
|
|
|
|
|
|
+ <?php
|
|
|
|
+ $sD = strtotime($careMonth->start_date);
|
|
|
|
+ $y = date('Y', $sD);
|
|
|
|
+ $m = date('m', $sD);
|
|
|
|
+ $d = date('t', $sD);
|
|
|
|
+ $yCurrent = date('Y');
|
|
|
|
+ $mCurrent = date('m');
|
|
|
|
+ if($y === $yCurrent && $m === $mCurrent) {
|
|
|
|
+ $d = date('d');
|
|
|
|
+ }
|
|
|
|
+ ?>
|
|
|
|
+ <input type="date" min="{{ date($y . '-' . $m . '-01') }}" max="{{ date($y . '-' . $m . '-' . $d) }}" class="form-control form-control-sm" name="effectiveDate"
|
|
value="" placeholder="Effective Date">
|
|
value="" placeholder="Effective Date">
|
|
</div>
|
|
</div>
|
|
<div class="mb-2">
|
|
<div class="mb-2">
|
|
@@ -212,7 +223,18 @@
|
|
</select>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="mb-2">
|
|
<div class="mb-2">
|
|
- <input type="date" max="{{ date('Y-m-d') }}" class="form-control form-control-sm" name="effectiveDate"
|
|
|
|
|
|
+ <?php
|
|
|
|
+ $sD = strtotime($careMonth->start_date);
|
|
|
|
+ $y = date('Y', $sD);
|
|
|
|
+ $m = date('m', $sD);
|
|
|
|
+ $d = date('t', $sD);
|
|
|
|
+ $yCurrent = date('Y');
|
|
|
|
+ $mCurrent = date('m');
|
|
|
|
+ if($y === $yCurrent && $m === $mCurrent) {
|
|
|
|
+ $d = date('d');
|
|
|
|
+ }
|
|
|
|
+ ?>
|
|
|
|
+ <input type="date" min="{{ date($y . '-' . $m . '-01') }}" max="{{ date($y . '-' . $m . '-' . $d) }}" class="form-control form-control-sm" name="effectiveDate"
|
|
value="" placeholder="Effective Date">
|
|
value="" placeholder="Effective Date">
|
|
</div>
|
|
</div>
|
|
<div class="mb-2">
|
|
<div class="mb-2">
|
|
@@ -299,7 +321,7 @@
|
|
|
|
|
|
<div class="row">
|
|
<div class="row">
|
|
|
|
|
|
- {{-- active cm bill --}}
|
|
|
|
|
|
+ {{-- cm bills --}}
|
|
<div class="col-6">
|
|
<div class="col-6">
|
|
<div class="d-flex align-items-center">
|
|
<div class="d-flex align-items-center">
|
|
<h6 class="my-0 text-secondary font-weight-bold text-dark">CM Bill
|
|
<h6 class="my-0 text-secondary font-weight-bold text-dark">CM Bill
|
|
@@ -480,7 +502,7 @@
|
|
@endif
|
|
@endif
|
|
</div>
|
|
</div>
|
|
|
|
|
|
- {{-- active rm bill --}}
|
|
|
|
|
|
+ {{-- rm bills --}}
|
|
<div class="col-6">
|
|
<div class="col-6">
|
|
<div class="d-flex align-items-center">
|
|
<div class="d-flex align-items-center">
|
|
<h6 class="my-0 text-secondary font-weight-bold text-dark">RM Bill
|
|
<h6 class="my-0 text-secondary font-weight-bold text-dark">RM Bill
|