Blame view

src/pages/Students/students.vue 102 KB
e3e2a04c6   Neeraj Sharma   first commit
1
  <template>
a17c68a03   Neeraj Sharma   implement two rou...
2
    <div>
687e0b929   Neeraj Sharma   add user,attenden...
3
      <v-tabs grow slider-color="gray">
b82d0d998   Neeraj Sharma   changes and modif...
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
        <v-tab
          ripple
          @click="activeTab('existing')"
          v-bind:class="{ active: isActive }"
          id="tab"
          class="subheading"
        >Existing Students</v-tab>
        <v-tab
          ripple
          @click="activeTab('new')"
          v-bind:class="{ active: newActive }"
          id="tab1"
          User
          class="subheading"
        >Add New Students</v-tab>
  
        <!-- ****** EDITS  STUDENTS DETAILS ****** -->
  
        <v-tab-item>
          <v-snackbar
            :timeout="timeout"
            :top="y === 'top'"
            :right="x === 'right'"
            :vertical="mode === 'vertical'"
            v-model="snackbar"
            color="success"
          >{{ text }}</v-snackbar>
0cd2fbfba   Neeraj Sharma   implement create ...
31
          <v-dialog v-model="dialog" max-width="170 0px" scrollable>
6c05a9f84   Neeraj Sharma   add functionalit ...
32
            <v-card flat>
04165779e   Neeraj Sharma   implement parents...
33
              <v-toolbar color="grey lighten-2" flat>
b82d0d998   Neeraj Sharma   changes and modif...
34
                <v-spacer></v-spacer>
04165779e   Neeraj Sharma   implement parents...
35
36
37
                <v-toolbar-title>
                  <h3>Edit Student Profile</h3>
                </v-toolbar-title>
b82d0d998   Neeraj Sharma   changes and modif...
38
39
                <v-spacer></v-spacer>
              </v-toolbar>
0cd2fbfba   Neeraj Sharma   implement create ...
40
              <v-card-text style="height: 680px;">
b82d0d998   Neeraj Sharma   changes and modif...
41
42
43
44
45
                <v-form ref="form">
                  <v-container fluid>
                    <v-layout>
                      <v-flex
                        xs12
0cd2fbfba   Neeraj Sharma   implement create ...
46
                        class="text-xs-center text-sm-center text-md-center text-lg-center"
b82d0d998   Neeraj Sharma   changes and modif...
47
                      >
79006bdcb   Neeraj Sharma   uplaod images all...
48
                        <v-avatar size="160px">
79006bdcb   Neeraj Sharma   uplaod images all...
49
                          <img
04165779e   Neeraj Sharma   implement parents...
50
                            src="/static/icon/user.png"
3815afe8c   Neeraj Sharma   fixed all bugs in...
51
                            v-if="!editedItem.profilePicUrl && !editImageUrl"
04165779e   Neeraj Sharma   implement parents...
52
53
54
                          />
                          <img
                            :src="editedItem.profilePicUrl"
3815afe8c   Neeraj Sharma   fixed all bugs in...
55
                            v-else-if="editedItem.profilePicUrl && !editImageUrl"
04165779e   Neeraj Sharma   implement parents...
56
57
                          />
                          <img
3815afe8c   Neeraj Sharma   fixed all bugs in...
58
59
                            v-if="editImageUrl"
                            :src="editImageUrl"
04165779e   Neeraj Sharma   implement parents...
60
61
62
                            height="150"
                            style="border-radius:50%; width:200px"
                          />
b82d0d998   Neeraj Sharma   changes and modif...
63
64
65
66
                        </v-avatar>
                        <input
                          type="file"
                          style="display: none"
3815afe8c   Neeraj Sharma   fixed all bugs in...
67
                          ref="editDataImage"
b82d0d998   Neeraj Sharma   changes and modif...
68
                          accept="image/*"
3815afe8c   Neeraj Sharma   fixed all bugs in...
69
                          @change="onEditFilePicked"
04165779e   Neeraj Sharma   implement parents...
70
                        />
b82d0d998   Neeraj Sharma   changes and modif...
71
72
73
                      </v-flex>
                    </v-layout>
                    <v-layout>
506be6fd7   Neeraj Sharma   implemet dyamic i...
74
                      <v-flex xs12 sm4>
b82d0d998   Neeraj Sharma   changes and modif...
75
76
                        <v-layout>
                          <v-flex xs4 class="pt-4 subheading">
aa8fc5033   Neeraj Sharma   implenment all pa...
77
78
                            <label class="right hidden-xs-only hidden-sm-only">Select Class:</label>
                            <label class="right hidden-lg-only hidden-md-only hidden-xl-only">Class:</label>
b82d0d998   Neeraj Sharma   changes and modif...
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
                          </v-flex>
                          <v-flex xs8 class="ml-3">
                            <v-select
                              :items="addclass"
                              label="Select Class"
                              v-model="editedItem.select"
                              item-text="classNum"
                              item-value="_id"
                              name="Select Class"
                              @change="getSections(editedItem.select)"
                              required
                            ></v-select>
                          </v-flex>
                        </v-layout>
                      </v-flex>
506be6fd7   Neeraj Sharma   implemet dyamic i...
94
                      <v-flex xs12 sm4>
b82d0d998   Neeraj Sharma   changes and modif...
95
96
                        <v-layout>
                          <v-flex xs4 class="pt-4 subheading">
aa8fc5033   Neeraj Sharma   implenment all pa...
97
98
                            <label class="right hidden-xs-only hidden-sm-only">Select Section:</label>
                            <label class="right hidden-lg-only hidden-md-only hidden-xl-only">Section:</label>
b82d0d998   Neeraj Sharma   changes and modif...
99
100
101
102
103
104
105
106
107
108
109
110
111
112
                          </v-flex>
                          <v-flex xs8 class="ml-3">
                            <v-select
                              :items="addSection"
                              label="Select Section"
                              v-model="editedItem.selectSection"
                              item-text="name"
                              item-value="_id"
                              name="Select Section"
                              required
                            ></v-select>
                          </v-flex>
                        </v-layout>
                      </v-flex>
04165779e   Neeraj Sharma   implement parents...
113
                      <v-flex xs12 sm4>
b82d0d998   Neeraj Sharma   changes and modif...
114
115
                        <v-layout>
                          <v-flex xs4 class="pt-4 subheading">
aa8fc5033   Neeraj Sharma   implenment all pa...
116
117
                            <label class="right hidden-xs-only hidden-sm-only">Full Name:</label>
                            <label class="right hidden-lg-only hidden-md-only hidden-xl-only">Name:</label>
b82d0d998   Neeraj Sharma   changes and modif...
118
119
120
121
122
123
124
125
126
127
128
129
                          </v-flex>
                          <v-flex xs8 class="ml-3">
                            <v-text-field
                              v-model="editedItem.name"
                              placeholder="fill your full Name"
                              name="name"
                              type="text"
                              required
                            ></v-text-field>
                          </v-flex>
                        </v-layout>
                      </v-flex>
506be6fd7   Neeraj Sharma   implemet dyamic i...
130
131
132
                    </v-layout>
                    <v-layout>
                      <v-flex xs12 sm4>
b82d0d998   Neeraj Sharma   changes and modif...
133
134
                        <v-layout>
                          <v-flex xs4 class="pt-4 subheading">
0721aca93   Neeraj Sharma   solve bugs in sub...
135
136
                            <label class="right hidden-xs-only hidden-sm-only">Email Id:</label>
                            <label class="right hidden-lg-only hidden-md-only hidden-xl-only">Email:</label>
b82d0d998   Neeraj Sharma   changes and modif...
137
138
139
140
141
142
143
144
145
146
147
148
                          </v-flex>
                          <v-flex xs8 class="ml-3">
                            <v-text-field
                              placeholder="fill your email"
                              v-model="editedItem.email"
                              type="text"
                              name="email"
                              required
                            ></v-text-field>
                          </v-flex>
                        </v-layout>
                      </v-flex>
506be6fd7   Neeraj Sharma   implemet dyamic i...
149
                      <v-flex xs12 sm4>
b82d0d998   Neeraj Sharma   changes and modif...
150
151
                        <v-layout>
                          <v-flex xs4 class="pt-4 subheading">
aa8fc5033   Neeraj Sharma   implenment all pa...
152
153
                            <label class="right hidden-sm-only hidden-xs-only">Date of Birth:</label>
                            <label class="right hidden-lg-only hidden-xl-only hidden-md-only">D.O.B:</label>
b82d0d998   Neeraj Sharma   changes and modif...
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
                          </v-flex>
                          <v-flex xs8 class="ml-3">
                            <v-menu
                              ref="menu"
                              :close-on-content-click="false"
                              v-model="menu1"
                              :nudge-right="40"
                              lazy
                              transition="scale-transition"
                              offset-y
                              full-width
                              min-width="290px"
                            >
                              <v-text-field
                                slot="activator"
506be6fd7   Neeraj Sharma   implemet dyamic i...
169
170
                                v-model="editedItem.dob"
                                placeholder="Select Dob"
b82d0d998   Neeraj Sharma   changes and modif...
171
172
173
                              ></v-text-field>
                              <v-date-picker
                                ref="picker"
506be6fd7   Neeraj Sharma   implemet dyamic i...
174
                                v-model="editedItem.dob"
b82d0d998   Neeraj Sharma   changes and modif...
175
176
177
178
179
180
181
182
                                :max="new Date().toISOString().substr(0, 10)"
                                min="1950-01-01"
                                @input="menu1 = false"
                              ></v-date-picker>
                            </v-menu>
                          </v-flex>
                        </v-layout>
                      </v-flex>
506be6fd7   Neeraj Sharma   implemet dyamic i...
183
                      <v-flex xs12 sm4>
b82d0d998   Neeraj Sharma   changes and modif...
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
                        <v-layout>
                          <v-flex xs4 class="pt-4 subheading">
                            <label class="right">City:</label>
                          </v-flex>
                          <v-flex xs8 class="ml-3">
                            <v-text-field
                              v-model="editedItem.city"
                              placeholder="fill your City Name"
                              name="City"
                              type="text"
                              required
                            ></v-text-field>
                          </v-flex>
                        </v-layout>
                      </v-flex>
                    </v-layout>
04165779e   Neeraj Sharma   implement parents...
200
                    <v-layout>
99ffa9511   Neeraj Sharma   add ,view, and ed...
201
202
203
                      <v-flex xs12 sm4>
                        <v-layout>
                          <v-flex xs4 class="pt-4 subheading">
aa8fc5033   Neeraj Sharma   implenment all pa...
204
205
                            <label class="right hidden-xs-only hidden-sm-only">Blood Group:</label>
                            <label class="right hidden-lg-only hidden-md-only hidden-xl-only">Blood:</label>
99ffa9511   Neeraj Sharma   add ,view, and ed...
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
                          </v-flex>
                          <v-flex xs8 class="ml-3">
                            <v-text-field
                              v-model="editedItem.bloodGroup"
                              placeholder="fill your BloodGroup"
                              name="state"
                              type="text"
                              required
                            ></v-text-field>
                          </v-flex>
                        </v-layout>
                      </v-flex>
                      <v-flex xs12 sm4>
                        <v-layout>
                          <v-flex xs4 class="pt-4 subheading">
0721aca93   Neeraj Sharma   solve bugs in sub...
221
                            <label class="right">Gender:</label>
99ffa9511   Neeraj Sharma   add ,view, and ed...
222
223
                          </v-flex>
                          <v-flex xs8 class="ml-3">
0721aca93   Neeraj Sharma   solve bugs in sub...
224
225
226
227
                            <v-select
                              :items="gender"
                              v-model="editedItem.gender"
                              placeholder="Select Gender"
99ffa9511   Neeraj Sharma   add ,view, and ed...
228
                              required
0721aca93   Neeraj Sharma   solve bugs in sub...
229
                            ></v-select>
99ffa9511   Neeraj Sharma   add ,view, and ed...
230
231
232
233
234
235
236
237
238
239
240
241
                          </v-flex>
                        </v-layout>
                      </v-flex>
                      <v-flex xs12 sm4>
                        <v-layout>
                          <v-flex xs4 class="pt-4 subheading">
                            <label class="right">Medical Notes:</label>
                          </v-flex>
                          <v-flex xs8 class="ml-3">
                            <v-text-field
                              v-model="editedItem.medicalNotes"
                              placeholder="fill your medicalNotes"
99ffa9511   Neeraj Sharma   add ,view, and ed...
242
243
244
245
246
247
                              required
                            ></v-text-field>
                          </v-flex>
                        </v-layout>
                      </v-flex>
                    </v-layout>
04165779e   Neeraj Sharma   implement parents...
248
                    <v-layout>
99ffa9511   Neeraj Sharma   add ,view, and ed...
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
                      <v-flex xs12 sm4>
                        <v-layout>
                          <v-flex xs4 class="pt-4 subheading">
                            <label class="right">Height:</label>
                          </v-flex>
                          <v-flex xs8 class="ml-3">
                            <v-text-field
                              v-model="editedItem.height"
                              placeholder="fill your Height"
                              name="state"
                              type="text"
                              required
                            ></v-text-field>
                          </v-flex>
                        </v-layout>
                      </v-flex>
                      <v-flex xs12 sm4>
                        <v-layout>
                          <v-flex xs4 class="pt-4 subheading">
                            <label class="right">Weight:</label>
                          </v-flex>
                          <v-flex xs8 class="ml-3">
                            <v-text-field
                              v-model="editedItem.weight"
                              placeholder="fill your Weight"
                              name="pincode"
                              required
                            ></v-text-field>
                          </v-flex>
                        </v-layout>
                      </v-flex>
                      <v-flex xs12 sm4>
                        <v-layout>
                          <v-flex xs4 class="pt-4 subheading">
aa8fc5033   Neeraj Sharma   implenment all pa...
283
                            <label class="right hidden-xs-only hidden-sm-only">Uplaod Image:</label>
0cd2fbfba   Neeraj Sharma   implement create ...
284
                            <label class="right hidden-lg-only hidden-md-only hidden-xl-only">Uplaod:</label>
99ffa9511   Neeraj Sharma   add ,view, and ed...
285
286
287
288
                          </v-flex>
                          <v-flex xs8 class="ml-3">
                            <v-text-field
                              label="Select Image"
3815afe8c   Neeraj Sharma   fixed all bugs in...
289
290
                              @click="pickEditFile"
                              v-model="editImageName"
99ffa9511   Neeraj Sharma   add ,view, and ed...
291
292
293
294
295
296
                              append-icon="attach_file"
                            ></v-text-field>
                          </v-flex>
                        </v-layout>
                      </v-flex>
                    </v-layout>
b82d0d998   Neeraj Sharma   changes and modif...
297
                    <v-layout>
506be6fd7   Neeraj Sharma   implemet dyamic i...
298
                      <v-flex xs12 sm4>
b82d0d998   Neeraj Sharma   changes and modif...
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
                        <v-layout>
                          <v-flex xs4 class="pt-4 subheading">
                            <label class="right">State:</label>
                          </v-flex>
                          <v-flex xs8 class="ml-3">
                            <v-text-field
                              v-model="editedItem.state"
                              placeholder="fill your State Name"
                              name="state"
                              type="text"
                              required
                            ></v-text-field>
                          </v-flex>
                        </v-layout>
                      </v-flex>
