|
|
@@ -500,7 +500,7 @@ class Member extends Component
|
|
|
|
|
|
$this->categories = array();
|
|
|
|
|
|
- $this->getCategories(\App\Models\Category::select('id', 'name')->where('parent_id', null)->get(), 0);
|
|
|
+ $this->getCategories(\App\Models\Category::select('id', 'name')->where('parent_id', null)->orderBy('name')->get(), 0);
|
|
|
|
|
|
|
|
|
|
|
|
@@ -1589,7 +1589,14 @@ class Member extends Component
|
|
|
$mms = [];
|
|
|
$mms[] = date("n", strtotime($start));
|
|
|
for ($jj = 1; $jj < $r->months; $jj++) {
|
|
|
- $mms[] = date('n', strtotime("+" . $jj . " months", strtotime($start)));
|
|
|
+ if (date('Ymd', strtotime("+" . $jj . " months", strtotime($start))) < date("Ymd", strtotime($this->course_date_to)))
|
|
|
+ {
|
|
|
+ $mms[] = date('n', strtotime("+" . $jj . " months", strtotime($start)));
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ break;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
$rate = new \App\Models\Rate();
|