</div> </div> <?php } ?> <div class="col-xs-12"> <div class="col-lg-4 col-sm-4 col-xs-12 no-padding"><h3 class="box-title"><i class="fa fa-th-list"></i> <?php echo $this->title; ?> </h3></div> <div class="col-xs-4"></div> <div class="col-lg-4 col-sm-4 col-xs-12 no-padding" style="padding-top: 20px !important;"></div> </div> <div class="col-xs-12" style="padding-top: 10px;"> <div class="box"> <div class="box-body"> <?php echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'summary' => '', 'options' => ['class' => 'table-responsive'], 'columns' => [['class' => 'yii\\grid\\SerialColumn'], ['label' => 'Student ID', 'attribute' => 'stu_unique_id', 'value' => 'stuMasterStuInfo.stu_unique_id'], ['label' => 'First Name', 'attribute' => 'stu_first_name', 'value' => 'stuMasterStuInfo.stu_first_name'], ['label' => 'Last Name', 'attribute' => 'stu_last_name', 'value' => 'stuMasterStuInfo.stu_last_name'], ['label' => 'Course', 'attribute' => 'stu_master_course_id', 'value' => 'stuMasterCourse.course_name', 'filter' => ArrayHelper::map(app\modules\course\models\Courses::find()->where(['is_status' => 0])->all(), 'course_id', 'course_name')], ['label' => 'Batch', 'attribute' => 'stu_master_batch_id', 'value' => 'stuMasterBatch.batch_name', 'filter' => ArrayHelper::map(app\modules\course\models\Batches::find()->where(['is_status' => 0])->all(), 'batch_id', 'batch_name', 'batchCourse.course_name')], ['label' => 'User Login Id', 'attribute' => 'user_login_id', 'value' => 'stuMasterUser.user_login_id'], ['class' => 'yii\\grid\\ActionColumn', 'template' => '{Reset_loginid}', 'buttons' => ['Reset_loginid' => function ($url, $model) { return Html::a('<span class="glyphicon glyphicon-edit"></span>', $url, ['title' => Yii::t('app', 'Reset Login')]); }], 'urlCreator' => function ($action, $model, $key, $index) { if ($action === 'Reset_loginid') { $url = \Yii::$app->getUrlManager()->createUrl(["user/updatestudloginid", 'id' => $model->stuMasterUser->user_id]); return $url; } }]]]); ?> </div> </div> </div>
<div class="col-xs-4 left-padding"> <?php echo Html::a('PDF', ['/export-data/export-to-pdf', 'model' => get_class($searchModel)], ['class' => 'btn btn-block btn-warning', 'target' => '_blank']); ?> </div> <div class="col-xs-4 left-padding"> <?php echo Html::a('EXCEL', ['/export-data/export-excel', 'model' => get_class($searchModel)], ['class' => 'btn btn-block btn-primary', 'target' => '_blank']); ?> </div> </div> </div> <div class="col-xs-12" style="padding-top: 10px;"> <div class="box"> <div class="box-body table-responsive"> <div class="section-index"> <?php \yii\widgets\Pjax::begin(['id' => 'section-id', 'enablePushState' => false, 'enableReplaceState' => false]); ?> <?php echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'summary' => '', 'columns' => [['class' => 'yii\\grid\\SerialColumn'], 'section_name', ['label' => 'Batch', 'attribute' => 'section_batch_id', 'value' => 'sectionBatch.batch_name', 'filter' => ArrayHelper::map(app\modules\course\models\Batches::find()->all(), 'batch_id', 'batch_name')], 'intake', ['class' => '\\pheme\\grid\\ToggleColumn', 'contentOptions' => ['class' => 'text-center'], 'attribute' => 'is_status', 'enableAjax' => false, 'filter' => ['1' => 'InActive', '0' => 'Active']], ['class' => 'app\\components\\CustomActionColumn']]]); ?> <?php \yii\widgets\Pjax::end(); ?> </div> </div> </div> </div>
</div> <div class="icon"> <i class="fa fa-graduation-cap"></i> </div> <?php echo Html::a('More info <i class="fa fa-arrow-circle-right"></i>', ['/course/courses/index'], ['target' => '_blank', 'class' => 'small-box-footer']); ?> </div> </div><!-- ./col --> <div class="col-lg-3 col-xs-6"> <!-- small box --> <div class="small-box bg-red"> <div class="inner"> <h3> <?php echo app\modules\course\models\Batches::find()->where(['is_status' => 0])->count(); ?> </h3> <p> Active Batches </p> </div> <div class="icon"> <i class="fa fa-sitemap"></i> </div> <?php echo Html::a('More info <i class="fa fa-arrow-circle-right"></i>', ['/course/batches/index'], ['target' => '_blank', 'class' => 'small-box-footer']); ?> </div> </div><!-- ./col --> </div><!-- /.row -->
echo $form->field($model, 'fees_collect_end_date')->widget(yii\jui\DatePicker::className(), ['clientOptions' => ['dateFormat' => 'dd-mm-yyyy', 'changeMonth' => true, 'changeYear' => true, 'autoSize' => true, 'yearRange' => '1900:' . (date('Y') + 1)], 'options' => ['class' => 'form-control', 'placeholder' => $model->getAttributeLabel('fees_collect_end_date')]]); ?> </div> <div class="col-xs-12 col-sm-6 col-lg-6"> <?php echo $form->field($model, 'fees_collect_due_date')->widget(yii\jui\DatePicker::className(), ['clientOptions' => ['dateFormat' => 'dd-mm-yyyy', 'changeMonth' => true, 'changeYear' => true, 'autoSize' => true, 'yearRange' => '1900:' . (date('Y') + 1)], 'options' => ['class' => 'form-control', 'placeholder' => $model->getAttributeLabel('fees_collect_due_date')]]); ?> </div> <div class="col-xs-12 col-sm-6 col-lg-6"> <?php if (Yii::$app->controller->action->id === 'create') { echo $form->field($model, 'fees_collect_batch_id[]')->dropDownList(ArrayHelper::map(app\modules\course\models\Batches::find()->where(['is_status' => 0])->all(), 'batch_id', 'batch_name', 'batchCourse.course_name'), ['multiple' => "multiple", 'class' => 'form-control', 'placeholder' => $model->getAttributeLabel('fees_collect_batch_id')]); } else { echo $form->field($model, 'fees_collect_batch_id')->dropDownList(ArrayHelper::map(app\modules\course\models\Batches::find()->where(['is_status' => 0])->all(), 'batch_id', 'batch_name', 'batchCourse.course_name'), ['class' => 'form-control', 'placeholder' => $model->getAttributeLabel('fees_collect_batch_id')]); } ?> </div> <div class="form-group col-xs-12 col-sm-6 col-lg-4 no-padding edusecArLangCss"> <div class="col-xs-6"> <?php echo Html::submitButton($model->isNewRecord ? Yii::t('fees', 'Create') : Yii::t('fees', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-block btn-success' : 'btn btn-block btn-info']); ?> </div> <div class="col-xs-6"> <?php echo Html::a(Yii::t('fees', 'Cancel'), ['index'], ['class' => 'btn btn-default btn-block']); ?> </div>
<div class="col-xs-12 col-sm-12 col-lg-12 no-padding"> <div class="col-xs-12 col-sm-6 col-lg-6"> <?php echo $form->field($model, 'stu_master_course_id')->dropDownList(ArrayHelper::map(app\modules\course\models\Courses::find()->where(['is_status' => 0])->all(), 'course_id', 'course_name'), ['prompt' => '---Select Course---', 'onchange' => ' $.get( "' . Url::toRoute('dependent/studbatch') . '", { id: $(this).val() } ) .done(function( data ) { $( "#' . Html::getInputId($model, 'stu_master_batch_id') . '" ).html( data ); } ); ']); ?> </div> <div class="col-xs-12 col-sm-6 col-lg-6"> <?php echo $form->field($model, 'stu_master_batch_id')->dropDownList(ArrayHelper::map(app\modules\course\models\Batches::find()->where(['batch_course_id' => $model->stu_master_course_id, 'is_status' => 0])->all(), 'batch_id', 'batch_name'), ['prompt' => '---Select Batch---', 'onchange' => ' $.get( "' . Url::toRoute('dependent/studsection') . '", { id: $(this).val() } ) .done(function( data ) { $( "#' . Html::getInputId($model, 'stu_master_section_id') . '" ).html( data ); } );']); ?> </div> </div> <div class="col-xs-12 col-sm-12 col-lg-12 no-padding"> <div class="col-xs-12 col-sm-6 col-lg-6"> <?php echo $form->field($model, 'stu_master_section_id')->dropDownList(ArrayHelper::map(app\modules\course\models\Section::find()->where(['section_batch_id' => $model->stu_master_batch_id, 'is_status' => 0])->all(), 'section_id', 'section_name'), ['' => '---Select Section---']); ?> </div>
} ?> </div> </div> </div> <div class="col-xs-12" style="padding-top: 10px;"> <div class="box"> <div class="box-body table-responsive"> <div class="stu-master-index"> <?php $visible = Yii::$app->user->can("/student/stu-master/view") ? true : false; ?> <?php Pjax::begin(['enablePushState' => false]); ?> <?php echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'summary' => '', 'columns' => [['class' => 'yii\\grid\\SerialColumn'], ['label' => Yii::t('stu', 'Student ID'), 'attribute' => 'stu_unique_id', 'value' => 'stuMasterStuInfo.stu_unique_id'], ['label' => Yii::t('stu', 'First Name'), 'attribute' => 'stu_first_name', 'value' => 'stuMasterStuInfo.stu_first_name'], ['label' => Yii::t('stu', 'Last Name'), 'attribute' => 'stu_last_name', 'value' => 'stuMasterStuInfo.stu_last_name'], ['label' => Yii::t('stu', 'Section'), 'attribute' => 'stu_master_section_id', 'value' => 'stuMasterSection.section_name', 'filter' => ArrayHelper::map(app\modules\course\models\Section::find()->where(['is_status' => 0])->all(), 'section_id', 'section_name', 'sectionBatch.batch_name')], ['label' => Yii::t('stu', 'Batch'), 'attribute' => 'stu_master_batch_id', 'value' => 'stuMasterBatch.batch_name', 'filter' => ArrayHelper::map(app\modules\course\models\Batches::find()->where(['is_status' => 0])->all(), 'batch_id', 'batch_name', 'batchCourse.course_name')], ['label' => Yii::t('stu', 'Course'), 'attribute' => 'stu_master_course_id', 'value' => 'stuMasterCourse.course_name', 'filter' => ArrayHelper::map(app\modules\course\models\Courses::find()->where(['is_status' => 0])->all(), 'course_id', 'course_name')], ['class' => 'app\\components\\CustomActionColumn', 'template' => '{view} {delete}', 'buttons' => ['view' => function ($url, $model) { return Yii::$app->user->can("/student/stu-master/view") ? Html::a('<span class="glyphicon glyphicon-search"></span>', $url, ['title' => Yii::t('stu', 'View')]) : ''; }, 'delete' => function ($url, $model) { return Yii::$app->user->can("/student/stu-master/delete") ? Html::a('<span class="glyphicon glyphicon-remove"></span>', $url, ['title' => Yii::t('stu', 'Delete'), 'data' => ['confirm' => Yii::t('stu', 'Are you sure you want to delete this item?'), 'method' => 'post']]) : ''; }], 'visible' => $visible]]]); ?> <?php Pjax::end(); ?> </div> </div> </div> </div>
$this->params['breadcrumbs'][] = ['label' => $this->title, 'url' => ['collect']]; ?> <!---Start Select Fees Collection Category---> <div class="box-info box box-solid view-item col-xs-12 col-lg-12 no-padding"> <div class="box-header with-border"> <h3 class="box-title"><i class="fa fa-search"></i> Select Criteria</h3> </div> <div class="box-body no-padding"> <?php $form = ActiveForm::begin(['id' => 'fees-collect-form', 'fieldConfig' => ['template' => "{label}{input}{error}"]]); ?> <div class="col-md-6"> <?php echo $form->field($FccModel, 'fees_collect_batch_id')->dropDownList(ArrayHelper::map(app\modules\course\models\Batches::find()->where(['is_status' => 0])->all(), 'batch_id', 'batch_name', 'batchCourse.course_name'), ['prompt' => 'Select Batch', 'onchange' => ' $.get("' . Url::toRoute('dependent/get-fees-category') . '", { id: $(this).val() } ) .done(function( data ) { $( "#' . Html::getInputId($FccModel, 'fees_collect_category_id') . '" ).html( data ); } );']); $fccData = []; if (!empty($FccModel->fees_collect_batch_id)) { $fccData = ArrayHelper::map(app\modules\fees\models\FeesCollectCategory::find()->where(['is_status' => 0, 'fees_collect_batch_id' => $FccModel->fees_collect_batch_id])->all(), 'fees_collect_category_id', 'fees_collect_name'); } ?> </div> <div class="col-md-6"> <?php echo $form->field($FccModel, 'fees_collect_category_id')->dropDownList($fccData, ['prompt' => 'Select Fees Category', 'onchange' => 'this.form.submit()']);
<div class="section-form"> <?php $form = ActiveForm::begin(['id' => 'section-form', 'enableAjaxValidation' => true, 'fieldConfig' => ['template' => "{label}{input}{error}"]]); ?> <div class="col-xs-12 col-sm-12 col-lg-12"> <?php echo $form->field($model, 'section_name')->textInput(['maxlength' => 50, 'placeholder' => $model->getAttributeLabel('section_name')]); ?> </div> <div class="col-xs-12 col-lg-12 no-padding"> <div class="col-xs-12 col-sm-6 col-lg-6"> <?php echo $form->field($model, 'section_batch_id')->dropDownList(ArrayHelper::map(app\modules\course\models\Batches::find()->all(), 'batch_id', 'batch_name'), ['prompt' => Yii::t('stu', '--- Select Batch ---')]); ?> </div> <div class="col-xs-12 col-sm-6 col-lg-6"> <?php echo $form->field($model, 'intake')->textInput(['placeholder' => $model->getAttributeLabel('intake')]); ?> </div> </div> <div class="form-group col-xs-12 col-sm-6 col-lg-4 no-padding edusecArLangCss"> <div class="col-xs-6"> <?php echo Html::submitButton($model->isNewRecord ? Yii::t('course', 'Create') : Yii::t('course', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-block btn-success' : 'btn btn-block btn-info']); ?>
<?php echo Html::a(Yii::t('fees', 'EXCEL'), ['/export-data/export-excel', 'model' => get_class($searchModel)], ['class' => 'btn btn-block btn-primary', 'target' => '_blank']); ?> </div> </div> </div> <div class="col-xs-12" style="padding-top: 10px;"> <div class="box"> <div class="box-body table-responsive"> <div class="fees-collect-category-index"> <?php Pjax::begin(['enablePushState' => false]); ?> <?php echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'summary' => '', 'columns' => [['class' => 'yii\\grid\\SerialColumn'], 'fees_collect_name', 'fees_collect_details', ['attribute' => 'fees_collect_batch_id', 'value' => 'feesCollectBatch.batch_name', 'filter' => ArrayHelper::map(app\modules\course\models\Batches::find()->where(['is_status' => 0])->all(), 'batch_id', 'batch_name', 'batchCourse.course_name')], ['attribute' => 'fees_collect_start_date', 'value' => function ($model) { return Yii::$app->formatter->asDate($model->fees_collect_start_date); }, 'filter' => \yii\jui\DatePicker::widget(['model' => $searchModel, 'attribute' => 'fees_collect_start_date', 'clientOptions' => ['dateFormat' => 'dd-mm-yyyy', 'changeMonth' => true, 'changeYear' => true, 'defaultValue' => null, 'yearRange' => '1900:' . (date('Y') + 1), 'defaultDate' => null], 'options' => ['class' => 'form-control', 'value' => NULL]]), 'format' => 'html'], ['attribute' => 'fees_collect_end_date', 'value' => function ($model) { return Yii::$app->formatter->asDate($model->fees_collect_end_date); }, 'filter' => \yii\jui\DatePicker::widget(['model' => $searchModel, 'attribute' => 'fees_collect_end_date', 'clientOptions' => ['dateFormat' => 'dd-mm-yyyy', 'changeMonth' => true, 'changeYear' => true, 'defaultValue' => null, 'yearRange' => '1900:' . (date('Y') + 1), 'defaultDate' => null], 'options' => ['class' => 'form-control', 'value' => NULL]]), 'format' => 'html'], ['attribute' => 'fees_collect_due_date', 'value' => function ($model) { return Yii::$app->formatter->asDate($model->fees_collect_due_date); }, 'filter' => \yii\jui\DatePicker::widget(['model' => $searchModel, 'attribute' => 'fees_collect_due_date', 'clientOptions' => ['dateFormat' => 'dd-mm-yyyy', 'changeMonth' => true, 'changeYear' => true, 'defaultValue' => null, 'yearRange' => '1900:' . (date('Y') + 1), 'defaultDate' => null], 'options' => ['class' => 'form-control', 'value' => NULL]]), 'format' => 'html'], ['header' => Yii::t('fees', 'Add Fees Details'), 'class' => 'yii\\grid\\ActionColumn', 'template' => '{add_sub_head}', 'buttons' => ['add_sub_head' => function ($url, $model) { $url = \Yii::$app->getUrlManager()->createUrl(["fees/fees-category-details/create", 'fcc_id' => $model->fees_collect_category_id]); return Html::a('<span class="glyphicon glyphicon-plus text-aqua"></span>', $url, ['title' => Yii::t('yii', 'Add Sub Head'), 'class' => 'text-center', 'style' => 'font-size:20px']); }], 'contentOptions' => ['style' => 'text-align:center']], ['class' => '\\pheme\\grid\\ToggleColumn', 'attribute' => 'is_status', 'enableAjax' => false, 'filter' => ['0' => 'Active', '1' => 'Inactive'], 'contentOptions' => ['class' => 'text-center']], ['class' => 'app\\components\\CustomActionColumn']]]); Pjax::end(); ?> </div> </div> </div> </div>