506be6fd7   Neeraj Sharma   implemet dyamic i...
314
                      <v-flex xs12 sm4>
b82d0d998   Neeraj Sharma   changes and modif...
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
                        <v-layout>
                          <v-flex xs4 class="pt-4 subheading">
                            <label class="right">Pincode:</label>
                          </v-flex>
                          <v-flex xs8 class="ml-3">
                            <v-text-field
                              v-model="editedItem.pincode"
                              placeholder="fill your pincode"
                              name="pincode"
                              type="number"
                              required
                            ></v-text-field>
                          </v-flex>
                        </v-layout>
                      </v-flex>
506be6fd7   Neeraj Sharma   implemet dyamic i...
330
                      <v-flex xs12 sm4>
b82d0d998   Neeraj Sharma   changes and modif...
331
332
                        <v-layout>
                          <v-flex xs4 class="pt-4 subheading">
aa8fc5033   Neeraj Sharma   implenment all pa...
333
334
                            <label class="right hidden-xs-only hidden-sm-only">Mobile No:</label>
                            <label class="right hidden-lg-only hidden-md-only hidden-xl-only">Mobile:</label>
b82d0d998   Neeraj Sharma   changes and modif...
335
336
337
338
339
340
341
342
343
344
345
346
                          </v-flex>
                          <v-flex xs8 class="ml-3">
                            <v-text-field
                              v-model="editedItem.mobile"
                              placeholder="fill your MobileNo"
                              name="mobileNo"
                              type="number"
                              required
                            ></v-text-field>
                          </v-flex>
                        </v-layout>
                      </v-flex>
506be6fd7   Neeraj Sharma   implemet dyamic i...
347
348
349
                    </v-layout>
                    <v-layout>
                      <v-flex xs12 sm4>
b82d0d998   Neeraj Sharma   changes and modif...
350
351
                        <v-layout>
                          <v-flex xs4 class="pt-4 subheading">
aa8fc5033   Neeraj Sharma   implenment all pa...
352
353
                            <label class="right hidden-xs-only hidden-sm-only">Select Country:</label>
                            <label class="right hidden-lg-only hidden-md-only hidden-xl-only">Country:</label>
b82d0d998   Neeraj Sharma   changes and modif...
354
355
356
357
358
359
360
                          </v-flex>
                          <v-flex xs8 class="ml-3">
                            <v-autocomplete
                              v-model="editedItem.country"
                              :items="countries"
                              placeholder="Select Country Name"
                              required
04165779e   Neeraj Sharma   implement parents...
361
                            ></v-autocomplete>
99ffa9511   Neeraj Sharma   add ,view, and ed...
362
363
364
                          </v-flex>
                        </v-layout>
                      </v-flex>
04165779e   Neeraj Sharma   implement parents...
365
                      <v-flex xs12 sm4>
99ffa9511   Neeraj Sharma   add ,view, and ed...
366
367
                        <v-layout>
                          <v-flex xs4 class="pt-4 subheading">
aa8fc5033   Neeraj Sharma   implenment all pa...
368
369
                            <label class="right hidden-xs-only hidden-sm-only">Roll Number:</label>
                            <label class="right hidden-lg-only hidden-md-only hidden-xl-only">Roll No:</label>
af4cbc7be   Neeraj Sharma   add field roll nu...
370
371
372
373
374
375
376
377
378
379
380
                          </v-flex>
                          <v-flex xs8 class="ml-3">
                            <v-text-field
                              :items="gender"
                              v-model="editedItem.rollNo"
                              placeholder="fill roll number"
                              required
                            ></v-text-field>
                          </v-flex>
                        </v-layout>
                      </v-flex>
0721aca93   Neeraj Sharma   solve bugs in sub...
381
                      <v-flex xs12 sm4 class="hidden-xs-only hidden-sm-only">
aa8fc5033   Neeraj Sharma   implenment all pa...
382
                        <v-layout>
0cd2fbfba   Neeraj Sharma   implement create ...
383
384
385
386
387
                          <v-flex xs4 sm4 class="pt-4 subheading">
                            <label class="right hidden-xs-only hidden-sm-only">Permanent Address:</label>
                            <label
                              class="right hidden-lg-only hidden-md-only hidden-xl-only"
                            >Permanent Address:</label>
aa8fc5033   Neeraj Sharma   implenment all pa...
388
                          </v-flex>
fc77c38e0   Neeraj Sharma   fixed all task ch...
389
                          <v-flex xs12 sm8 class="ml-3">
aa8fc5033   Neeraj Sharma   implenment all pa...
390
                            <v-text-field
0cd2fbfba   Neeraj Sharma   implement create ...
391
392
                              v-model="editedItem.permanentAddress"
                              placeholder="fill Your Permanent Address"
aa8fc5033   Neeraj Sharma   implenment all pa...
393
394
395
396
397
                              required
                            ></v-text-field>
                          </v-flex>
                        </v-layout>
                      </v-flex>
0721aca93   Neeraj Sharma   solve bugs in sub...
398
399
                    </v-layout>
                    <v-layout class="hidden-xs-only hidden-sm-only">
0cd2fbfba   Neeraj Sharma   implement create ...
400
                      <v-flex xs12 sm4>
aa8fc5033   Neeraj Sharma   implenment all pa...
401
                        <v-layout>
0cd2fbfba   Neeraj Sharma   implement create ...
402
403
404
405
406
                          <v-flex xs4 class="pt-4 subheading">
                            <label class="right hidden-xs-only hidden-sm-only">Present Address:</label>
                            <label
                              class="right hidden-lg-only hidden-md-only hidden-xl-only"
                            >Present Address:</label>
aa8fc5033   Neeraj Sharma   implenment all pa...
407
                          </v-flex>
0cd2fbfba   Neeraj Sharma   implement create ...
408
                          <v-flex xs8 class="ml-3">
aa8fc5033   Neeraj Sharma   implenment all pa...
409
                            <v-text-field
0cd2fbfba   Neeraj Sharma   implement create ...
410
411
                              v-model="editedItem.presentAddress"
                              placeholder="Select Country Name"
aa8fc5033   Neeraj Sharma   implenment all pa...
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
                              required
                            ></v-text-field>
                          </v-flex>
                        </v-layout>
                      </v-flex>
                    </v-layout>
                    <v-layout class="hidden-lg-only hidden-md-only hidden-xl-only">
                      <v-flex xs12 sm12>
                        <v-layout>
                          <v-flex xs12 sm3 class="pt-4 subheading text-xs-center">
                            <label class>Present Address :</label>
                          </v-flex>
                        </v-layout>
                        <v-layout>
                          <v-flex xs12 sm12>
                            <v-textarea
aa8fc5033   Neeraj Sharma   implenment all pa...
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
                              v-model="editedItem.presentAddress"
                              placeholder="fill Your present Address"
                              required
                            ></v-textarea>
                          </v-flex>
                        </v-layout>
                      </v-flex>
                      <v-flex xs12 sm12>
                        <v-layout>
                          <v-flex xs12 sm3 class="pt-4 pr-4 subheading text-xs-center addressForm">
                            <label>Permanent addr:</label>
                          </v-flex>
                        </v-layout>
                        <v-layout>
                          <v-flex xs12 sm12>
                            <v-textarea
                              name="input-4-3"
                              v-model="editedItem.permanentAddress"
                              placeholder="fill Your Permanent Address"
                              required
                            ></v-textarea>
                          </v-flex>
                        </v-layout>
                      </v-flex>
b82d0d998   Neeraj Sharma   changes and modif...
452
453
454
                    </v-layout>
                    <v-layout>
                      <v-flex xs12 sm12>
aa8fc5033   Neeraj Sharma   implenment all pa...
455
456
                        <v-layout>
                          <v-flex xs6>
f4df757fe   Neeraj Sharma   responsive vie in...
457
                            <v-btn round dark @click.native="close">Cancel</v-btn>
aa8fc5033   Neeraj Sharma   implenment all pa...
458
459
                          </v-flex>
                          <v-flex xs6>
3815afe8c   Neeraj Sharma   fixed all bugs in...
460
                            <v-btn @click="save" round dark :loading="editLoading" class="right">Save</v-btn>
aa8fc5033   Neeraj Sharma   implenment all pa...
461
462
                          </v-flex>
                        </v-layout>
b82d0d998   Neeraj Sharma   changes and modif...
463
464
465
466
                      </v-flex>
                    </v-layout>
                  </v-container>
                </v-form>
04165779e   Neeraj Sharma   implement parents...
467
468
469
470
471
              </v-card-text>
            </v-card>
          </v-dialog>
  
          <!-- ****** PROFILE VIEW STUDENTS DEATILS ******  -->
a0650f86b   Neeraj Sharma   implement class v...
472
          <v-dialog v-model="dialog1" max-width="1200px" scrollable>
f4df757fe   Neeraj Sharma   responsive vie in...
473
            <v-card>
04165779e   Neeraj Sharma   implement parents...
474
475
476
477
478
479
              <v-toolbar color="grey lighten-2" flat>
                <v-spacer></v-spacer>
                <v-toolbar-title>Student Profile</v-toolbar-title>
                <v-spacer></v-spacer>
                <v-icon @click="close1">close</v-icon>
              </v-toolbar>
6c05a9f84   Neeraj Sharma   add functionalit ...
480
              <v-card-text style="height: 700px;">
04165779e   Neeraj Sharma   implement parents...
481
482
483
484
485
486
487
488
                <v-flex align-center justify-center layout text-xs-center class="mt-3">
                  <v-avatar size="160px">
                    <img src="/static/icon/user.png" v-if="!editedItem.profilePicUrl" />
                    <img :src="editedItem.profilePicUrl" v-else-if="editedItem.profilePicUrl" />
                  </v-avatar>
                </v-flex>
                <v-container grid-list-md>
                  <v-layout wrap>
a0650f86b   Neeraj Sharma   implement class v...
489
                    <v-flex xs12 sm5>
f4df757fe   Neeraj Sharma   responsive vie in...
490
                      <v-layout>
a0650f86b   Neeraj Sharma   implement class v...
491
                        <v-flex xs6 sm6>
f4df757fe   Neeraj Sharma   responsive vie in...
492
493
494
                          <h5 class="right my-1">
                            <b>Full Name:</b>
                          </h5>
04165779e   Neeraj Sharma   implement parents...
495
                        </v-flex>
a0650f86b   Neeraj Sharma   implement class v...
496
                        <v-flex sm6 xs6>
f4df757fe   Neeraj Sharma   responsive vie in...
497
                          <h5 class="my-1 left">{{ editedItem.name }}</h5>
04165779e   Neeraj Sharma   implement parents...
498
499
                        </v-flex>
                      </v-layout>
f4df757fe   Neeraj Sharma   responsive vie in...
500
                    </v-flex>
a0650f86b   Neeraj Sharma   implement class v...
501
                    <v-flex xs12 sm7>
f4df757fe   Neeraj Sharma   responsive vie in...
502
503
504
505
506
                      <v-layout>
                        <v-flex xs6 sm4>
                          <h5 class="right my-1">
                            <b>Email:</b>
                          </h5>
04165779e   Neeraj Sharma   implement parents...
507
                        </v-flex>
f4df757fe   Neeraj Sharma   responsive vie in...
508
509
                        <v-flex sm8 xs6>
                          <h5 class="my-1 left">{{ editedItem.email }}</h5>
04165779e   Neeraj Sharma   implement parents...
510
511
                        </v-flex>
                      </v-layout>
f4df757fe   Neeraj Sharma   responsive vie in...
512
513
514
                    </v-flex>
                  </v-layout>
                  <v-layout wrap>
a0650f86b   Neeraj Sharma   implement class v...
515
                    <v-flex xs12 sm5>
f4df757fe   Neeraj Sharma   responsive vie in...
516
                      <v-layout>
a0650f86b   Neeraj Sharma   implement class v...
517
                        <v-flex xs6 sm6>
f4df757fe   Neeraj Sharma   responsive vie in...
518
519
520
521
522
                          <b>
                            <h5 class="right my-1">
                              <b>Gender:</b>
                            </h5>
                          </b>
04165779e   Neeraj Sharma   implement parents...
523
                        </v-flex>
a0650f86b   Neeraj Sharma   implement class v...
524
                        <v-flex sm6 xs6>
f4df757fe   Neeraj Sharma   responsive vie in...
525
                          <h5 class="my-1 left">{{ editedItem.gender }}</h5>
04165779e   Neeraj Sharma   implement parents...
526
527
                        </v-flex>
                      </v-layout>
f4df757fe   Neeraj Sharma   responsive vie in...
528
                    </v-flex>
a0650f86b   Neeraj Sharma   implement class v...
529
                    <v-flex xs12 sm7>
f4df757fe   Neeraj Sharma   responsive vie in...
530
531
532
533
534
535
536
                      <v-layout>
                        <v-flex xs6 sm4>
                          <b>
                            <h5 class="right my-1">
                              <b>D.O.B:</b>
                            </h5>
                          </b>
04165779e   Neeraj Sharma   implement parents...
537
                        </v-flex>
a0650f86b   Neeraj Sharma   implement class v...
538
                        <v-flex sm8 xs6>
f4df757fe   Neeraj Sharma   responsive vie in...
539
                          <h5 class="my-1">{{ dates(editedItem.dob) }}</h5>
04165779e   Neeraj Sharma   implement parents...
540
541
                        </v-flex>
                      </v-layout>
f4df757fe   Neeraj Sharma   responsive vie in...
542
543
544
                    </v-flex>
                  </v-layout>
                  <v-layout wrap>
a0650f86b   Neeraj Sharma   implement class v...
545
                    <v-flex xs12 sm5>
f4df757fe   Neeraj Sharma   responsive vie in...
546
                      <v-layout>
a0650f86b   Neeraj Sharma   implement class v...
547
                        <v-flex xs6 sm6>
f4df757fe   Neeraj Sharma   responsive vie in...
548
549
550
551
552
                          <b>
                            <h5 class="right my-1">
                              <b>Blood Group:</b>
                            </h5>
                          </b>
04165779e   Neeraj Sharma   implement parents...
553
                        </v-flex>
a0650f86b   Neeraj Sharma   implement class v...
554
                        <v-flex sm6 xs6>
f4df757fe   Neeraj Sharma   responsive vie in...
555
                          <h5 class="my-1 left">{{ editedItem.bloodGroup }}</h5>
04165779e   Neeraj Sharma   implement parents...
556
557
                        </v-flex>
                      </v-layout>
f4df757fe   Neeraj Sharma   responsive vie in...
558
                    </v-flex>
a0650f86b   Neeraj Sharma   implement class v...
559
                    <v-flex xs12 sm7>
0721aca93   Neeraj Sharma   solve bugs in sub...
560
561
562
563
564
565
566
567
                      <v-layout>
                        <v-flex xs6 sm4>
                          <b>
                            <h5 class="right my-1">
                              <b>Roll No. :</b>
                            </h5>
                          </b>
                        </v-flex>
