date increment and current year

Am working on academic year and academic term:

In table one(academic_year):

7018

academic_year.PNG




    public function attributeLabels()

    {

        return [

            'academic_year_id' => Yii::t('app', 'Academic Year ID'),

            'academic_year_name' => Yii::t('app', 'Academic Year Name'),

            'academic_year_period' => Yii::t('app', 'Academic Year Period'),

            'academic_year_start_date' => Yii::t('app', 'Start Date'),

            'academic_year_end_date' => Yii::t('app', 'End Date'),

            'is_current' => Yii::t('app', 'Is Current'),

            'created_at' => Yii::t('app', 'Created At'),

            'created_by' => Yii::t('app', 'Created By'),

            'updated_at' => Yii::t('app', 'Updated At'),

            'updated_by' => Yii::t('app', 'Updated By'),

            'is_status' => Yii::t('app', 'Is Status'),

        ];

    }



When datepicker for ‘academic_year_start_date’ is clicked, it should automatically increment ‘academic_year_end_date’ by one year. Also, it should make ‘academic_year_period’ = ‘academic_year_start_date’.-.'academic_year_end_date.

Then if ‘is_current’ is clicked(checkbox), it will uncheck all other year apart from that particular year.

Please help me.