import { Component, OnInit } from '@angular/core';
import { ModalDirective } from 'ngx-bootstrap/modal';

@Component({
  templateUrl: 'student.component.html',
  styleUrls:['./student.component.scss']
})
export class StudentComponent implements OnInit {
  show = false;
  closed = false;
  public myModal;
  public myModalData;
  public modelType: string;
  students: any;
  oldReg: boolean = false;
  constructor() { }
  ngOnInit(){
    this.students = [
      {
        formId: 'KAN00128',
        studentName: 'xyz',
        fatherName: 'mmm mmm',
        mobile: '+919876543210',
        course: 'B.Sc',
        univ: 'KR university',
        sem: 2,
        batch: 'Jan 2018',
        status: '1'
      },
      {
        formId: 'KAN00107',
        studentName: 'abc',
        fatherName: 'sss sss',
        mobile: '+919876511111',
        course: 'B.Sc',
        univ: 'KR university',
        sem: 4,
        batch: 'Jan 2018',
        status: '1'
      },
      {
        formId: 'KAN00086',
        studentName: 'uvw',
        fatherName: 'nnn nnn',
        mobile: '+919876500000',
        course: 'B.Sc',
        univ: 'KR university',
        sem: 8,
        batch: 'Jan 2018',
        status: '0'
      }
    ]
  }
  getModelWindowDetails(emp, type) {
    this.myModalData = emp||null;
    this.modelType = type;
  }

  editEmployee(){
     this.show = !this.show;
  }
}