a0650f86b   Neeraj Sharma   implement class v...
568
                        <v-flex sm8 xs6>
0721aca93   Neeraj Sharma   solve bugs in sub...
569
570
571
                          <h5 class="my-1">{{ editedItem.rollNo }}</h5>
                        </v-flex>
                      </v-layout>
f4df757fe   Neeraj Sharma   responsive vie in...
572
573
574
                    </v-flex>
                  </v-layout>
                  <v-layout wrap>
a0650f86b   Neeraj Sharma   implement class v...
575
                    <v-flex xs12 sm5>
f4df757fe   Neeraj Sharma   responsive vie in...
576
                      <v-layout>
a0650f86b   Neeraj Sharma   implement class v...
577
                        <v-flex xs6 sm6>
f4df757fe   Neeraj Sharma   responsive vie in...
578
579
580
581
582
                          <b>
                            <h5 class="right my-1">
                              <b>Height:</b>
                            </h5>
                          </b>
04165779e   Neeraj Sharma   implement parents...
583
                        </v-flex>
a0650f86b   Neeraj Sharma   implement class v...
584
                        <v-flex sm6 xs6>
f4df757fe   Neeraj Sharma   responsive vie in...
585
586
587
588
                          <h5 class="my-1 left">{{ editedItem.height }}</h5>
                        </v-flex>
                      </v-layout>
                    </v-flex>
a0650f86b   Neeraj Sharma   implement class v...
589
                    <v-flex xs12 sm7>
f4df757fe   Neeraj Sharma   responsive vie in...
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
                      <v-layout>
                        <v-flex xs6 sm4>
                          <b>
                            <h5 class="right my-1">
                              <b>Weight:</b>
                            </h5>
                          </b>
                        </v-flex>
                        <v-flex sm8 xs6>
                          <h5 class="my-1">{{ editedItem.weight }}</h5>
                        </v-flex>
                      </v-layout>
                    </v-flex>
                  </v-layout>
                  <v-layout wrap>
a0650f86b   Neeraj Sharma   implement class v...
605
                    <v-flex xs12 sm5>
f4df757fe   Neeraj Sharma   responsive vie in...
606
                      <v-layout>
a0650f86b   Neeraj Sharma   implement class v...
607
                        <v-flex xs6 sm6>
f4df757fe   Neeraj Sharma   responsive vie in...
608
609
610
611
612
613
                          <b>
                            <h5 class="right my-1">
                              <b>City:</b>
                            </h5>
                          </b>
                        </v-flex>
a0650f86b   Neeraj Sharma   implement class v...
614
                        <v-flex sm6 xs6>
f4df757fe   Neeraj Sharma   responsive vie in...
615
616
617
618
                          <h5 class="my-1 left">{{ editedItem.city }}</h5>
                        </v-flex>
                      </v-layout>
                    </v-flex>
a0650f86b   Neeraj Sharma   implement class v...
619
                    <v-flex xs12 sm7>
f4df757fe   Neeraj Sharma   responsive vie in...
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
                      <v-layout>
                        <v-flex xs6 sm4>
                          <b>
                            <h5 class="right my-1">
                              <b>State:</b>
                            </h5>
                          </b>
                        </v-flex>
                        <v-flex sm8 xs6>
                          <h5 class="my-1">{{ editedItem.state }}</h5>
                        </v-flex>
                      </v-layout>
                    </v-flex>
                  </v-layout>
                  <v-layout wrap>
a0650f86b   Neeraj Sharma   implement class v...
635
                    <v-flex xs12 sm5>
f4df757fe   Neeraj Sharma   responsive vie in...
636
                      <v-layout>
a0650f86b   Neeraj Sharma   implement class v...
637
                        <v-flex xs6 sm6>
f4df757fe   Neeraj Sharma   responsive vie in...
638
639
640
641
642
643
                          <b>
                            <h5 class="right my-1">
                              <b>Pincode:</b>
                            </h5>
                          </b>
                        </v-flex>
a0650f86b   Neeraj Sharma   implement class v...
644
                        <v-flex sm6 xs6>
f4df757fe   Neeraj Sharma   responsive vie in...
645
646
647
648
                          <h5 class="my-1">{{ editedItem.pincode }}</h5>
                        </v-flex>
                      </v-layout>
                    </v-flex>
a0650f86b   Neeraj Sharma   implement class v...
649
                    <v-flex xs12 sm7>
f4df757fe   Neeraj Sharma   responsive vie in...
650
                      <v-layout>
a0650f86b   Neeraj Sharma   implement class v...
651
                        <v-flex xs6 sm4>
f4df757fe   Neeraj Sharma   responsive vie in...
652
653
654
655
656
657
658
659
660
661
662
663
664
                          <b>
                            <h5 class="right my-1">
                              <b>Country:</b>
                            </h5>
                          </b>
                        </v-flex>
                        <v-flex sm7 xs6>
                          <h5 class="my-1">{{ editedItem.country }}</h5>
                        </v-flex>
                      </v-layout>
                    </v-flex>
                  </v-layout>
                  <v-layout wrap>
a0650f86b   Neeraj Sharma   implement class v...
665
                    <v-flex xs12 sm5>
f4df757fe   Neeraj Sharma   responsive vie in...
666
                      <v-layout>
a0650f86b   Neeraj Sharma   implement class v...
667
                        <v-flex sm6 xs6>
f4df757fe   Neeraj Sharma   responsive vie in...
668
669
670
671
672
673
674
675
676
677
678
                          <b>
                            <h5 class="right my-1">
                              <b>Mobile No:</b>
                            </h5>
                          </b>
                        </v-flex>
                        <v-flex sm6 xs6>
                          <h5 class="my-1">{{ editedItem.mobile }}</h5>
                        </v-flex>
                      </v-layout>
                    </v-flex>
a0650f86b   Neeraj Sharma   implement class v...
679
                    <v-flex xs12 sm7>
f4df757fe   Neeraj Sharma   responsive vie in...
680
681
682
683
                      <v-layout>
                        <v-flex xs6 sm4>
                          <b>
                            <h5 class="right my-1">
0721aca93   Neeraj Sharma   solve bugs in sub...
684
                              <b>FahterName:</b>
f4df757fe   Neeraj Sharma   responsive vie in...
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
                            </h5>
                          </b>
                        </v-flex>
                        <v-flex sm8 xs6>
                          <h5 class="my-1">{{ editedItem.fatherName }}</h5>
                        </v-flex>
                      </v-layout>
                    </v-flex>
                  </v-layout>
                  <v-layout wrap>
                    <v-flex xs12 sm5>
                      <v-layout>
                        <v-flex xs6 sm6>
                          <b>
                            <h5 class="right my-1">
0721aca93   Neeraj Sharma   solve bugs in sub...
700
                              <b>MotherName:</b>
f4df757fe   Neeraj Sharma   responsive vie in...
701
702
703
704
705
706
707
708
                            </h5>
                          </b>
                        </v-flex>
                        <v-flex sm6 xs6>
                          <h5 class="my-1">{{ editedItem.motherName }}</h5>
                        </v-flex>
                      </v-layout>
                    </v-flex>
a0650f86b   Neeraj Sharma   implement class v...
709
                    <v-flex xs12 sm7>
f4df757fe   Neeraj Sharma   responsive vie in...
710
                      <v-layout>
a0650f86b   Neeraj Sharma   implement class v...
711
                        <v-flex xs6 sm4>
f4df757fe   Neeraj Sharma   responsive vie in...
712
713
                          <b>
                            <h5 class="right my-1">
0721aca93   Neeraj Sharma   solve bugs in sub...
714
                              <b>FatherCellNo:</b>
f4df757fe   Neeraj Sharma   responsive vie in...
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
                            </h5>
                          </b>
                        </v-flex>
                        <v-flex sm6 xs6>
                          <h5 class="my-1">{{ editedItem.fatherCellNo }}</h5>
                        </v-flex>
                      </v-layout>
                    </v-flex>
                  </v-layout>
                  <v-layout wrap>
                    <v-flex xs12 sm5>
                      <v-layout>
                        <v-flex xs6 sm6>
                          <b>
                            <h5 class="right my-1">
0721aca93   Neeraj Sharma   solve bugs in sub...
730
                              <b>MotherCellNo:</b>
f4df757fe   Neeraj Sharma   responsive vie in...
731
732
733
734
735
736
737
738
                            </h5>
                          </b>
                        </v-flex>
                        <v-flex sm6 xs6>
                          <h5 class="my-1">{{ editedItem.motherCellNo }}</h5>
                        </v-flex>
                      </v-layout>
                    </v-flex>
a0650f86b   Neeraj Sharma   implement class v...
739
                    <v-flex xs12 sm7>
f4df757fe   Neeraj Sharma   responsive vie in...
740
                      <v-layout>
a0650f86b   Neeraj Sharma   implement class v...
741
                        <v-flex xs6 sm4>
f4df757fe   Neeraj Sharma   responsive vie in...
742
743
                          <b>
                            <h5 class="my-1 right">
0721aca93   Neeraj Sharma   solve bugs in sub...
744
                              <b>AcademicYear:</b>
f4df757fe   Neeraj Sharma   responsive vie in...
745
746
747
                            </h5>
                          </b>
                        </v-flex>
a0650f86b   Neeraj Sharma   implement class v...
748
                        <v-flex sm5 xs8>
f4df757fe   Neeraj Sharma   responsive vie in...
749
750
751
752
753
754
755
756
757
758
759
                          <h5 class="my-1">{{ editedItem.establishmentYear }}</h5>
                        </v-flex>
                      </v-layout>
                    </v-flex>
                  </v-layout>
                  <v-layout wrap>
                    <v-flex xs12 sm5>
                      <v-layout>
                        <v-flex xs6 sm6>
                          <b>
                            <h5 class="my-1 right">
0721aca93   Neeraj Sharma   solve bugs in sub...
760
                              <b>MedicalNotes:</b>
f4df757fe   Neeraj Sharma   responsive vie in...
761
762
763
764
765
766
767
768
                            </h5>
                          </b>
                        </v-flex>
                        <v-flex sm5 xs6>
                          <h5 class="my-1">{{ editedItem.medicalNotes }}</h5>
                        </v-flex>
                      </v-layout>
                    </v-flex>
a0650f86b   Neeraj Sharma   implement class v...
769
                    <v-flex xs12 sm7 class="hidden-xs-only">
aa8fc5033   Neeraj Sharma   implenment all pa...
770
                      <v-layout wrap>
a0650f86b   Neeraj Sharma   implement class v...
771
                        <v-flex sm4>
f4df757fe   Neeraj Sharma   responsive vie in...
772
773
774
775
776
                          <b>
                            <h5 class="my-1 right">
                              <b>present Address:</b>
                            </h5>
                          </b>
04165779e   Neeraj Sharma   implement parents...
777
                        </v-flex>
a0650f86b   Neeraj Sharma   implement class v...
778
                        <v-flex sm8>
f4df757fe   Neeraj Sharma   responsive vie in...
779
                          <h5 class="my-1">{{ editedItem.presentAddress }}</h5>
04165779e   Neeraj Sharma   implement parents...
780
781
                        </v-flex>
                      </v-layout>
f4df757fe   Neeraj Sharma   responsive vie in...
782
                    </v-flex>
0721aca93   Neeraj Sharma   solve bugs in sub...
783
                    <v-flex sm6 class="hidden-xs-only">
aa8fc5033   Neeraj Sharma   implenment all pa...
784
                      <v-layout wrap>
a0650f86b   Neeraj Sharma   implement class v...
785
                        <v-flex sm5>
f4df757fe   Neeraj Sharma   responsive vie in...
786
787
788
789
790
                          <b>
                            <h5 class="my-1 right">
                              <b>Permanent Address:</b>
                            </h5>
                          </b>
04165779e   Neeraj Sharma   implement parents...
791
                        </v-flex>
a0650f86b   Neeraj Sharma   implement class v...
792
                        <v-flex sm7>
f4df757fe   Neeraj Sharma   responsive vie in...
793
                          <h5 class="my-1">{{ editedItem.permanentAddress }}</h5>
04165779e   Neeraj Sharma   implement parents...
794
795
                        </v-flex>
                      </v-layout>
f4df757fe   Neeraj Sharma   responsive vie in...
796
797
798
799
                    </v-flex>
                  </v-layout>
                  <v-layout wrap class="hidden-sm-only hidden-md-only hidden-lg-only hidden-xl-only">
                    <v-flex xs12 sm5>
aa8fc5033   Neeraj Sharma   implenment all pa...
800
                      <v-layout wrap>
0721aca93   Neeraj Sharma   solve bugs in sub...
801
                        <v-flex xs12 sm6>
f4df757fe   Neeraj Sharma   responsive vie in...
802
803
804
805
806
                          <b>
                            <h5 class="my-1">
                              <b>present Address:-</b>
                            </h5>
                          </b>
04165779e   Neeraj Sharma   implement parents...
807
                        </v-flex>
f4df757fe   Neeraj Sharma   responsive vie in...
808
809
                        <v-flex sm5 xs12>
                          <h5 class="my-1">{{ editedItem.presentAddress }}</h5>
04165779e   Neeraj Sharma   implement parents...
810
811
                        </v-flex>
                      </v-layout>
f4df757fe   Neeraj Sharma   responsive vie in...
812
813
                    </v-flex>
                    <v-flex xs12 sm6>
aa8fc5033   Neeraj Sharma   implenment all pa...
814
                      <v-layout wrap>
0721aca93   Neeraj Sharma   solve bugs in sub...
815
                        <v-flex xs12 sm6>
f4df757fe   Neeraj Sharma   responsive vie in...
816
817
818
819
820
                          <b>
                            <h5 class="my-1">
                              <b>Permanent Address:-</b>
                            </h5>
                          </b>
af4cbc7be   Neeraj Sharma   add field roll nu...
821
                        </v-flex>
f4df757fe   Neeraj Sharma   responsive vie in...
822
823
                        <v-flex sm6 xs12>
                          <h5 class="my-1">{{ editedItem.permanentAddress }}</h5>
af4cbc7be   Neeraj Sharma   add field roll nu...
824
                        </v-flex>
04165779e   Neeraj Sharma   implement parents...
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
                      </v-layout>
                    </v-flex>
                  </v-layout>
                </v-container>
              </v-card-text>
            </v-card>
          </v-dialog>
  
          <v-snackbar
            :timeout="timeout"
            :top="y === 'top'"
            :right="x === 'right'"
            :vertical="mode === 'vertical'"
            v-model="snackbar"
            color="success"
          >{{ text }}</v-snackbar>
  
          <!-- ****** EXISTING-USERS STUDENTS TABLE ****** -->
          <v-card flat>
aa8fc5033   Neeraj Sharma   implenment all pa...
844
            <v-card-actions class="hidden-xs-only hidden-sm-only">
04165779e   Neeraj Sharma   implement parents...
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
              <v-layout>
                <label class="right mt-4 ml-5">Select Class:</label>
                <v-select
                  :items="addclass"
                  label="Select Class"
                  v-model="selectStudents.select"
                  item-text="classNum"
                  item-value="_id"
                  name="Select Class"
                  :rules="classRules"
                  @change="getSections(selectStudents.select)"
                  class="px-4"
                  required
                ></v-select>
                <label class="right mt-4">Select Section:</label>
                <v-select
                  :items="addSection"
                  label="Select Section"
                  v-model="selectStudents.selectSection"
                  item-text="name"
                  item-value="_id"
                  name="Select Section"
                  :rules="sectionRules"
                  class="pl-3"
                  required
                ></v-select>
              </v-layout>
              <v-spacer></v-spacer>
              <v-btn @click="findStudents()" round dark :loading="loading" class="left">Find</v-btn>
            </v-card-actions>
aa8fc5033   Neeraj Sharma   implenment all pa...
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
            <v-flex class="hidden-xl-only hidden-lg-only hidden-md-only">
              <v-layout>
                <v-flex xs4>
                  <label class="right mt-4">Select Class:</label>
                </v-flex>
                <v-flex xs8>
                  <v-select
                    :items="addclass"
                    label="Select Class"
                    v-model="selectStudents.select"
                    item-text="classNum"
                    item-value="_id"
                    name="Select Class"
                    :rules="classRules"
                    @change="getSections(selectStudents.select)"
                    class="px-2"
                    required
                  ></v-select>
                </v-flex>
              </v-layout>
              <v-layout>
                <v-flex xs4>
                  <label class="right mt-4">Select Section:</label>
                </v-flex>
                <v-flex xs8>
                  <v-select
                    :items="addSection"
                    label="Select Section"
                    v-model="selectStudents.selectSection"
                    item-text="name"
                    item-value="_id"
                    name="Select Section"
                    :rules="sectionRules"
                    class="px-2"
                    required
                  ></v-select>
                </v-flex>
              </v-layout>
f4df757fe   Neeraj Sharma   responsive vie in...
913
914
915
916
917
              <v-layout>
                <v-flex xs5 class="mx-auto mb-2">
                  <v-btn @click="findStudents()" block round dark :loading="loading">Find</v-btn>
                </v-flex>
              </v-layout>
aa8fc5033   Neeraj Sharma   implenment all pa...
918
            </v-flex>
04165779e   Neeraj Sharma   implement parents...
919
920
921
922
923
924
925
926
          </v-card>
          <v-data-table
            :headers="headers"
            :items="desserts"
            :pagination.sync="pagination"
            :search="search"
          >
            <template slot="items" slot-scope="props">
5d32331fa   Neeraj Sharma   fix student list ...
927
              <td id="td" class="text-xs-center">{{ props.item.rollNo}}</td>
04165779e   Neeraj Sharma   implement parents...
928
929
930
931
932
933
934
935
936
937
              <td id="td" class="text-xs-center">
                <v-avatar>
                  <img :src="props.item.profilePicUrl" v-if="props.item.profilePicUrl" />
                  <img src="/static/icon/user.png" v-else-if="!props.item.profilePicUrl" />
                </v-avatar>
              </td>
              <td id="td" class="text-xs-center">{{ props.item.name}}</td>
              <td id="td" class="text-xs-center">{{ props.item.email }}</td>
              <td id="td" class="text-xs-center">{{ dates(props.item.dob) }}</td>
              <td id="td" class="text-xs-center">{{ props.item.gender }}</td>
a354eff46   Neeraj Sharma   fix changes
938
939
              <td id="td" class="text-xs-center">{{ props.item.parentId.fatherName }}</td>
              <td id="td" class="text-xs-center">{{ props.item.parentId.motherName }}</td>
04165779e   Neeraj Sharma   implement parents...
940
941
              <td id="td" class="text-xs-center">{{ props.item.establishmentYear }}</td>
              <td id="td" class="text-xs-center">{{ props.item.mobile}}</td>
200c2d171   Neeraj Sharma   implement change ...
942
943
944
945
946
947
948
              <td id="td">
                <v-switch
                  class="pl-3"
                  v-model="props.item.status"
                  @change="suspendStudentStatus(props.item.status,props.item._id)"
                ></v-switch>
              </td>
04165779e   Neeraj Sharma   implement parents...
949
950
              <td class="text-xs-center">
                <span>
495e4037c   Neeraj Sharma   update
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
                  <v-tooltip top>
                    <img
                      slot="activator"
                      style="cursor:pointer; width:25px; height:18px; "
                      class="mr5"
                      @click="profile(props.item)"
                      src="/static/icon/eye1.png"
                    />
                    <span>View</span>
                  </v-tooltip>
                  <v-tooltip top>
                    <img
                      slot="activator"
                      style="cursor:pointer; width:20px; height:18px; "
                      class="mr5"
                      @click="editItem(props.item)"
                      src="/static/icon/edit1.png"
                    />
                    <span>Edit</span>
                  </v-tooltip>
                  <v-tooltip top>
                    <img
                      slot="activator"
                      style="cursor:pointer; width:20px; height:20px; "
                      class="mr5"
                      @click="deleteItem(props.item)"
                      src="/static/icon/delete1.png"
                    />
                    <span>Delete</span>
                  </v-tooltip>
04165779e   Neeraj Sharma   implement parents...
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
                </span>
              </td>
            </template>
            <v-alert
              slot="no-results"
              :value="true"
              color="error"
              icon="warning"
            >Your search for "{{ search }}" found no results.</v-alert>
          </v-data-table>
        </v-tab-item>
  
        <!-- ****** ADD STUDENTS DETAILS****** -->
        <v-tab-item>
          <v-container fluid>
            <v-layout align-center justify-center fill-height>
aa8fc5033   Neeraj Sharma   implenment all pa...
997
              <v-flex xs12 sm12 md10 lg11>
04165779e   Neeraj Sharma   implement parents...
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
                <div>
                  <v-app>
                    <v-stepper v-model="e2">
                      <v-stepper-header>
                        <v-stepper-step :complete="e2 > 1" step="1">Fill parent Details</v-stepper-step>
                        <v-divider></v-divider>
                        <v-stepper-step step="2">Fill Student Details</v-stepper-step>
                      </v-stepper-header>
                      <v-stepper-items>
                        <v-stepper-content step="1">
                          <v-container fluid class>
f4df757fe   Neeraj Sharma   responsive vie in...
1009
1010
1011
1012
1013
1014
1015
1016
                            <v-snackbar
                              :timeout="timeout"
                              :top="y === 'top'"
                              :right="x === 'right'"
                              :vertical="mode === 'vertical'"
                              v-model="snackbar"
                              color="success"
                            >{{ text }}</v-snackbar>
acab5c7cb   Neeraj Sharma   responsive design...
1017
1018
1019
1020
1021
1022
1023
1024
                            <v-flex xs12 sm12 class="hidden-md-only hidden-lg-only hidden-xl-only">
                              <v-form ref="parentForm" v-model="valid" lazy-validation>
                                <v-layout wrap>
                                  <v-flex xs12 sm6>
                                    <v-layout wrap>
                                      <v-flex xs12 class="pt-4 subheading">
                                        <label>Father Cell No:</label>
                                      </v-flex>
4430dd671   Neeraj Sharma   somethings change...
1025
                                      <v-flex xs12>
acab5c7cb   Neeraj Sharma   responsive design...
1026
1027
1028
1029
1030
                                        <v-text-field
                                          v-model.trim="parentData.fatherCellNo"
                                          placeholder="fill your father Cell Number"
                                          type="number"
                                          :rules="fatheCellNoRules"
f6200ce53   Neeraj Sharma   send number via a...
1031
                                          counter="10"
acab5c7cb   Neeraj Sharma   responsive design...
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
                                          v-on:keyup="getParentDetails()"
                                          required
                                        ></v-text-field>
                                      </v-flex>
                                    </v-layout>
                                  </v-flex>
                                  <v-flex xs12 sm6>
                                    <v-layout wrap>
                                      <v-flex xs12 class="pt-4 subheading">
                                        <label>Parent Email Id:</label>
                                      </v-flex>
4430dd671   Neeraj Sharma   somethings change...
1043
                                      <v-flex xs12>
acab5c7cb   Neeraj Sharma   responsive design...
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
                                        <v-text-field
                                          placeholder="fill Parent email"
                                          v-model="parentData.email"
                                          type="text"
                                          required
                                        ></v-text-field>
                                      </v-flex>
                                    </v-layout>
                                  </v-flex>
                                </v-layout>
                                <v-layout wrap>
                                  <v-flex xs12 sm6>
                                    <v-layout wrap>
                                      <v-flex xs12 class="pt-4 subheading">
                                        <label>Father Name:</label>
                                      </v-flex>
                                      <v-flex xs12>
                                        <v-text-field
                                          v-model="parentData.fatherName"
                                          placeholder="Fill your father Name"
                                          required
                                        ></v-text-field>
                                      </v-flex>
                                    </v-layout>
                                  </v-flex>
                                  <v-flex xs12 sm6>
                                    <v-layout wrap>
                                      <v-flex xs12 class="pt-4 subheading">
                                        <label>Mother Name:</label>
                                      </v-flex>
                                      <v-flex xs12>
                                        <v-text-field
                                          v-model="parentData.motherName"
                                          placeholder="fill your Mother Name"
acab5c7cb   Neeraj Sharma   responsive design...
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
                                          type="text"
                                          required
                                        ></v-text-field>
                                      </v-flex>
                                    </v-layout>
                                  </v-flex>
                                </v-layout>
                                <v-layout wrap>
                                  <v-flex xs12 sm6>
                                    <v-layout wrap>
                                      <v-flex xs12 class="pt-4 subheading">
4430dd671   Neeraj Sharma   somethings change...
1089
                                        <label>Mother Cell No:</label>
acab5c7cb   Neeraj Sharma   responsive design...
1090
1091
1092
1093
1094
                                      </v-flex>
                                      <v-flex xs12>
                                        <v-text-field
                                          v-model="parentData.motherCellNo"
                                          placeholder="fill your  Mother Cell Number"
acab5c7cb   Neeraj Sharma   responsive design...
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
                                          type="number"
                                          required
                                        ></v-text-field>
                                      </v-flex>
                                    </v-layout>
                                  </v-flex>
                                  <v-flex xs12 sm6>
                                    <v-layout wrap>
                                      <v-flex xs12 class="pt-4 subheading">
                                        <label>Father Profession:</label>
                                      </v-flex>
4430dd671   Neeraj Sharma   somethings change...
1106
                                      <v-flex xs12>
acab5c7cb   Neeraj Sharma   responsive design...
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
                                        <v-text-field
                                          v-model="parentData.fatherProfession"
                                          placeholder="fill your father profession"
                                        ></v-text-field>
                                      </v-flex>
                                    </v-layout>
                                  </v-flex>
                                </v-layout>
                                <v-layout wrap>
                                  <v-flex xs12 sm6>
                                    <v-layout wrap>
                                      <v-flex xs12 class="pt-4 subheading">
                                        <label>Mother Profession:</label>
                                      </v-flex>
4430dd671   Neeraj Sharma   somethings change...
1121
                                      <v-flex xs12>
acab5c7cb   Neeraj Sharma   responsive design...
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
                                        <v-text-field
                                          v-model="parentData.motherProfession"
                                          placeholder="fill your mother profession"
                                        ></v-text-field>
                                      </v-flex>
                                    </v-layout>
                                  </v-flex>
                                </v-layout>
                                <v-flex sm12 class="hidden-xs-only">
                                  <v-card-actions>
                                    <v-spacer></v-spacer>
                                    <v-btn
                                      @click="submitParentDetails"
                                      round
                                      dark
                                      :loading="loading"
                                      v-show="showParent"
                                    >Add</v-btn>
                                    <v-btn v-show="showNext" @click="e2 = 2" round dark>Next</v-btn>
                                  </v-card-actions>
                                </v-flex>
                                <v-flex
                                  xs6
                                  class="hidden-md-only hidden-sm-only hidden-lg-only hidden-xl-only mx-auto mt-2"
                                >
                                  <v-btn
                                    @click="submitParentDetails"
                                    round
                                    dark
                                    :loading="loading"
                                    v-show="showParent"
                                  >Add</v-btn>
                                  <v-btn v-show="showNext" @click="e2 = 2" round dark>Next</v-btn>
                                </v-flex>
                              </v-form>
                            </v-flex>
4430dd671   Neeraj Sharma   somethings change...
1158
                            <v-flex xs12 sm12 class="hidden-xs-only hidden-sm-only">
f4df757fe   Neeraj Sharma   responsive vie in...
1159
1160
                              <v-form ref="parentForm" v-model="valid" lazy-validation>
                                <v-layout wrap>
aa8fc5033   Neeraj Sharma   implenment all pa...
1161
1162
1163
                                  <v-flex xs12 sm6>
                                    <v-layout>
                                      <v-flex xs4 class="pt-4 subheading">
fc77c38e0   Neeraj Sharma   fixed all task ch...
1164
                                        <label class="right">Father Cell No:</label>
aa8fc5033   Neeraj Sharma   implenment all pa...
1165
1166
                                      </v-flex>
                                      <v-flex xs8 class="ml-3">
aa8fc5033   Neeraj Sharma   implenment all pa...
1167
                                        <v-text-field
fc77c38e0   Neeraj Sharma   fixed all task ch...
1168
1169
1170
1171
                                          v-model.trim="parentData.fatherCellNo"
                                          placeholder="fill your father Cell Number"
                                          type="number"
                                          :rules="fatheCellNoRules"
f6200ce53   Neeraj Sharma   send number via a...
1172
                                          counter="10"
fc77c38e0   Neeraj Sharma   fixed all task ch...
1173
                                          v-on:keyup="getParentDetails()"
aa8fc5033   Neeraj Sharma   implenment all pa...
1174
1175
1176
1177
1178
                                          required
                                        ></v-text-field>
                                      </v-flex>
                                    </v-layout>
                                  </v-flex>
aa8fc5033   Neeraj Sharma   implenment all pa...
1179
1180
1181
                                  <v-flex xs12 sm6>
                                    <v-layout>
                                      <v-flex xs4 class="pt-4 subheading">
fc77c38e0   Neeraj Sharma   fixed all task ch...
1182
                                        <label class="right">Parent Email Id:</label>
aa8fc5033   Neeraj Sharma   implenment all pa...
1183
1184
1185
                                      </v-flex>
                                      <v-flex xs8 class="ml-3">
                                        <v-text-field
fc77c38e0   Neeraj Sharma   fixed all task ch...
1186
1187
1188
                                          placeholder="fill Parent email"
                                          v-model="parentData.email"
                                          type="text"
aa8fc5033   Neeraj Sharma   implenment all pa...
1189
1190
1191
1192
1193
1194
                                          required
                                        ></v-text-field>
                                      </v-flex>
                                    </v-layout>
                                  </v-flex>
                                </v-layout>
f4df757fe   Neeraj Sharma   responsive vie in...
1195
                                <v-layout wrap>
aa8fc5033   Neeraj Sharma   implenment all pa...
1196
1197
1198
                                  <v-flex xs12 sm6>
                                    <v-layout>
                                      <v-flex xs4 class="pt-4 subheading">
fc77c38e0   Neeraj Sharma   fixed all task ch...
1199
                                        <label class="right">Father Name:</label>
aa8fc5033   Neeraj Sharma   implenment all pa...
1200
1201
1202
                                      </v-flex>
                                      <v-flex xs8 class="ml-3">
                                        <v-text-field
fc77c38e0   Neeraj Sharma   fixed all task ch...
1203
1204
                                          v-model="parentData.fatherName"
                                          placeholder="Fill your father Name"
aa8fc5033   Neeraj Sharma   implenment all pa...
1205
1206
1207
1208
1209
1210
1211
1212
                                          required
                                        ></v-text-field>
                                      </v-flex>
                                    </v-layout>
                                  </v-flex>
                                  <v-flex xs12 sm6>
                                    <v-layout>
                                      <v-flex xs4 class="pt-4 subheading">
f4df757fe   Neeraj Sharma   responsive vie in...
1213
                                        <label class="right">Mother Name:</label>
aa8fc5033   Neeraj Sharma   implenment all pa...
1214
1215
1216
                                      </v-flex>
                                      <v-flex xs8 class="ml-3">
                                        <v-text-field
f4df757fe   Neeraj Sharma   responsive vie in...
1217
1218
                                          v-model="parentData.motherName"
                                          placeholder="fill your Mother Name"
f4df757fe   Neeraj Sharma   responsive vie in...
1219
                                          type="text"
aa8fc5033   Neeraj Sharma   implenment all pa...
1220
1221
1222
1223
1224
1225
                                          required
                                        ></v-text-field>
                                      </v-flex>
                                    </v-layout>
                                  </v-flex>
                                </v-layout>
f4df757fe   Neeraj Sharma   responsive vie in...
1226
                                <v-layout wrap>
aa8fc5033   Neeraj Sharma   implenment all pa...
1227
1228
1229
                                  <v-flex xs12 sm6>
                                    <v-layout>
                                      <v-flex xs4 class="pt-4 subheading">
f4df757fe   Neeraj Sharma   responsive vie in...
1230
                                        <label class="right">Mother Cell No:</label>
aa8fc5033   Neeraj Sharma   implenment all pa...
1231
1232
1233
                                      </v-flex>
                                      <v-flex xs8 class="ml-3">
                                        <v-text-field
f4df757fe   Neeraj Sharma   responsive vie in...
1234
1235
                                          v-model="parentData.motherCellNo"
                                          placeholder="fill your  Mother Cell Number"
aa8fc5033   Neeraj Sharma   implenment all pa...
1236
                                          type="number"
aa8fc5033   Neeraj Sharma   implenment all pa...
1237
1238
1239
1240
1241
                                          required
                                        ></v-text-field>
                                      </v-flex>
                                    </v-layout>
                                  </v-flex>
fc77c38e0   Neeraj Sharma   fixed all task ch...
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
                                  <v-flex xs12 sm6>
                                    <v-layout>
                                      <v-flex xs4 class="pt-4 subheading">
                                        <label class="right">Father Profession:</label>
                                      </v-flex>
                                      <v-flex xs8 class="ml-3">
                                        <v-text-field
                                          v-model="parentData.fatherProfession"
                                          placeholder="fill your father profession"
                                        ></v-text-field>
                                      </v-flex>
                                    </v-layout>
                                  </v-flex>
                                </v-layout>
                                <v-layout wrap>
                                  <v-flex xs12 sm6>
                                    <v-layout>
                                      <v-flex xs4 class="pt-4 subheading">
                                        <label class="right">Mother Profession:</label>
                                      </v-flex>
                                      <v-flex xs8 class="ml-3">
                                        <v-text-field
                                          v-model="parentData.motherProfession"
                                          placeholder="fill your mother profession"
                                        ></v-text-field>
                                      </v-flex>
                                    </v-layout>
                                  </v-flex>
aa8fc5033   Neeraj Sharma   implenment all pa...
1270
                                </v-layout>
f4df757fe   Neeraj Sharma   responsive vie in...
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
                                <v-flex sm12 class="hidden-xs-only">
                                  <v-card-actions>
                                    <v-spacer></v-spacer>
                                    <v-btn
                                      @click="submitParentDetails"
                                      round
                                      dark
                                      :loading="loading"
                                      v-show="showParent"
                                    >Add</v-btn>
                                    <v-btn v-show="showNext" @click="e2 = 2" round dark>Next</v-btn>
                                  </v-card-actions>
                                </v-flex>
0551a0f15   Neeraj Sharma   implemnet functio...
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
                                <v-flex
                                  xs6
                                  class="hidden-md-only hidden-sm-only hidden-lg-only hidden-xl-only mx-auto mt-2"
                                >
                                  <v-btn
                                    @click="submitParentDetails"
                                    round
                                    dark
                                    :loading="loading"
                                    v-show="showParent"
                                  >Add</v-btn>
                                  <v-btn v-show="showNext" @click="e2 = 2" round dark>Next</v-btn>
f4df757fe   Neeraj Sharma   responsive vie in...
1296
1297
1298
1299
1300
1301
                                </v-flex>
                              </v-form>
                            </v-flex>
                          </v-container>
                        </v-stepper-content>
                        <v-stepper-content step="2">
0551a0f15   Neeraj Sharma   implemnet functio...
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
                          <v-snackbar
                            :timeout="timeout"
                            :top="y === 'top'"
                            :right="x === 'right'"
                            :vertical="mode === 'vertical'"
                            v-model="snackbar"
                            color="success"
                          >{{ text }}</v-snackbar>
                          <v-flex xs12 sm12>
                            <v-form ref="form" v-model="valid" lazy-validation>
0551a0f15   Neeraj Sharma   implemnet functio...
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
                              <v-layout>
                                <v-flex
                                  xs12
                                  class="text-xs-center text-sm-center text-md-center text-lg-center"
                                >
                                  <v-avatar size="100px">
                                    <img src="/static/icon/user.png" v-if="!imageUrl" />
                                  </v-avatar>
                                  <input
                                    type="file"
                                    style="display: none"
                                    ref="image"
                                    accept="image/*"
                                    @change="onFilePicked"
                                  />
                                  <img
                                    :src="imageData.imageUrl"
                                    height="150"
                                    v-if="imageUrl"
                                    style="border-radius:50%; width:200px"
                                  />
                                </v-flex>
                              </v-layout>
                              <v-layout wrap>
                                <v-flex xs12 sm6>
f4df757fe   Neeraj Sharma   responsive vie in...
1337
                                  <v-layout>
0551a0f15   Neeraj Sharma   implemnet functio...
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
                                    <v-flex x4 sm4 class="pt-4 subheading">
                                      <label class="right hidden-xs-only hidden-sm-only">Select Class:</label>
                                      <label
                                        class="right hidden-lg-only hidden-md-only hidden-xl-only"
                                      >Class:</label>
                                    </v-flex>
                                    <v-flex xs8 sm8 class="ml-3">
                                      <v-select
                                        :items="addclass"
                                        label="Select Class"
                                        v-model="addStudents.select"
                                        item-text="classNum"
                                        item-value="_id"
                                        name="Select Class"
                                        :rules="classRules"
                                        @change="getSection(addStudents.select)"
                                        required
                                      ></v-select>
f4df757fe   Neeraj Sharma   responsive vie in...
1356
1357
                                    </v-flex>
                                  </v-layout>
0551a0f15   Neeraj Sharma   implemnet functio...
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
                                </v-flex>
                                <v-flex xs12 sm6>
                                  <v-layout>
                                    <v-flex xs4 class="pt-4 subheading">
                                      <label
                                        class="right hidden-xs-only hidden-sm-only"
                                      >Select Section:</label>
                                      <label
                                        class="right hidden-lg-only hidden-md-only hidden-xl-only"
                                      >Section:</label>
f4df757fe   Neeraj Sharma   responsive vie in...
1368
                                    </v-flex>
0551a0f15   Neeraj Sharma   implemnet functio...
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
                                    <v-flex xs8 class="ml-3">
                                      <v-select
                                        :items="addSection"
                                        label="Select Section"
                                        v-model="addStudents.selectSection"
                                        item-text="name"
                                        item-value="_id"
                                        name="Select Section"
                                        :rules="sectionRules"
                                        required
                                      ></v-select>
f4df757fe   Neeraj Sharma   responsive vie in...
1380
1381
                                    </v-flex>
                                  </v-layout>
0551a0f15   Neeraj Sharma   implemnet functio...
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
                                </v-flex>
                              </v-layout>
                              <v-layout wrap>
                                <v-flex xs12 sm6>
                                  <v-layout>
                                    <v-flex xs4 sm4 class="pt-4 subheading">
                                      <label class="right hidden-xs-only hidden-sm-only">Full Name:</label>
                                      <label
                                        class="right hidden-lg-only hidden-md-only hidden-xl-only"
                                      >Name:</label>
f4df757fe   Neeraj Sharma   responsive vie in...
1392
                                    </v-flex>
0551a0f15   Neeraj Sharma   implemnet functio...
1393
1394
1395
1396
1397
1398
1399
1400
1401
                                    <v-flex xs8 sm8 class="ml-3">
                                      <v-text-field
                                        v-model="addStudents.name"
                                        placeholder="fill your full Name"
                                        name="name"
                                        type="text"
                                        :rules="nameRules"
                                        required
                                      ></v-text-field>
f4df757fe   Neeraj Sharma   responsive vie in...
1402
1403
                                    </v-flex>
                                  </v-layout>
0551a0f15   Neeraj Sharma   implemnet functio...
1404
1405
1406
1407
1408
                                </v-flex>
                                <v-flex xs12 sm6>
                                  <v-layout>
                                    <v-flex xs4 sm4 class="pt-4 subheading">
                                      <label class="right">Email ID:</label>
f4df757fe   Neeraj Sharma   responsive vie in...
1409
                                    </v-flex>
0551a0f15   Neeraj Sharma   implemnet functio...
1410
1411
1412
                                    <v-flex xs8 sm8 class="ml-3">
                                      <v-text-field
                                        placeholder="fill your email"
0551a0f15   Neeraj Sharma   implemnet functio...
1413
1414
1415
1416
1417
                                        v-model="addStudents.email"
                                        type="text"
                                        name="email"
                                        required
                                      ></v-text-field>
f4df757fe   Neeraj Sharma   responsive vie in...
1418
1419
                                    </v-flex>
                                  </v-layout>
0551a0f15   Neeraj Sharma   implemnet functio...
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
                                </v-flex>
                              </v-layout>
                              <v-layout wrap>
                                <v-flex xs12 sm6>
                                  <v-layout>
                                    <v-flex xs4 sm4 class="pt-4 subheading">
                                      <label
                                        class="right hidden-sm-only hidden-xs-only"
                                      >Date of Birth:</label>
                                      <label
                                        class="right hidden-lg-only hidden-xl-only hidden-md-only"
                                      >D.O.B:</label>
f4df757fe   Neeraj Sharma   responsive vie in...
1432
                                    </v-flex>
0551a0f15   Neeraj Sharma   implemnet functio...
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
                                    <v-flex xs8 sm8 class="ml-3">
                                      <v-menu
                                        ref="menu"
                                        :close-on-content-click="false"
                                        v-model="menu"
                                        :nudge-right="40"
                                        lazy
                                        transition="scale-transition"
                                        offset-y
                                        full-width
                                        min-width="290px"
                                      >
                                        <v-text-field
                                          slot="activator"
                                          :rules="dateRules"
                                          v-model="addStudents.date"
                                          placeholder="Select date"
                                        ></v-text-field>
                                        <v-date-picker
                                          ref="picker"
                                          v-model="addStudents.date"
                                          :max="new Date().toISOString().substr(0, 10)"
                                          min="1950-01-01"
                                          @input="menu = false"
                                        ></v-date-picker>
                                      </v-menu>
f4df757fe   Neeraj Sharma   responsive vie in...
1459
1460
                                    </v-flex>
                                  </v-layout>
0551a0f15   Neeraj Sharma   implemnet functio...
1461
1462
1463
1464
1465
                                </v-flex>
                                <v-flex xs12 sm6>
                                  <v-layout>
                                    <v-flex xs4 class="pt-4 subheading">
                                      <label class="right">City:</label>
f4df757fe   Neeraj Sharma   responsive vie in...
1466
                                    </v-flex>
0551a0f15   Neeraj Sharma   implemnet functio...
1467
1468
1469
1470
1471
1472
1473
1474
1475
                                    <v-flex xs8 class="ml-3">
                                      <v-text-field
                                        v-model="addStudents.city"
                                        placeholder="fill your City Name"
                                        name="City"
                                        type="text"
                                        :rules="cityRules"
                                        required
                                      ></v-text-field>
f4df757fe   Neeraj Sharma   responsive vie in...
1476
1477
                                    </v-flex>
                                  </v-layout>
0551a0f15   Neeraj Sharma   implemnet functio...
1478
1479
1480
1481
1482
1483
1484
                                </v-flex>
                              </v-layout>
                              <v-layout wrap>
                                <v-flex xs12 sm6>
                                  <v-layout>
                                    <v-flex xs4 class="pt-4 subheading">
                                      <label class="right">State:</label>
f4df757fe   Neeraj Sharma   responsive vie in...
1485
                                    </v-flex>
0551a0f15   Neeraj Sharma   implemnet functio...
1486
1487
1488
1489
1490
1491
1492
1493
1494
                                    <v-flex xs8 class="ml-3">
                                      <v-text-field
                                        v-model="addStudents.state"
                                        placeholder="fill your State Name"
                                        name="state"
                                        type="text"
                                        :rules="stateRules"
                                        required
                                      ></v-text-field>
f4df757fe   Neeraj Sharma   responsive vie in...
1495
1496
                                    </v-flex>
                                  </v-layout>
0551a0f15   Neeraj Sharma   implemnet functio...
1497
1498
1499
1500
1501
                                </v-flex>
                                <v-flex xs12 sm6>
                                  <v-layout>
                                    <v-flex xs4 class="pt-4 subheading">
                                      <label class="right">Pincode:</label>
f4df757fe   Neeraj Sharma   responsive vie in...
1502
                                    </v-flex>
0551a0f15   Neeraj Sharma   implemnet functio...
1503
1504
1505
1506
1507
1508
1509
1510
1511
                                    <v-flex xs8 class="ml-3">
                                      <v-text-field
                                        v-model="addStudents.pincode"
                                        placeholder="fill your pincode"
                                        name="pincode"
                                        type="number"
                                        :rules="pincode"
                                        required
                                      ></v-text-field>
f4df757fe   Neeraj Sharma   responsive vie in...
1512
1513
                                    </v-flex>
                                  </v-layout>
0551a0f15   Neeraj Sharma   implemnet functio...
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
                                </v-flex>
                              </v-layout>
                              <v-layout wrap>
                                <v-flex xs12 sm6>
                                  <v-layout>
                                    <v-flex xs4 class="pt-4 subheading">
                                      <label class="right hidden-xs-only hidden-sm-only">Mobile No:</label>
                                      <label
                                        class="right hidden-lg-only hidden-md-only hidden-xl-only"
                                      >Mobile:</label>
f4df757fe   Neeraj Sharma   responsive vie in...
1524
                                    </v-flex>
0551a0f15   Neeraj Sharma   implemnet functio...
1525
1526
1527
1528
                                    <v-flex xs8 class="ml-3">
                                      <v-text-field
                                        v-model="addStudents.mobile"
                                        placeholder="fill your MobileNo"
4efdca564   Neeraj Sharma   solve bugs parent...
1529
                                        :rules="mobileNoRule"
0551a0f15   Neeraj Sharma   implemnet functio...
1530
1531
                                        name="mobileNo"
                                        type="number"
0551a0f15   Neeraj Sharma   implemnet functio...
1532
1533
                                        required
                                      ></v-text-field>
f4df757fe   Neeraj Sharma   responsive vie in...
1534
1535
                                    </v-flex>
                                  </v-layout>
0551a0f15   Neeraj Sharma   implemnet functio...
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
                                </v-flex>
                                <v-flex xs12 sm6>
                                  <v-layout>
                                    <v-flex xs4 class="pt-4 subheading">
                                      <label
                                        class="right hidden-xs-only hidden-sm-only"
                                      >Select Country:</label>
                                      <label
                                        class="right hidden-lg-only hidden-md-only hidden-xl-only"
                                      >Country:</label>
f4df757fe   Neeraj Sharma   responsive vie in...
1546
                                    </v-flex>
0551a0f15   Neeraj Sharma   implemnet functio...
1547
1548
1549
1550
1551
1552
1553
1554
                                    <v-flex xs8 class="ml-3">
                                      <v-autocomplete
                                        v-model="addStudents.country"
                                        :rules="country"
                                        :items="countries"
                                        placeholder="Select Country Name"
                                        required
                                      ></v-autocomplete>
f4df757fe   Neeraj Sharma   responsive vie in...
1555
1556
                                    </v-flex>
                                  </v-layout>
0551a0f15   Neeraj Sharma   implemnet functio...
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
                                </v-flex>
                              </v-layout>
                              <v-layout wrap>
                                <v-flex xs12 sm6>
                                  <v-layout>
                                    <v-flex xs4 class="pt-4 subheading">
                                      <label class="right">Gender:</label>
                                    </v-flex>
                                    <v-flex xs8 class="ml-3">
                                      <v-select
                                        :items="gender"
                                        v-model="addStudents.gender"
                                        :rules="genderRules"
                                        label="Select Gender"
                                        required
                                      ></v-select>
f4df757fe   Neeraj Sharma   responsive vie in...
1573
1574
                                    </v-flex>
                                  </v-layout>
0551a0f15   Neeraj Sharma   implemnet functio...
1575
1576
1577
1578
1579
1580
1581
1582
                                </v-flex>
                                <v-flex xs12 sm6>
                                  <v-layout>
                                    <v-flex xs4 class="pt-4 subheading">
                                      <label class="right hidden-xs-only hidden-sm-only">Blood Group:</label>
                                      <label
                                        class="right hidden-lg-only hidden-md-only hidden-xl-only"
                                      >Blood:</label>
f4df757fe   Neeraj Sharma   responsive vie in...
1583
                                    </v-flex>
0551a0f15   Neeraj Sharma   implemnet functio...
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
                                    <v-flex xs8 class="ml-3">
                                      <v-text-field
                                        v-model="addStudents.bloodGroup"
                                        placeholder="Fill your Blood Group"
                                        required
                                      ></v-text-field>
                                    </v-flex>
                                  </v-layout>
                                </v-flex>
                              </v-layout>
                              <v-layout wrap>
fc77c38e0   Neeraj Sharma   fixed all task ch...
1595
                                <!-- <v-flex xs12 sm6>
0551a0f15   Neeraj Sharma   implemnet functio...
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
                                  <v-layout>
                                    <v-flex xs4 class="pt-4 subheading">
                                      <label class="right">Allergies:</label>
                                    </v-flex>
                                    <v-flex xs8 class="ml-3">
                                      <v-text-field
                                        v-model="addStudents.allergies"
                                        placeholder="Fill your Allergies"
                                        required
                                      ></v-text-field>
f4df757fe   Neeraj Sharma   responsive vie in...
1606
1607
                                    </v-flex>
                                  </v-layout>
fc77c38e0   Neeraj Sharma   fixed all task ch...
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
                                </v-flex>-->
                                <v-flex xs12 sm6>
                                  <v-layout>
                                    <v-flex xs4 class="pt-4 subheading">
                                      <label class="right hidden-xs-only hidden-sm-only">Roll Number:</label>
                                      <label
                                        class="right hidden-lg-only hidden-md-only hidden-xl-only"
                                      >Roll No:</label>
                                    </v-flex>
                                    <v-flex xs8 class="ml-3">
                                      <v-text-field
                                        v-model="addStudents.rollNo"
                                        placeholder="Fill your Roll Number"
                                        required
                                      ></v-text-field>
                                    </v-flex>
                                  </v-layout>
0551a0f15   Neeraj Sharma   implemnet functio...
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
                                </v-flex>
                                <v-flex xs12 sm6>
                                  <v-layout>
                                    <v-flex xs4 class="pt-4 subheading">
                                      <label
                                        class="right hidden-xs-only hidden-sm-only"
                                      >Medical Notes:</label>
                                      <label
                                        class="right hidden-lg-only hidden-md-only hidden-xl-only"
                                      >Medical:</label>
                                    </v-flex>
                                    <v-flex xs8 class="ml-3">
                                      <v-text-field
                                        v-model="addStudents.medicalNotes"
                                        placeholder="Fill your Medical Notes"
                                        required
                                      ></v-text-field>
                                    </v-flex>
                                  </v-layout>
                                </v-flex>
                              </v-layout>
                              <v-layout wrap>
                                <v-flex xs12 sm6>
                                  <v-layout>
                                    <v-flex xs4 class="pt-4 subheading">
                                      <label class="right">Height:</label>
                                    </v-flex>
                                    <v-flex xs8 class="ml-3">
                                      <v-text-field
                                        v-model="addStudents.height"
                                        placeholder="Fill your Height"
                                        required
                                      ></v-text-field>
                                    </v-flex>
                                  </v-layout>
                                </v-flex>
                                <v-flex xs12 sm6>
                                  <v-layout>
                                    <v-flex xs4 class="pt-4 subheading">
                                      <label class="right">Weight:</label>
                                    </v-flex>
                                    <v-flex xs8 class="ml-3">
                                      <v-text-field
                                        v-model="addStudents.weight"
                                        placeholder="Fill your Weight"
                                        required
                                      ></v-text-field>
                                    </v-flex>
                                  </v-layout>
                                </v-flex>
                              </v-layout>
                              <v-layout wrap>
                                <v-flex xs12 sm6>
                                  <v-layout>
                                    <v-flex xs4 class="pt-4 subheading">
                                      <label class="right hidden-xs-only hidden-sm-only">Uplaod Image:</label>
                                      <label
                                        class="right hidden-lg-only hidden-md-only hidden-xl-only"
                                      >Uplaod :</label>
                                    </v-flex>
                                    <v-flex xs8 class="ml-3">
                                      <v-text-field
                                        label="Select Image"
                                        @click="pickFile"
                                        v-model="imageName"
                                        append-icon="attach_file"
                                      ></v-text-field>
                                    </v-flex>
                                  </v-layout>
                                </v-flex>
                                <v-flex xs12 sm6>
                                  <v-layout>
                                    <v-flex xs4 class="pt-4 subheading">
                                      <label
                                        class="right hidden-xs-only hidden-sm-only"
                                      >Academic Year:</label>
                                      <label
                                        class="right hidden-lg-only hidden-md-only hidden-xl-only"
                                      >Year:</label>
                                    </v-flex>
                                    <v-flex xs8 class="ml-3">
                                      <v-text-field
                                        v-model="addStudents.establishmentYear"
                                        placeholder="fill your Academic Year"
                                        name="state"
                                        type="number"
                                        :rules="establishmentYearRules"
                                        required
                                      ></v-text-field>
                                    </v-flex>
                                  </v-layout>
                                </v-flex>
                              </v-layout>
acab5c7cb   Neeraj Sharma   responsive design...
1718
                              <v-layout wrap class="hidden-xs-only hidden-sm-only">
7adcb5362   Neeraj Sharma   responsive design...
1719
                                <v-flex xs12 sm6>
0551a0f15   Neeraj Sharma   implemnet functio...
1720
                                  <v-layout>
006544386   Neeraj Sharma   implement task
1721
                                    <v-flex xs4 sm4 class="pt-4 subheading">
d9bb52b5b   Neeraj Sharma   implement trello ...
1722
                                      <label class="right">Present Address:</label>
0551a0f15   Neeraj Sharma   implemnet functio...
1723
                                    </v-flex>
006544386   Neeraj Sharma   implement task
1724
                                    <v-flex xs8 sm8 class="ml-3">
0551a0f15   Neeraj Sharma   implemnet functio...
1725
                                      <v-text-field
0551a0f15   Neeraj Sharma   implemnet functio...
1726
1727
1728
                                        v-model="addStudents.presentAddress"
                                        :rules="presentAddress"
                                        placeholder="fill Your present Address"
d9bb52b5b   Neeraj Sharma   implement trello ...
1729
                                        @keyup="copyData"
0551a0f15   Neeraj Sharma   implemnet functio...
1730
1731
1732
1733
                                      ></v-text-field>
                                    </v-flex>
                                  </v-layout>
                                </v-flex>
006544386   Neeraj Sharma   implement task
1734
                                <v-flex xs12 sm6>
0551a0f15   Neeraj Sharma   implemnet functio...
1735
                                  <v-layout>
006544386   Neeraj Sharma   implement task
1736
1737
                                    <v-flex xs4 sm4 class="pt-4 subheading addressForm">
                                      <label class="right">Permanent Address:</label>
0551a0f15   Neeraj Sharma   implemnet functio...
1738
                                    </v-flex>
006544386   Neeraj Sharma   implement task
1739
                                    <v-flex xs12 sm8 class="ml-3">
d9bb52b5b   Neeraj Sharma   implement trello ...
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
                                      <v-switch
                                        v-model="addStudents.permanentAddress"
                                        label="Select Permanent Address"
                                        :value="addStudents.presentAddress"
                                      ></v-switch>
                                    </v-flex>
                                  </v-layout>
                                </v-flex>
                              </v-layout>
                              <v-layout class="hidden-xs-only hidden-sm-only">
                                <v-flex xs12 sm6>
                                  <v-layout>
                                    <v-flex xs4 sm4 class="pt-4 subheading addressForm">
                                      <label class="right">Permanent Address:</label>
                                    </v-flex>
                                    <v-flex xs12 sm8 class="ml-3">
0551a0f15   Neeraj Sharma   implemnet functio...
1756
                                      <v-text-field
0551a0f15   Neeraj Sharma   implemnet functio...
1757
1758
1759
                                        v-model="addStudents.permanentAddress"
                                        :rules="permanentAddress"
                                        placeholder="fill Your Permanent Address"
0551a0f15   Neeraj Sharma   implemnet functio...
1760
                                      ></v-text-field>
f4df757fe   Neeraj Sharma   responsive vie in...
1761
                                    </v-flex>
0551a0f15   Neeraj Sharma   implemnet functio...
1762
1763
1764
1765
1766
1767
                                  </v-layout>
                                </v-flex>
                              </v-layout>
                              <v-layout class="hidden-lg-only hidden-md-only hidden-xl-only" wrap>
                                <v-flex xs12 sm12>
                                  <v-layout>
006544386   Neeraj Sharma   implement task
1768
                                    <v-flex xs12 sm12 class="pt-4 subheading text-xs-center">
d9bb52b5b   Neeraj Sharma   implement trello ...
1769
                                      <label class>Present Address:</label>
0551a0f15   Neeraj Sharma   implemnet functio...
1770
1771
1772
                                    </v-flex>
                                  </v-layout>
                                  <v-layout>
f4df757fe   Neeraj Sharma   responsive vie in...
1773
                                    <v-flex xs12 sm12>
0551a0f15   Neeraj Sharma   implemnet functio...
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
                                      <v-textarea
                                        name="input-4-3"
                                        v-model="addStudents.presentAddress"
                                        :rules="presentAddress"
                                        placeholder="fill Your present Address"
                                        required
                                      ></v-textarea>
                                    </v-flex>
                                  </v-layout>
                                </v-flex>
                                <v-flex xs12 sm12>
                                  <v-layout>
                                    <v-flex
                                      xs12
006544386   Neeraj Sharma   implement task
1788
                                      sm12
0551a0f15   Neeraj Sharma   implemnet functio...
1789
1790
                                      class="pt-4 pr-4 subheading text-xs-center addressForm"
                                    >
d9bb52b5b   Neeraj Sharma   implement trello ...
1791
                                      <label>Permanent Address:</label>
f4df757fe   Neeraj Sharma   responsive vie in...
1792
1793
1794
1795
                                    </v-flex>
                                  </v-layout>
                                  <v-layout>
                                    <v-flex xs12 sm12>
0551a0f15   Neeraj Sharma   implemnet functio...
1796
1797
1798
1799
1800
1801
1802
                                      <v-textarea
                                        name="input-4-3"
                                        v-model="addStudents.permanentAddress"
                                        :rules="permanentAddress"
                                        placeholder="fill Your Permanent Address"
                                        required
                                      ></v-textarea>
f4df757fe   Neeraj Sharma   responsive vie in...
1803
1804
                                    </v-flex>
                                  </v-layout>
0551a0f15   Neeraj Sharma   implemnet functio...
1805
1806
1807
                                </v-flex>
                              </v-layout>
                              <v-layout>
fc77c38e0   Neeraj Sharma   fixed all task ch...
1808
                                <v-flex xs12 sm11 offset-sm1>
0551a0f15   Neeraj Sharma   implemnet functio...
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
                                  <v-layout>
                                    <v-flex xs6>
                                      <v-btn round dark @click="e2 = 1">Back</v-btn>
                                    </v-flex>
                                    <v-flex xs6>
                                      <v-btn
                                        @click="submit"
                                        round
                                        dark
                                        :loading="loading"
                                        class="right"
                                      >Add</v-btn>
                                    </v-flex>
                                  </v-layout>
                                </v-flex>
                              </v-layout>
0551a0f15   Neeraj Sharma   implemnet functio...
1825
1826
                            </v-form>
                          </v-flex>
04165779e   Neeraj Sharma   implement parents...
1827
1828
1829
1830
1831
1832
1833
                        </v-stepper-content>
                      </v-stepper-items>
                    </v-stepper>
                  </v-app>
                </div>
              </v-flex>
            </v-layout>
b82d0d998   Neeraj Sharma   changes and modif...
1834
1835
1836
          </v-container>
        </v-tab-item>
      </v-tabs>
36fc987df   Neeraj Sharma   add loader in all...
1837
1838
1839
      <div class="loader" v-if="showLoader">
        <v-progress-circular indeterminate color="white"></v-progress-circular>
      </div>
a17c68a03   Neeraj Sharma   implement two rou...
1840
    </div>
e3e2a04c6   Neeraj Sharma   first commit
1841
1842
1843
  </template>
  
  <script>
e3e2a04c6   Neeraj Sharma   first commit
1844
  import http from "@/Services/http.js";
506be6fd7   Neeraj Sharma   implemet dyamic i...
1845
  import moment from "moment";
495e4037c   Neeraj Sharma   update
1846
  import countryList from "@/script/country.js";
0cd2fbfba   Neeraj Sharma   implement create ...
1847
  import parent from "@/script/parents.js";
e3e2a04c6   Neeraj Sharma   first commit
1848
1849
  
  export default {
e3e2a04c6   Neeraj Sharma   first commit
1850
    data: () => ({
04165779e   Neeraj Sharma   implement parents...
1851
1852
1853
      e2: 0,
      showParent: true,
      showNext: false,
e3e2a04c6   Neeraj Sharma   first commit
1854
1855
1856
1857
1858
1859
      snackbar: false,
      y: "top",
      x: "right",
      mode: "",
      timeout: 3000,
      text: "",
04165779e   Neeraj Sharma   implement parents...
1860
      showLoader: false,
e3e2a04c6   Neeraj Sharma   first commit
1861
      loading: false,
3815afe8c   Neeraj Sharma   fixed all bugs in...
1862
      editLoading: false,
b82d0d998   Neeraj Sharma   changes and modif...
1863
1864
      date: null,
      search: "",
e3e2a04c6   Neeraj Sharma   first commit
1865
      menu: false,
b82d0d998   Neeraj Sharma   changes and modif...
1866
      menu1: false,
e3e2a04c6   Neeraj Sharma   first commit
1867
1868
      dialog: false,
      dialog1: false,
e3e2a04c6   Neeraj Sharma   first commit
1869
1870
1871
      valid: true,
      isActive: true,
      newActive: false,
b82d0d998   Neeraj Sharma   changes and modif...
1872
1873
1874
      addclass: [],
      addSection: [],
      gender: ["Male", "Female"],
e3e2a04c6   Neeraj Sharma   first commit
1875
1876
1877
      pagination: {
        rowsPerPage: 15
      },
b82d0d998   Neeraj Sharma   changes and modif...
1878
1879
1880
1881
      imageData: {},
      imageName: "",
      imageUrl: "",
      imageFile: "",
3815afe8c   Neeraj Sharma   fixed all bugs in...
1882
1883
      editImageName: "",
      editImageUrl: "",
e3e2a04c6   Neeraj Sharma   first commit
1884
      nameRules: [v => !!v || " Full Name is required"],
b82d0d998   Neeraj Sharma   changes and modif...
1885
1886
1887
1888
1889
1890
      dateRules: [v => !!v || " DOB is required"],
      cityRules: [v => !!v || " City Name is required"],
      pincode: [v => !!v || " Pincode is required"],
      country: [v => !!v || " Country Name is required"],
      permanentAddress: [v => !!v || " Permanent Address is required"],
      presentAddress: [v => !!v || " Present Address  is required"],
b82d0d998   Neeraj Sharma   changes and modif...
1891
1892
      stateRules: [v => !!v || "State Name is required"],
      classRules: [v => !!v || " Class Name is required"],
04165779e   Neeraj Sharma   implement parents...
1893
      sectionRules: [v => !!v || " Section Name is required"],
b82d0d998   Neeraj Sharma   changes and modif...
1894
      genderRules: [v => !!v || " Select Gender is required"],
f6200ce53   Neeraj Sharma   send number via a...
1895
1896
1897
1898
      fatheCellNoRules: [
        v => !!v || " father Cell Number  is required",
        v => v <= 10000000000 || "Max 10 characters is required"
      ],
4efdca564   Neeraj Sharma   solve bugs parent...
1899
      mobileNoRule: [v => !!v || " Mobile Number is required"],
b82d0d998   Neeraj Sharma   changes and modif...
1900
1901
      establishmentYearRules: [v => !!v || " Academic Year  is required"],
      errorMessages: "",
495e4037c   Neeraj Sharma   update
1902
      countries: [],
e3e2a04c6   Neeraj Sharma   first commit
1903
1904
      headers: [
        {
5d32331fa   Neeraj Sharma   fix student list ...
1905
          text: "Roll No.",
e3e2a04c6   Neeraj Sharma   first commit
1906
1907
          align: "center",
          sortable: false,
5d32331fa   Neeraj Sharma   fix student list ...
1908
          value: "rollNo"
e3e2a04c6   Neeraj Sharma   first commit
1909
        },
04165779e   Neeraj Sharma   implement parents...
1910
1911
1912
1913
1914
1915
        {
          text: "Profile Pic",
          value: "profilePicUrl",
          sortable: false,
          align: "center"
        },
e3e2a04c6   Neeraj Sharma   first commit
1916
        { text: "Name", value: "name", sortable: false, align: "center" },
b82d0d998   Neeraj Sharma   changes and modif...
1917
1918
1919
        { text: "Email", value: "email", sortable: false, align: "center" },
        { text: "Dob", value: "dob", sortable: false, align: "center" },
        { text: "Gender", value: "gender", sortable: false, align: "center" },
04165779e   Neeraj Sharma   implement parents...
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
        {
          text: "Father Name",
          value: "fatherName",
          sortable: false,
          align: "center"
        },
        {
          text: "Mother Name",
          value: "motherName",
          sortable: false,
          align: "center"
        },
        {
          text: "Academic Year",
          value: "establishmentYear",
          sortable: false,
          align: "center"
        },
b82d0d998   Neeraj Sharma   changes and modif...
1938
        { text: "Mobile No", value: "mobile", sortable: false, align: "center" },
200c2d171   Neeraj Sharma   implement change ...
1939
1940
1941
1942
1943
1944
        {
          text: "Status",
          value: "status",
          sortable: false,
          align: "center"
        },
b82d0d998   Neeraj Sharma   changes and modif...
1945
        { text: "Action", value: "", sortable: false, align: "center" }
e3e2a04c6   Neeraj Sharma   first commit
1946
1947
      ],
      desserts: [],
04165779e   Neeraj Sharma   implement parents...
1948
      parentId: "",
e3e2a04c6   Neeraj Sharma   first commit
1949
      editedIndex: -1,
04165779e   Neeraj Sharma   implement parents...
1950
      parentData: {},
b82d0d998   Neeraj Sharma   changes and modif...
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
      addStudents: {
        role: "STUDENT",
        name: "",
        email: "",
        date: "",
        city: "",
        pincode: "",
        country: "",
        permanentAddress: "",
        presentAddress: "",
        mobile: "",
        state: "",
        gender: "",
b82d0d998   Neeraj Sharma   changes and modif...
1964
1965
        select: "",
        selectSection: "",
04165779e   Neeraj Sharma   implement parents...
1966
1967
1968
1969
1970
        bloodGroup: "",
        allergies: "",
        medicalNotes: "",
        height: "",
        weight: "",
af4cbc7be   Neeraj Sharma   add field roll nu...
1971
        rollNo: "",
b82d0d998   Neeraj Sharma   changes and modif...
1972
1973
        establishmentYear: new Date().getFullYear()
      },
04165779e   Neeraj Sharma   implement parents...
1974
      selectStudents: {
99ffa9511   Neeraj Sharma   add ,view, and ed...
1975
        select: "",
04165779e   Neeraj Sharma   implement parents...
1976
1977
        selectSection: ""
      },
e3e2a04c6   Neeraj Sharma   first commit
1978
1979
1980
1981
      editedItem: {
        role: "STUDENT",
        name: "",
        email: "",
506be6fd7   Neeraj Sharma   implemet dyamic i...
1982
        dob: "",
b82d0d998   Neeraj Sharma   changes and modif...
1983
1984
1985
1986
1987
1988
1989
1990
        city: "",
        pincode: "",
        country: "",
        permanentAddress: "",
        presentAddress: "",
        mobile: "",
        state: "",
        gender: "",
b82d0d998   Neeraj Sharma   changes and modif...
1991
1992
        select: "",
        selectSection: "",
04165779e   Neeraj Sharma   implement parents...
1993
1994
1995
1996
1997
        bloodGroup: "",
        allergies: "",
        medicalNotes: "",
        height: "",
        weight: "",
af4cbc7be   Neeraj Sharma   add field roll nu...
1998
        rollNo: "",
b82d0d998   Neeraj Sharma   changes and modif...
1999
        establishmentYear: new Date().getFullYear()
79583580d   Neeraj Sharma   implement task ma...
2000
      }
e3e2a04c6   Neeraj Sharma   first commit
2001
    }),
b82d0d998   Neeraj Sharma   changes and modif...
2002
2003
2004
    watch: {
      menu(val) {
        val && this.$nextTick(() => (this.$refs.picker.activePicker = "YEAR"));
e3e2a04c6   Neeraj Sharma   first commit
2005
      },
b82d0d998   Neeraj Sharma   changes and modif...
2006
2007
      menu1(val) {
        val && this.$nextTick(() => (this.$refs.picker.activePicker = "YEAR"));
e3e2a04c6   Neeraj Sharma   first commit
2008
      }
b82d0d998   Neeraj Sharma   changes and modif...
2009
2010
    },
    methods: {
04165779e   Neeraj Sharma   implement parents...
2011
2012
2013
2014
2015
2016
2017
2018
2019
      findStudents() {
        this.showLoader = true;
        http()
          .get("/getStudentWithClass", {
            params: {
              classId: this.selectStudents.select,
              sectionId: this.selectStudents.selectSection
            }
          })
506be6fd7   Neeraj Sharma   implemet dyamic i...
2020
2021
2022
          .then(response => {
            this.desserts = response.data.data;
            this.showLoader = false;
506be6fd7   Neeraj Sharma   implemet dyamic i...
2023
2024
2025
2026
2027
2028
          })
          .catch(err => {
            console.log("err====>", err);
            this.showLoader = false;
          });
      },
b82d0d998   Neeraj Sharma   changes and modif...
2029
2030
      getSections(_id) {
        var token = this.$store.state.token;
79583580d   Neeraj Sharma   implement task ma...
2031
        this.showLoader = true;
b82d0d998   Neeraj Sharma   changes and modif...
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
        http()
          .get(
            "/getSectionsList",
            { params: { classId: _id } },
            {
              headers: { Authorization: "Bearer " + token }
            }
          )
          .then(response => {
            this.addSection = response.data.data;
79583580d   Neeraj Sharma   implement task ma...
2042
            this.showLoader = false;
b82d0d998   Neeraj Sharma   changes and modif...
2043
2044
          })
          .catch(err => {
79583580d   Neeraj Sharma   implement task ma...
2045
            this.showLoader = false;
b82d0d998   Neeraj Sharma   changes and modif...
2046
2047
2048
2049
            // console.log("err====>", err);
            // this.$router.replace({ path: '/' });
          });
      },
79006bdcb   Neeraj Sharma   uplaod images all...
2050
2051
      getSection(_id) {
        var token = this.$store.state.token;
79583580d   Neeraj Sharma   implement task ma...
2052
        this.showLoader = true;
79006bdcb   Neeraj Sharma   uplaod images all...
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
        http()
          .get(
            "/getSectionsList",
            { params: { classId: _id } },
            {
              headers: { Authorization: "Bearer " + token }
            }
          )
          .then(response => {
            this.addSection = response.data.data;
79583580d   Neeraj Sharma   implement task ma...
2063
2064
            this.showLoader = false;
            // console.log("getSectionsList=====>", this.addSection);
79006bdcb   Neeraj Sharma   uplaod images all...
2065
2066
          })
          .catch(err => {
79583580d   Neeraj Sharma   implement task ma...
2067
            this.showLoader = false;
79006bdcb   Neeraj Sharma   uplaod images all...
2068
2069
2070
2071
            // console.log("err====>", err);
            // this.$router.replace({ path: '/' });
          });
      },
b82d0d998   Neeraj Sharma   changes and modif...
2072
2073
2074
      pickFile() {
        this.$refs.image.click();
      },
3815afe8c   Neeraj Sharma   fixed all bugs in...
2075
2076
2077
      pickEditFile() {
        this.$refs.editDataImage.click();
      },
506be6fd7   Neeraj Sharma   implemet dyamic i...
2078
2079
2080
      dates: function(date) {
        return moment(date).format("MMMM DD, YYYY");
      },
b82d0d998   Neeraj Sharma   changes and modif...
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
      onFilePicked(e) {
        // console.log(e)
        const files = e.target.files;
        this.imageData.upload = e.target.files[0];
        if (files[0] !== undefined) {
          this.imageName = files[0].name;
          if (this.imageName.lastIndexOf(".") <= 0) {
            return;
          }
          const fr = new FileReader();
          fr.readAsDataURL(files[0]);
          fr.addEventListener("load", () => {
            this.imageUrl = fr.result;
            this.imageFile = files[0]; // this is an image file that can be sent to server...
            this.imageData.imageUrl = URL.createObjectURL(this.imageFile);
b82d0d998   Neeraj Sharma   changes and modif...
2096
2097
2098
2099
2100
2101
2102
          });
        } else {
          this.imageName = "";
          this.imageFile = "";
          this.imageUrl = "";
        }
      },
3815afe8c   Neeraj Sharma   fixed all bugs in...
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
      onEditFilePicked(e) {
        console.log(e);
        const files = e.target.files;
        if (files[0] !== undefined) {
          this.editImageName = files[0].name;
          console.log("this.editImageName", this.editImageName);
  
          if (this.editImageName.lastIndexOf(".") <= 0) {
            return;
          }
          const fr = new FileReader();
          fr.readAsDataURL(files[0]);
          fr.addEventListener("load", () => {
            this.editImageUrl = fr.result;
            this.editiImageFile = files[0]; // this is an image file that can be sent to server...
          });
        } else {
          this.editImageName = "";
          this.editiImageFile = "";
        }
      },
e3e2a04c6   Neeraj Sharma   first commit
2124
2125
2126
      editItem(item) {
        this.editedIndex = this.desserts.indexOf(item);
        this.editedItem = Object.assign({}, item);
a354eff46   Neeraj Sharma   fix changes
2127
2128
2129
2130
        this.editedItem.fatherName = item.parentId.fatherName;
        this.editedItem.fatherCellNo = item.parentId.fatherCellNo;
        this.editedItem.motherName = item.parentId.motherName;
        this.editedItem.motherCellNo = item.parentId.motherCellNo;
04165779e   Neeraj Sharma   implement parents...
2131
2132
2133
2134
        this.editedItem.dob =
          this.editedItem.dob != undefined
            ? (this.editedItem.dob = this.editedItem.dob.substring(0, 10))
            : (this.editedItem.dob = "");
e3e2a04c6   Neeraj Sharma   first commit
2135
2136
2137
        this.dialog = true;
      },
      profile(item) {
9c887fee0   Neeraj Sharma   changes
2138
        // console.log("item", item);
e3e2a04c6   Neeraj Sharma   first commit
2139
2140
        this.editedIndex = this.desserts.indexOf(item);
        this.editedItem = Object.assign({}, item);
a354eff46   Neeraj Sharma   fix changes
2141
2142
2143
2144
        this.editedItem.fatherName = item.parentId.fatherName;
        this.editedItem.fatherCellNo = item.parentId.fatherCellNo;
        this.editedItem.motherName = item.parentId.motherName;
        this.editedItem.motherCellNo = item.parentId.motherCellNo;
e3e2a04c6   Neeraj Sharma   first commit
2145
2146
        this.dialog1 = true;
      },
e3e2a04c6   Neeraj Sharma   first commit
2147
2148
2149
2150
2151
      deleteItem(item) {
        let deleteStudent = {
          studentId: item._id
        };
        http()
b82d0d998   Neeraj Sharma   changes and modif...
2152
2153
2154
2155
2156
2157
          .delete(
            "/deleteStudent",
            confirm("Are you sure you want to delete this?") && {
              params: deleteStudent
            }
          )
e3e2a04c6   Neeraj Sharma   first commit
2158
2159
          .then(response => {
            // console.log("deleteUers",deleteStudent)
9c887fee0   Neeraj Sharma   changes
2160
2161
            this.snackbar = true;
            this.text = "Successfully delete Existing Student";
3815afe8c   Neeraj Sharma   fixed all bugs in...
2162
            this.findStudents();
e3e2a04c6   Neeraj Sharma   first commit
2163
2164
          })
          .catch(error => {
1c1942362   Neeraj Sharma   commit code Schoo...
2165
            // console.log(error);
e3e2a04c6   Neeraj Sharma   first commit
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
          });
      },
      activeTab(type) {
        switch (type) {
          case "existing":
            this.newActive = false;
            this.isActive = true;
            break;
  
          default:
            this.newActive = true;
            this.isActive = false;
            break;
        }
      },
e3e2a04c6   Neeraj Sharma   first commit
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
      close() {
        this.dialog = false;
        setTimeout(() => {
          this.editedItem = Object.assign({}, this.defaultItem);
          this.editedIndex = -1;
        }, 300);
      },
      close1() {
        this.dialog1 = false;
      },
d9bb52b5b   Neeraj Sharma   implement trello ...
2191
2192
2193
      copyData() {
        this.addStudents.permanentAddress = this.addStudents.presentAddress;
      },
e3e2a04c6   Neeraj Sharma   first commit
2194
2195
      submit() {
        if (this.$refs.form.validate()) {
1c1942362   Neeraj Sharma   commit code Schoo...
2196
          let addStudent = {
04165779e   Neeraj Sharma   implement parents...
2197
            parentId: this.parentId,
b82d0d998   Neeraj Sharma   changes and modif...
2198
2199
2200
2201
2202
2203
2204
2205
2206
            name: this.addStudents.name,
            email: this.addStudents.email,
            role: this.addStudents.role,
            dob: this.addStudents.date,
            city: this.addStudents.city,
            pincode: this.addStudents.pincode,
            country: this.addStudents.country,
            permanentAddress: this.addStudents.permanentAddress,
            presentAddress: this.addStudents.presentAddress,
4efdca564   Neeraj Sharma   solve bugs parent...
2207
            mobile: this.addStudents.mobile,
b82d0d998   Neeraj Sharma   changes and modif...
2208
2209
            state: this.addStudents.state,
            gender: this.addStudents.gender,
b82d0d998   Neeraj Sharma   changes and modif...
2210
2211
2212
            establishmentYear: this.addStudents.establishmentYear,
            classId: this.addStudents.select,
            sectionId: this.addStudents.selectSection,
04165779e   Neeraj Sharma   implement parents...
2213
            bloodGroup: this.addStudents.bloodGroup,
04165779e   Neeraj Sharma   implement parents...
2214
2215
            medicalNotes: this.addStudents.medicalNotes,
            height: this.addStudents.height,
af4cbc7be   Neeraj Sharma   add field roll nu...
2216
2217
            weight: this.addStudents.weight,
            rollNo: this.addStudents.rollNo
e3e2a04c6   Neeraj Sharma   first commit
2218
          };
ebe04cc1d   Neeraj Sharma   solve issue uploa...
2219
2220
2221
          if (this.imageUrl) {
            var str = this.imageUrl;
            const [baseUrl, imageUrl] = str.split(/,/);
ebe04cc1d   Neeraj Sharma   solve issue uploa...
2222
2223
            addStudent.upload = imageUrl;
          }
5f1d4b444   Neeraj Sharma   fix design and fi...
2224
          this.loading = true;
e3e2a04c6   Neeraj Sharma   first commit
2225
          http()
1c1942362   Neeraj Sharma   commit code Schoo...
2226
            .post("/createStudent", addStudent)
e3e2a04c6   Neeraj Sharma   first commit
2227
            .then(response => {
4430dd671   Neeraj Sharma   somethings change...
2228
2229
2230
              // console.log(addStudent);
              this.snackbar = true;
              this.text = "New Student added successfully";
506be6fd7   Neeraj Sharma   implemet dyamic i...
2231
              // this.getStudentList();
b82d0d998   Neeraj Sharma   changes and modif...
2232
              this.clear();
3815afe8c   Neeraj Sharma   fixed all bugs in...
2233
              this.clearParents();
5f1d4b444   Neeraj Sharma   fix design and fi...
2234
              this.loading = false;
e3e2a04c6   Neeraj Sharma   first commit
2235
2236
2237
            })
            .catch(error => {
              // console.log(error);
9c887fee0   Neeraj Sharma   changes
2238
2239
              this.snackbar = true;
              this.text = error.response.data.message;
5f1d4b444   Neeraj Sharma   fix design and fi...
2240
              this.loading = false;
e3e2a04c6   Neeraj Sharma   first commit
2241
2242
2243
            });
        }
      },
e3e2a04c6   Neeraj Sharma   first commit
2244
2245
      clear() {
        this.$refs.form.reset();
0551a0f15   Neeraj Sharma   implemnet functio...
2246
        this.imageUrl = "";
e3e2a04c6   Neeraj Sharma   first commit
2247
      },
3815afe8c   Neeraj Sharma   fixed all bugs in...
2248
2249
2250
      clearParents() {
        this.$refs.parentForm.reset();
      },
e3e2a04c6   Neeraj Sharma   first commit
2251
      save() {
1c1942362   Neeraj Sharma   commit code Schoo...
2252
        let editStudent = {
04165779e   Neeraj Sharma   implement parents...
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
          studentId: this.editedItem._id,
          name: this.editedItem.name,
          email: this.editedItem.email,
          role: this.editedItem.role,
          dob: this.editedItem.dob,
          city: this.editedItem.city,
          pincode: this.editedItem.pincode,
          country: this.editedItem.country,
          permanentAddress: this.editedItem.permanentAddress,
          presentAddress: this.editedItem.presentAddress,
4efdca564   Neeraj Sharma   solve bugs parent...
2263
          mobile: this.editedItem.mobile,
04165779e   Neeraj Sharma   implement parents...
2264
2265
          state: this.editedItem.state,
          gender: this.editedItem.gender,
04165779e   Neeraj Sharma   implement parents...
2266
2267
2268
2269
          establishmentYear: this.editedItem.establishmentYear,
          classId: this.editedItem.select,
          sectionId: this.editedItem.selectSection,
          bloodGroup: this.editedItem.bloodGroup,
04165779e   Neeraj Sharma   implement parents...
2270
2271
          medicalNotes: this.editedItem.medicalNotes,
          height: this.editedItem.height,
af4cbc7be   Neeraj Sharma   add field roll nu...
2272
2273
          weight: this.editedItem.weight,
          rollNo: this.editedItem.rollNo
04165779e   Neeraj Sharma   implement parents...
2274
        };
3815afe8c   Neeraj Sharma   fixed all bugs in...
2275
2276
2277
2278
        if (this.editImageUrl) {
          var str = this.editImageUrl;
          const [baseUrl, editImageUrl] = str.split(/,/);
          editStudent.upload = editImageUrl;
04165779e   Neeraj Sharma   implement parents...
2279
        }
3815afe8c   Neeraj Sharma   fixed all bugs in...
2280
        this.editLoading = true;
e3e2a04c6   Neeraj Sharma   first commit
2281
        http()
1c1942362   Neeraj Sharma   commit code Schoo...
2282
          .put("/updateStudent", editStudent)
e3e2a04c6   Neeraj Sharma   first commit
2283
          .then(response => {
0551a0f15   Neeraj Sharma   implemnet functio...
2284
            this.snackbar = true;
4430dd671   Neeraj Sharma   somethings change...
2285
            this.text = response.data.message;
0551a0f15   Neeraj Sharma   implemnet functio...
2286
            this.imageUrl = "";
506be6fd7   Neeraj Sharma   implemet dyamic i...
2287
            this.findStudents();
99ffa9511   Neeraj Sharma   add ,view, and ed...
2288
            this.close();
3815afe8c   Neeraj Sharma   fixed all bugs in...
2289
            this.editLoading = false;
e3e2a04c6   Neeraj Sharma   first commit
2290
2291
          })
          .catch(error => {
b82d0d998   Neeraj Sharma   changes and modif...
2292
            // console.log(error);
4430dd671   Neeraj Sharma   somethings change...
2293
2294
            this.snackbar = true;
            this.text = error.response.data.statusText;
3815afe8c   Neeraj Sharma   fixed all bugs in...
2295
            this.editLoading = false;
e3e2a04c6   Neeraj Sharma   first commit
2296
          });
e3e2a04c6   Neeraj Sharma   first commit
2297
      },
04165779e   Neeraj Sharma   implement parents...
2298
2299
      submitParentDetails() {
        if (this.$refs.parentForm.validate()) {
4efdca564   Neeraj Sharma   solve bugs parent...
2300
2301
          this.parentData.fatherCellNo = this.parentData.fatherCellNo;
          this.parentData.motherCellNo = this.parentData.motherCellNo;
04165779e   Neeraj Sharma   implement parents...
2302
2303
2304
2305
2306
2307
          let addparentDetails = {
            email: this.parentData.email,
            fatherName: this.parentData.fatherName,
            fatherCellNo: this.parentData.fatherCellNo,
            motherName: this.parentData.motherName,
            motherCellNo: this.parentData.motherCellNo,
3ce6253e2   Neeraj Sharma   pass the value mo...
2308
2309
            fatherProfession: this.parentData.fatherProfession,
            motherProfession: this.parentData.motherProfession,
04165779e   Neeraj Sharma   implement parents...
2310
2311
2312
2313
2314
2315
2316
2317
            role: "PARENT"
          };
          this.loading = true;
          http()
            .post("/createParent", addparentDetails)
            .then(response => {
              this.parentId = response.data.data.id;
              this.e2 = 2;
4430dd671   Neeraj Sharma   somethings change...
2318
2319
              this.snackbar = true;
              this.text = "successfully";
04165779e   Neeraj Sharma   implement parents...
2320
2321
2322
2323
2324
              // this.getStudentList();
              this.clear();
              this.loading = false;
            })
            .catch(error => {
4430dd671   Neeraj Sharma   somethings change...
2325
2326
2327
              this.snackbar = true;
              this.text = error.response.data.message;
              this.text = error.response.data.statusText;
04165779e   Neeraj Sharma   implement parents...
2328
2329
2330
2331
2332
              this.loading = false;
            });
        }
      },
      getParentDetails() {
fc77c38e0   Neeraj Sharma   fixed all task ch...
2333
        if (this.parentData.fatherCellNo.length > 9) {
d9bb52b5b   Neeraj Sharma   implement trello ...
2334
          this.showLoader = true;
04165779e   Neeraj Sharma   implement parents...
2335
2336
          http()
            .get("getParticularParent", {
fc77c38e0   Neeraj Sharma   fixed all task ch...
2337
              params: { fatherCellNo: this.parentData.fatherCellNo },
04165779e   Neeraj Sharma   implement parents...
2338
2339
2340
2341
2342
2343
2344
2345
2346
              headers: {
                Authorization: "Bearer " + this.$store.state.token
              }
            })
            .then(response => {
              this.showNext = true;
              this.showParent = false;
              this.parentData = response.data.data;
              this.parentId = response.data.data._id;
d9bb52b5b   Neeraj Sharma   implement trello ...
2347
              this.showLoader = false;
04165779e   Neeraj Sharma   implement parents...
2348
2349
2350
            })
            .catch(error => {
              console.log("err====>", error.response.data.message);
d9bb52b5b   Neeraj Sharma   implement trello ...
2351
2352
              this.text = error.response.data.message;
              this.snackbar = true;
4efdca564   Neeraj Sharma   solve bugs parent...
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
              if (this.text === "Data not found!") {
                this.showNext = false;
                this.showParent = true;
                this.parentData.email = "";
                this.parentData.fatherName = "";
                this.parentData.motherName = "";
                this.parentData.motherCellNo = "";
                this.parentData.fatherProfession = "";
                this.parentData.motherProfession = "";
              }
d9bb52b5b   Neeraj Sharma   implement trello ...
2363
              this.showLoader = false;
04165779e   Neeraj Sharma   implement parents...
2364
2365
            });
        }
200c2d171   Neeraj Sharma   implement change ...
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
      },
      suspendStudentStatus(status, id) {
        let suspendStudentData = {
          studentId: id,
          status: status
        };
        http()
          .put("/suspendStudentAccount", suspendStudentData)
          .then(response => {
            this.findStudents()();
            this.text = response.data.message;
            this.snackbar = true;
          })
          .catch(error => {
            // console.log(error.response.data.data);
            this.text = error.response.data.message;
          });
e3e2a04c6   Neeraj Sharma   first commit
2383
2384
2385
      }
    },
    mounted() {
495e4037c   Neeraj Sharma   update
2386
2387
      const getCountryList = countryList();
      this.countries = getCountryList;
b82d0d998   Neeraj Sharma   changes and modif...
2388
2389
2390
2391
2392
2393
2394
      var token = this.$store.state.token;
      http()
        .get("/getClassesList", {
          headers: { Authorization: "Bearer " + token }
        })
        .then(response => {
          this.addclass = response.data.data;
b82d0d998   Neeraj Sharma   changes and modif...
2395
        })
00e4bc4e1   Neeraj Sharma   fixed auntentication
2396
2397
2398
2399
2400
2401
2402
2403
        .catch(error => {
          this.showLoader = false;
          if (error.response.status === 401) {
            this.$router.replace({ path: "/" });
            this.$store.dispatch("setToken", null);
            this.$store.dispatch("Id", null);
            this.$store.dispatch("Role", null);
          }
b82d0d998   Neeraj Sharma   changes and modif...
2404
        });
e3e2a04c6   Neeraj Sharma   first commit
2405
    },
aa8fc5033   Neeraj Sharma   implenment all pa...
2406
    created() {
a17c68a03   Neeraj Sharma   implement two rou...
2407
2408
2409
2410
2411
2412
2413
      this.$root.$on("app:search", search => {
        this.search = search;
      });
    },
    beforeDestroy() {
      // dont forget to remove the listener
      this.$root.$off("app:search");
e3e2a04c6   Neeraj Sharma   first commit
2414
2415
2416
2417
    }
  };
  </script>
  <style scoped>
e3e2a04c6   Neeraj Sharma   first commit
2418
  .active {
687e0b929   Neeraj Sharma   add user,attenden...
2419
    background-color: gray;
e3e2a04c6   Neeraj Sharma   first commit
2420
2421
2422
2423
2424
    color: white !important;
  }
  .activebtn {
    color: black !important;
  }
e3e2a04c6   Neeraj Sharma   first commit
2425
  </style>