Blame view

src/pages/Report/idCard.vue 30.1 KB
7c435b5bb   Shikha Mishra   added icard repor...
1
2
  <template>
    <v-container fluid class="body-color">
ecf8cdfdd   Neeraj Sharma   create design of ...
3
      <!-- **** Id Card Select options **** -->
7c435b5bb   Shikha Mishra   added icard repor...
4
5
6
7
      <v-card flat class="elevation-0 transparent">
        <v-form ref="form" v-model="valid" lazy-validation>
          <v-flex xs12 sm12 lg12>
            <v-layout wrap>
5ddc6bb04   Neeraj Sharma   complete design a...
8
              <v-flex xs12 sm12 lg4>
7c435b5bb   Shikha Mishra   added icard repor...
9
                <v-layout>
5ddc6bb04   Neeraj Sharma   complete design a...
10
                  <v-flex xs12 sm12 lg10 class="ml-2">
7c435b5bb   Shikha Mishra   added icard repor...
11
12
                    <v-autocomplete
                      v-model="getReport.role"
a55b7fca2   Neeraj Sharma   complete design a...
13
                      label="Select Type"
7c435b5bb   Shikha Mishra   added icard repor...
14
15
                      :items="getRoles"
                      item-text="name"
d84fa5db2   Amber Dev   bugs in report id
16
                      return-object
7c435b5bb   Shikha Mishra   added icard repor...
17
18
19
20
21
22
                      @change="getRoleInputs(getReport.role)"
                      required
                    ></v-autocomplete>
                  </v-flex>
                </v-layout>
              </v-flex>
d84fa5db2   Amber Dev   bugs in report id
23
              <!-- SELECT CLASS -->
5ddc6bb04   Neeraj Sharma   complete design a...
24
              <v-flex xs12 sm12 lg4 v-if="showClass">
7c435b5bb   Shikha Mishra   added icard repor...
25
                <v-layout>
5ddc6bb04   Neeraj Sharma   complete design a...
26
                  <v-flex xs12 sm12 lg10 class="ml-2">
7c435b5bb   Shikha Mishra   added icard repor...
27
28
29
30
31
32
                    <v-select
                      v-model="getReport.classId"
                      label="Select Class"
                      :items="classList"
                      item-text="classNum"
                      item-value="_id"
7c435b5bb   Shikha Mishra   added icard repor...
33
34
35
36
37
38
                      @change="getSections(getReport.classId)"
                      required
                    ></v-select>
                  </v-flex>
                </v-layout>
              </v-flex>
d84fa5db2   Amber Dev   bugs in report id
39
              <!-- SELECT SECTION -->
5ddc6bb04   Neeraj Sharma   complete design a...
40
              <v-flex xs12 sm12 lg4 v-if="showSections">
7c435b5bb   Shikha Mishra   added icard repor...
41
                <v-layout>
5ddc6bb04   Neeraj Sharma   complete design a...
42
                  <v-flex xs12 sm12 lg10 class="ml-2">
7c435b5bb   Shikha Mishra   added icard repor...
43
44
45
46
47
48
49
50
                    <v-select
                      :items="addSection"
                      label="Select Section"
                      v-model="getReport.sectionId"
                      item-text="name"
                      item-value="_id"
                      name="Select Section"
                      @change="getStudents"
7c435b5bb   Shikha Mishra   added icard repor...
51
52
53
54
55
                      required
                    ></v-select>
                  </v-flex>
                </v-layout>
              </v-flex>
d84fa5db2   Amber Dev   bugs in report id
56
              <!-- SELECT STUDENT -->
5ddc6bb04   Neeraj Sharma   complete design a...
57
              <v-flex xs12 sm12 lg4 v-if="showStudents">
7c435b5bb   Shikha Mishra   added icard repor...
58
                <v-layout>
5ddc6bb04   Neeraj Sharma   complete design a...
59
                  <v-flex xs12 sm12 lg10 class="ml-2">
7c435b5bb   Shikha Mishra   added icard repor...
60
                    <v-select
11d037abe   Neeraj Sharma   commit code
61
                      :items="getSelectUserData"
7c435b5bb   Shikha Mishra   added icard repor...
62
63
64
65
                      label="Select Student"
                      v-model="getReport._id"
                      item-text="name"
                      item-value="_id"
7c435b5bb   Shikha Mishra   added icard repor...
66
67
68
69
70
                      required
                    ></v-select>
                  </v-flex>
                </v-layout>
              </v-flex>
5ddc6bb04   Neeraj Sharma   complete design a...
71
              <v-flex xs12 sm12 lg4 v-if="showTeacher">
7c435b5bb   Shikha Mishra   added icard repor...
72
                <v-layout>
5ddc6bb04   Neeraj Sharma   complete design a...
73
                  <v-flex xs12 sm12 lg10 class="ml-2">
7c435b5bb   Shikha Mishra   added icard repor...
74
75
76
                    <v-select
                      v-model="getReport._id"
                      label="Select Teacher"
11d037abe   Neeraj Sharma   commit code
77
                      :items="getSelectUserData"
7c435b5bb   Shikha Mishra   added icard repor...
78
79
                      item-text="name"
                      item-value="_id"
7c435b5bb   Shikha Mishra   added icard repor...
80
81
82
83
84
                      required
                    ></v-select>
                  </v-flex>
                </v-layout>
              </v-flex>
5ddc6bb04   Neeraj Sharma   complete design a...
85
              <v-flex xs12 sm12 lg4 v-if="showAdmin">
7c435b5bb   Shikha Mishra   added icard repor...
86
                <v-layout>
5ddc6bb04   Neeraj Sharma   complete design a...
87
                  <v-flex xs12 sm12 lg10 class="ml-2">
7c435b5bb   Shikha Mishra   added icard repor...
88
89
90
                    <v-select
                      v-model="getReport._id"
                      label="Select Admin"
11d037abe   Neeraj Sharma   commit code
91
                      :items="getSelectUserData"
7c435b5bb   Shikha Mishra   added icard repor...
92
93
                      item-text="name"
                      item-value="_id"
7c435b5bb   Shikha Mishra   added icard repor...
94
95
96
97
98
                      required
                    ></v-select>
                  </v-flex>
                </v-layout>
              </v-flex>
5ddc6bb04   Neeraj Sharma   complete design a...
99
              <v-flex xs12 sm12 lg4 v-if="showAccountant">
7c435b5bb   Shikha Mishra   added icard repor...
100
                <v-layout>
5ddc6bb04   Neeraj Sharma   complete design a...
101
                  <v-flex xs12 sm12 lg10 class="ml-2">
7c435b5bb   Shikha Mishra   added icard repor...
102
103
104
                    <v-select
                      v-model="getReport._id"
                      label="Select Accountant"
11d037abe   Neeraj Sharma   commit code
105
                      :items="getSelectUserData"
7c435b5bb   Shikha Mishra   added icard repor...
106
107
                      item-text="name"
                      item-value="_id"
7c435b5bb   Shikha Mishra   added icard repor...
108
109
110
111
112
                      required
                    ></v-select>
                  </v-flex>
                </v-layout>
              </v-flex>
5ddc6bb04   Neeraj Sharma   complete design a...
113
              <v-flex xs12 sm12 lg4 v-if="showLibrarian">
7c435b5bb   Shikha Mishra   added icard repor...
114
                <v-layout>
5ddc6bb04   Neeraj Sharma   complete design a...
115
                  <v-flex xs12 sm12 lg10 class="ml-2">
7c435b5bb   Shikha Mishra   added icard repor...
116
117
118
                    <v-select
                      v-model="getReport._id"
                      label="Select Librarian"
11d037abe   Neeraj Sharma   commit code
119
                      :items="getSelectUserData "
7c435b5bb   Shikha Mishra   added icard repor...
120
121
                      item-text="name"
                      item-value="_id"
7c435b5bb   Shikha Mishra   added icard repor...
122
123
124
125
126
                      required
                    ></v-select>
                  </v-flex>
                </v-layout>
              </v-flex>
5ddc6bb04   Neeraj Sharma   complete design a...
127
              <v-flex xs12 sm12 lg4>
7c435b5bb   Shikha Mishra   added icard repor...
128
                <v-layout>
5ddc6bb04   Neeraj Sharma   complete design a...
129
                  <v-flex xs12 sm12 lg10 class="ml-2">
7c435b5bb   Shikha Mishra   added icard repor...
130
                    <v-autocomplete
a55b7fca2   Neeraj Sharma   complete design a...
131
                      label="Select View Type"
7c435b5bb   Shikha Mishra   added icard repor...
132
                      type="text"
7c435b5bb   Shikha Mishra   added icard repor...
133
134
135
136
                      :items="typeList"
                      v-model="getReport.form"
                      item-text="name"
                      item-value="value"
a55b7fca2   Neeraj Sharma   complete design a...
137
                      :rules="typeRules"
ecf8cdfdd   Neeraj Sharma   create design of ...
138
                      @change="getReportType(getReport.form)"
7c435b5bb   Shikha Mishra   added icard repor...
139
140
141
142
143
                      required
                    ></v-autocomplete>
                  </v-flex>
                </v-layout>
              </v-flex>
5ddc6bb04   Neeraj Sharma   complete design a...
144
              <v-flex xs12 sm12 lg4>
7c435b5bb   Shikha Mishra   added icard repor...
145
146
147
148
149
                <v-btn
                  @click="getCards"
                  round
                  dark
                  :loading="loading"
0fa3b3a79   Neeraj Sharma   add loader after ...
150
                  class="open-dialog-button mt-3"
7c435b5bb   Shikha Mishra   added icard repor...
151
152
153
154
155
156
                >Get Report</v-btn>
              </v-flex>
            </v-layout>
          </v-flex>
        </v-form>
      </v-card>
ecf8cdfdd   Neeraj Sharma   create design of ...
157
      <div>
7c435b5bb   Shikha Mishra   added icard repor...
158
159
160
        <v-layout v-show="showReport">
          <v-flex xs12>
            <v-card class="transparent elevation-0">
20fba3a75   Amber Dev   bug in report get id
161
              <!-- print button -->
7c435b5bb   Shikha Mishra   added icard repor...
162
163
164
165
166
167
168
169
              <v-layout>
                <v-flex xs12>
                  <v-btn class="open-dialog-button right" round dark @click="prindIDCardReport()">
                    Print
                    <v-icon right dark>print</v-icon>
                  </v-btn>
                </v-flex>
              </v-layout>
ecf8cdfdd   Neeraj Sharma   create design of ...
170
            </v-card>
d9cb34e69   Amber Dev   centered cards
171
            <v-layout row wrap id='printMe' justify-center>
7c44528bc   Amber Dev   report id bug
172
173
            <v-card v-for="(getCard,index) in getCard" :key="index" style="page-break-after: always;">
              <v-container grid-list-md>
1c422f1bf   Amber Dev   added id card
174
175
176
                <v-layout class="col-sm-12">
                  <div
                    style="font-family: arial;
ecf8cdfdd   Neeraj Sharma   create design of ...
177
178
179
180
181
                    max-width: 794px;
                    max-height: 1123px;
                    margin-left: auto;
                    margin-right: auto;
                    -webkit-print-color-adjust: exact;"
1c422f1bf   Amber Dev   added id card
182
183
184
                  >
                    <div
                      style="
ecf8cdfdd   Neeraj Sharma   create design of ...
185
186
187
188
189
190
                       float: left;
                       height: 520px;
                       width: 520px;
                       background: #fff;
                       border: 1px solid lightgray;
                       position:relative;"
1c422f1bf   Amber Dev   added id card
191
192
193
194
195
196
197
198
199
200
                    >
                      <!-- bottom-right-side-image -->
                      <img
                        src="/static/icon/shape1.png"
                        alt="shape"
                        style="position:absolute;width: 90px;"
                      />
                      <!-- Front Side -->
                      <v-layout
                        style="
ecf8cdfdd   Neeraj Sharma   create design of ...
201
202
                       text-align: center;
                       margin-top: 50px;"
1c422f1bf   Amber Dev   added id card
203
204
205
206
207
208
209
210
211
                        v-if="frontPart"
                      >
                        <v-flex xs12>
                          <!-- school Logo Url -->
                          <img
                            v-if="getCard.schoolLogoUrl"
                            :src="getCard.schoolLogoUrl"
                            alt="schoollogo"
                            style="
ecf8cdfdd   Neeraj Sharma   create design of ...
212
213
214
                           width: 110px;
                           margin-top:10px;
                           overflow:hidden"
1c422f1bf   Amber Dev   added id card
215
216
217
218
219
220
                          />
                          <img
                            src="/static/default_thumb.png"
                            v-if="!getCard.schoolLogoUrl"
                            alt="schoollogo"
                            style="
9b444e5c3   Neeraj Sharma   add logo in login...
221
222
223
                           width: 110px;
                           margin-top:10px;
                           overflow:hidden"
1c422f1bf   Amber Dev   added id card
224
225
226
227
228
229
230
231
                          />
                          <v-layout style="margin:auto">
                            <!-- profile url -->
                            <img
                              v-if="getCard.profilePicUrl"
                              :src="getCard.profilePicUrl"
                              alt="profileImage"
                              style=";
ecf8cdfdd   Neeraj Sharma   create design of ...
232
233
234
235
236
237
                            width: 110px;
                            margin:10px auto;
                            width: 110px;
                            margin: 10px auto;
                            border: 3px solid #323232;
                            border-radius: 12px;"
1c422f1bf   Amber Dev   added id card
238
239
240
                            />
                            <img
                              style="
ecf8cdfdd   Neeraj Sharma   create design of ...
241
242
243
244
                          width: 110px;
                          margin:10px auto;
                          width: 110px;
                          margin: 10px auto;"
1c422f1bf   Amber Dev   added id card
245
246
247
248
249
                              alt="dummy"
                              src="/static/icon/user.png"
                              v-if="!getCard.profilePicUrl && getCard.role != '2'"
                            />
                          </v-layout>
ecf8cdfdd   Neeraj Sharma   create design of ...
250

1c422f1bf   Amber Dev   added id card
251
252
                          <p
                            style="color: #302653;font-size:24px;
0fa3b3a79   Neeraj Sharma   add loader after ...
253
254
                            letter-spacing: 4px;
                            margin-bottom:14px;"
1c422f1bf   Amber Dev   added id card
255
256
257
258
259
                          >
                            <b>{{ getCard.name}}</b>
                          </p>
                          <p
                            style="color: #302653;
0fa3b3a79   Neeraj Sharma   add loader after ...
260
261
262
                            font-size:14px;
                            letter-spacing: 4px;
                            margin-bottom:14px;"
1c422f1bf   Amber Dev   added id card
263
264
265
266
267
268
                          >
                            <b>{{ getCard.gender}}</b>
                          </p>
                          <p
                            v-if="getCard.classId"
                            style="color: #302653;
0fa3b3a79   Neeraj Sharma   add loader after ...
269
270
271
                            font-size:24px;
                            letter-spacing: 4px;
                            margin-bottom:14px;"
1c422f1bf   Amber Dev   added id card
272
273
274
275
                          >{{ getCard.classId.classNum }}</p>
                          <p
                            v-if="getCard.classId"
                            style="color: #302653;
0fa3b3a79   Neeraj Sharma   add loader after ...
276
277
278
                            font-size:24px;
                            letter-spacing: 4px;
                            margin-bottom:14px;"
1c422f1bf   Amber Dev   added id card
279
280
281
282
                          >{{ getCard.sectionId.name }}</p>
                          <p
                            v-if="getCard.rollNo"
                            style="color: #302653;
0fa3b3a79   Neeraj Sharma   add loader after ...
283
284
285
                             font-size:24px;
                            letter-spacing: 2px;
                            margin-bottom:10px;"
1c422f1bf   Amber Dev   added id card
286
287
288
289
                          >Roll: {{ getCard.rollNo }}</p>
                          <p
                            v-if="getCard.joinDate"
                            style="color: #302653;
0fa3b3a79   Neeraj Sharma   add loader after ...
290
291
                            margin-bottom:10px;
                            font-size:16px;
ecf8cdfdd   Neeraj Sharma   create design of ...
292
                            letter-spacing: 2px;"
1c422f1bf   Amber Dev   added id card
293
294
295
296
                          >{{ dates(getCard.joinDate) }}</p>
                          <p
                            v-if="getCard.joiningDate"
                            style="color: #302653;
0fa3b3a79   Neeraj Sharma   add loader after ...
297
298
                            margin-bottom:10px;
                            font-size:16px;
ecf8cdfdd   Neeraj Sharma   create design of ...
299
                            letter-spacing: 2px;"
1c422f1bf   Amber Dev   added id card
300
301
302
303
                          >{{ dates(getCard.joiningDate) }}</p>
                          <p
                            v-if="getCard.phone"
                            style="color: #302653;
0fa3b3a79   Neeraj Sharma   add loader after ...
304
305
                            margin-bottom:10px;
                            font-size:16px;
ecf8cdfdd   Neeraj Sharma   create design of ...
306
                            letter-spacing: 2px;"
1c422f1bf   Amber Dev   added id card
307
308
309
                          >{{ getCard.phone }}</p>
                          <p
                            style="
ecf8cdfdd   Neeraj Sharma   create design of ...
310
311
312
                          font-size: 19px;
                          font-weight: 100;
                          color: rgb(48, 38, 83);
0fa3b3a79   Neeraj Sharma   add loader after ...
313
314
                          letter-spacing: 5px;
                          margin-bottom:10px;"
1c422f1bf   Amber Dev   added id card
315
316
317
318
319
320
                          >
                            <span v-if="getCard.mobile">{{ getCard.mobile}}</span>
                            <span v-if="getCard.mobileNo">{{ getCard.mobileNo }}</span>
                          </p>
                          <p
                            style="
ecf8cdfdd   Neeraj Sharma   create design of ...
321
322
323
                          font-size: 17px;
                          font-weight: 100;
                          color: rgb(48, 38, 83);
0fa3b3a79   Neeraj Sharma   add loader after ...
324
325
                          letter-spacing: 4px;
                          margin-bottom:14px;"
1c422f1bf   Amber Dev   added id card
326
327
328
329
330
                          >{{ getCard.email}}</p>
                        </v-flex>
                      </v-layout>
                      <!-- back side -->
                      <v-layout style="
ecf8cdfdd   Neeraj Sharma   create design of ...
331
                       text-align: center;" v-if="backPart">
1c422f1bf   Amber Dev   added id card
332
333
334
335
336
337
338
                        <v-flex xs12>
                          <!-- school Logo Url -->
                          <img
                            v-if="getCard.schoolLogoUrl"
                            :src="getCard.schoolLogoUrl"
                            alt="schoollogo"
                            style="
ecf8cdfdd   Neeraj Sharma   create design of ...
339
340
341
                           width: 110px;
                           margin-top:10px;
                           overflow:hidden"
1c422f1bf   Amber Dev   added id card
342
343
344
345
346
347
                          />
                          <img
                            v-if="getCard.schoolId"
                            :src="getCard.schoolId.schoolLogoUrl"
                            alt="schoollogo"
                            style="
ecf8cdfdd   Neeraj Sharma   create design of ...
348
349
350
                           width: 110px;
                           margin-top:10px;
                           overflow:hidden"
1c422f1bf   Amber Dev   added id card
351
352
353
354
                          />
                          <p
                            v-if="getCard.schoolLogoUrl"
                            style="color: #302653;
0fa3b3a79   Neeraj Sharma   add loader after ...
355
356
357
                            font-size:24px;
                            letter-spacing: 4px;
                            margin-bottom:14px;"
1c422f1bf   Amber Dev   added id card
358
359
360
                          >
                            <b>{{ getCard.name}}</b>
                          </p>
a55b7fca2   Neeraj Sharma   complete design a...
361

1c422f1bf   Amber Dev   added id card
362
363
364
                          <p
                            v-if="getCard.city"
                            style="
ecf8cdfdd   Neeraj Sharma   create design of ...
365
366
367
                          font-size: 17px;
                          font-weight: 100;
                          color: rgb(48, 38, 83);
0fa3b3a79   Neeraj Sharma   add loader after ...
368
369
                          letter-spacing: 4px;
                          margin-bottom:14px;"
1c422f1bf   Amber Dev   added id card
370
371
372
                          >{{ getCard.city}}</p>
                          <p
                            style="
ecf8cdfdd   Neeraj Sharma   create design of ...
373
374
375
                          font-size: 17px;
                          font-weight: 100;
                          color: rgb(48, 38, 83);
0fa3b3a79   Neeraj Sharma   add loader after ...
376
377
                          letter-spacing: 4px;
                          margin-bottom:14px;"
1c422f1bf   Amber Dev   added id card
378
379
380
381
382
383
384
385
386
387
                          >
                            {{ getCard.address }}
                            {{ getCard.presentAddress }}
                            <span
                              v-if="getCard.state"
                            >({{ getCard.state }})</span>
                          </p>
                          <p
                            v-if="getCard.establishmentYear"
                            style="
ecf8cdfdd   Neeraj Sharma   create design of ...
388
389
390
                          font-size: 17px;
                          font-weight: 100;
                          color: rgb(48, 38, 83);
0fa3b3a79   Neeraj Sharma   add loader after ...
391
392
                          letter-spacing: 4px;
                          margin-bottom:14px;"
1c422f1bf   Amber Dev   added id card
393
394
395
396
397
398
399
400
                          >{{ getCard.establishmentYear }}</p>
                        </v-flex>
                      </v-layout>
                      <!-- bottom-right-side-image -->
                      <img
                        src="static/icon/shape2.png"
                        alt="shape2"
                        style="bottom: 0;
ecf8cdfdd   Neeraj Sharma   create design of ...
401
402
403
                        position: absolute;
                        right: 0;
                        width: 110px;"
1c422f1bf   Amber Dev   added id card
404
405
                      />
                    </div>
37cb39130   Shikha Mishra   change the ui of ...
406
                  </div>
1c422f1bf   Amber Dev   added id card
407
408
409
                </v-layout>
              </v-container>
            </v-card>
7c44528bc   Amber Dev   report id bug
410
            </v-layout>
7c435b5bb   Shikha Mishra   added icard repor...
411
412
413
          </v-flex>
        </v-layout>
      </div>
ecf8cdfdd   Neeraj Sharma   create design of ...
414
415
416
417
418
419
420
421
      <v-snackbar
        :timeout="timeout"
        :top="y === 'top'"
        :right="x === 'right'"
        :vertical="mode === 'vertical'"
        v-model="snackbar"
        :color="color"
      >{{ text }}</v-snackbar>
5ddc6bb04   Neeraj Sharma   complete design a...
422
423
424
      <div class="loader" v-if="showLoader">
        <v-progress-circular indeterminate color="white"></v-progress-circular>
      </div>
7c435b5bb   Shikha Mishra   added icard repor...
425
426
427
428
429
430
    </v-container>
  </template>
  
  <script>
  import http from "@/Services/http.js";
  import moment from "moment";
d84fa5db2   Amber Dev   bugs in report id
431
  var qs = require("qs");
7c435b5bb   Shikha Mishra   added icard repor...
432
433
434
  
  export default {
    data: () => ({
5ddc6bb04   Neeraj Sharma   complete design a...
435
      showLoader: false,
7c435b5bb   Shikha Mishra   added icard repor...
436
437
438
      valid: true,
      report: {},
      userData: {},
ecf8cdfdd   Neeraj Sharma   create design of ...
439
440
441
442
443
444
445
      snackbar: false,
      color: "",
      y: "top",
      x: "right",
      mode: "",
      timeout: 10000,
      text: "",
7c435b5bb   Shikha Mishra   added icard repor...
446
447
448
449
450
451
452
453
454
455
      loading: false,
      showReport: false,
      frontPart: false,
      backPart: false,
      showClass: false,
      showTeacher: false,
      showAdmin: false,
      showAccountant: false,
      showLibrarian: false,
      hideprintIdCard: false,
37cb39130   Shikha Mishra   change the ui of ...
456
      hidebackprintIdCard: false,
ecf8cdfdd   Neeraj Sharma   create design of ...
457
458
      showStudents: false,
      showSections: false,
7c435b5bb   Shikha Mishra   added icard repor...
459
460
461
462
      getRoles: [],
      classList: [],
      getCard: [],
      addSection: [],
11d037abe   Neeraj Sharma   commit code
463
464
465
466
      // getStudentsList:
      // teacherList: [],
      getSelectUserData: [],
      // Users: [],
ecf8cdfdd   Neeraj Sharma   create design of ...
467
      getReport: {},
d84fa5db2   Amber Dev   bugs in report id
468
      typeRules: [(v) => !!v || "Type is required"],
7c435b5bb   Shikha Mishra   added icard repor...
469
470
471
      typeList: [
        {
          name: "Front Part",
d84fa5db2   Amber Dev   bugs in report id
472
          value: "frontPart",
7c435b5bb   Shikha Mishra   added icard repor...
473
474
475
        },
        {
          name: "Back Part",
d84fa5db2   Amber Dev   bugs in report id
476
477
          value: "backPart",
        },
7c435b5bb   Shikha Mishra   added icard repor...
478
      ],
d84fa5db2   Amber Dev   bugs in report id
479
      backgroundList: ["Yes", "No"],
7c435b5bb   Shikha Mishra   added icard repor...
480
481
482
483
484
485
486
487
488
    }),
  
    mounted() {
      this.token = this.$store.state.token;
      this.getUserData();
      this.getRole();
    },
  
    methods: {
d84fa5db2   Amber Dev   bugs in report id
489
      dates: function (date) {
ecf8cdfdd   Neeraj Sharma   create design of ...
490
491
492
493
        return moment(date).format("MMMM DD, YYYY");
        return date;
      },
      getReportType() {
7c435b5bb   Shikha Mishra   added icard repor...
494
495
496
497
498
499
500
501
502
503
        if (this.getReport.form === "frontPart") {
          this.frontPart = true;
          this.backPart = false;
        }
        if (this.getReport.form === "backPart") {
          this.frontPart = false;
          this.backPart = true;
        }
      },
      getRoleInputs(role) {
11d037abe   Neeraj Sharma   commit code
504
        // console.log("role", role);
ecf8cdfdd   Neeraj Sharma   create design of ...
505
506
507
        this.showReport = false;
        this.getReport._id = "";
        this.getCard = "";
d84fa5db2   Amber Dev   bugs in report id
508
        if (role.name === "STUDENT") {
7c435b5bb   Shikha Mishra   added icard repor...
509
510
          // console.log("role", role);
          this.showClass = true;
ecf8cdfdd   Neeraj Sharma   create design of ...
511
512
513
514
515
516
          this.showTeacher = false;
          this.showAdmin = false;
          this.showAccountant = false;
          this.showLibrarian = false;
          this.showStudents = false;
          this.showSections = false;
7c435b5bb   Shikha Mishra   added icard repor...
517
518
          this.getClass();
        }
d84fa5db2   Amber Dev   bugs in report id
519
        if (role.name === "TEACHER") {
7c435b5bb   Shikha Mishra   added icard repor...
520
          this.showTeacher = true;
ecf8cdfdd   Neeraj Sharma   create design of ...
521
522
523
524
525
526
          this.showClass = false;
          this.showAdmin = false;
          this.showAccountant = false;
          this.showLibrarian = false;
          this.showStudents = false;
          this.showSections = false;
7c435b5bb   Shikha Mishra   added icard repor...
527
528
          this.getTeacherList();
        }
d84fa5db2   Amber Dev   bugs in report id
529
        if (role.name === "ADMIN") {
7c435b5bb   Shikha Mishra   added icard repor...
530
          this.showAdmin = true;
ecf8cdfdd   Neeraj Sharma   create design of ...
531
532
533
534
535
536
          this.showTeacher = false;
          this.showClass = false;
          this.showAccountant = false;
          this.showLibrarian = false;
          this.showStudents = false;
          this.showSections = false;
20fba3a75   Amber Dev   bug in report get id
537
          this.getUsersList(role.role);
7c435b5bb   Shikha Mishra   added icard repor...
538
        }
d84fa5db2   Amber Dev   bugs in report id
539
        if (role.name === "ACCOUNTANT") {
7c435b5bb   Shikha Mishra   added icard repor...
540
          this.showAccountant = true;
ecf8cdfdd   Neeraj Sharma   create design of ...
541
542
543
544
545
546
          this.showAdmin = false;
          this.showTeacher = false;
          this.showClass = false;
          this.showLibrarian = false;
          this.showStudents = false;
          this.showSections = false;
d84fa5db2   Amber Dev   bugs in report id
547
          this.getUsersList(role.role);
7c435b5bb   Shikha Mishra   added icard repor...
548
        }
d84fa5db2   Amber Dev   bugs in report id
549
        if (role.name === "LIBRARIAN") {
7c435b5bb   Shikha Mishra   added icard repor...
550
          this.showLibrarian = true;
ecf8cdfdd   Neeraj Sharma   create design of ...
551
552
553
554
555
556
          this.showAccountant = false;
          this.showAdmin = false;
          this.showTeacher = false;
          this.showClass = false;
          this.showStudents = false;
          this.showSections = false;
d84fa5db2   Amber Dev   bugs in report id
557
          this.getUsersList(role.role);
7c435b5bb   Shikha Mishra   added icard repor...
558
559
560
561
562
        }
      },
  
      prindIDCardReport() {
        // Pass the element id here
7c44528bc   Amber Dev   report id bug
563
564
          this.$htmlToPaper("printMe");
        
1c422f1bf   Amber Dev   added id card
565
        
7c435b5bb   Shikha Mishra   added icard repor...
566
567
      },
      getUserData() {
11d037abe   Neeraj Sharma   commit code
568
        this.getSelectUserData = [];
5ddc6bb04   Neeraj Sharma   complete design a...
569
        this.showLoader = true;
7c435b5bb   Shikha Mishra   added icard repor...
570
571
        http()
          .get("/getParticularUserDetail")
d84fa5db2   Amber Dev   bugs in report id
572
          .then((response) => {
11d037abe   Neeraj Sharma   commit code
573
574
            let mergeObj = {
              name: "Select All",
d84fa5db2   Amber Dev   bugs in report id
575
              id: "Select All",
11d037abe   Neeraj Sharma   commit code
576
577
578
579
            };
            this.getSelectUserData.push(mergeObj);
            let getUserDetails = response.data.data;
            this.getSelectUserData.push(getUserDetails);
5ddc6bb04   Neeraj Sharma   complete design a...
580
            this.showLoader = false;
7c435b5bb   Shikha Mishra   added icard repor...
581
582
            // this.adminList = response.data.data;
          })
d84fa5db2   Amber Dev   bugs in report id
583
          .catch((error) => {
5ddc6bb04   Neeraj Sharma   complete design a...
584
            this.showLoader = false;
ecf8cdfdd   Neeraj Sharma   create design of ...
585
586
587
588
589
            if (error.response.status === 401) {
              this.$router.replace({ path: "/" });
              this.$store.dispatch("setToken", null);
              this.$store.dispatch("Id", null);
            }
7c435b5bb   Shikha Mishra   added icard repor...
590
591
592
593
594
595
          });
      },
      getRole() {
        this.showLoader = true;
        http()
          .get("/getRolesList", {
d84fa5db2   Amber Dev   bugs in report id
596
            headers: { Authorization: "Bearer " + this.token },
7c435b5bb   Shikha Mishra   added icard repor...
597
          })
d84fa5db2   Amber Dev   bugs in report id
598
          .then((response) => {
ecf8cdfdd   Neeraj Sharma   create design of ...
599
600
            var getRoles = [];
            getRoles = response.data.data;
ecf8cdfdd   Neeraj Sharma   create design of ...
601
            for (let i = 0; i < getRoles.length; i++) {
d84fa5db2   Amber Dev   bugs in report id
602
603
604
605
              if (
                getRoles[i].name != "SUPERADMIN" &&
                getRoles[i].name != "PARENT"
              ) {
ecf8cdfdd   Neeraj Sharma   create design of ...
606
607
                this.getRoles.push(getRoles[i]);
              }
36883961f   Shikha Mishra   set ui of icard r...
608
            }
7c435b5bb   Shikha Mishra   added icard repor...
609
610
            this.showLoader = false;
          })
d84fa5db2   Amber Dev   bugs in report id
611
          .catch((error) => {
7c435b5bb   Shikha Mishra   added icard repor...
612
            this.showLoader = false;
ecf8cdfdd   Neeraj Sharma   create design of ...
613
614
615
616
617
618
            if (error.response.status === 401) {
              this.$router.replace({ path: "/" });
              this.$store.dispatch("setToken", null);
              this.$store.dispatch("Id", null);
              this.$store.dispatch("Role", null);
            }
7c435b5bb   Shikha Mishra   added icard repor...
619
620
621
          });
      },
      getClass() {
11d037abe   Neeraj Sharma   commit code
622
        // console.log("get classes");
7c435b5bb   Shikha Mishra   added icard repor...
623
624
625
        this.showLoader = true;
        http()
          .get("/getClassesList", {
d84fa5db2   Amber Dev   bugs in report id
626
            headers: { Authorization: "Bearer " + this.token },
7c435b5bb   Shikha Mishra   added icard repor...
627
          })
d84fa5db2   Amber Dev   bugs in report id
628
          .then((response) => {
7c435b5bb   Shikha Mishra   added icard repor...
629
630
631
            this.classList = response.data.data;
            this.showLoader = false;
          })
d84fa5db2   Amber Dev   bugs in report id
632
          .catch((error) => {
7c435b5bb   Shikha Mishra   added icard repor...
633
634
635
636
637
638
639
640
641
642
643
            this.showLoader = false;
            // console.log("err====>", err);
          });
      },
      getSections(_id) {
        this.showLoader = true;
        http()
          .get(
            "/getSectionsList",
            { params: { classId: _id } },
            {
d84fa5db2   Amber Dev   bugs in report id
644
              headers: { Authorization: "Bearer " + this.token },
7c435b5bb   Shikha Mishra   added icard repor...
645
646
            }
          )
d84fa5db2   Amber Dev   bugs in report id
647
          .then((response) => {
7c435b5bb   Shikha Mishra   added icard repor...
648
            this.addSection = response.data.data;
ecf8cdfdd   Neeraj Sharma   create design of ...
649
            this.showSections = true;
7c435b5bb   Shikha Mishra   added icard repor...
650
651
            this.showLoader = false;
          })
d84fa5db2   Amber Dev   bugs in report id
652
          .catch((err) => {
7c435b5bb   Shikha Mishra   added icard repor...
653
654
655
656
657
            this.showLoader = false;
            // console.log("err====>", err);
          });
      },
      getStudents() {
11d037abe   Neeraj Sharma   commit code
658
        this.getSelectUserData = [];
7c435b5bb   Shikha Mishra   added icard repor...
659
660
661
662
663
        this.showLoader = true;
        http()
          .get("/getStudentWithClass", {
            params: {
              classId: this.getReport.classId,
d84fa5db2   Amber Dev   bugs in report id
664
665
              sectionId: this.getReport.sectionId,
            },
7c435b5bb   Shikha Mishra   added icard repor...
666
          })
d84fa5db2   Amber Dev   bugs in report id
667
          .then((response) => {
11d037abe   Neeraj Sharma   commit code
668
669
            response.data.data.unshift({
              name: "Select All",
d84fa5db2   Amber Dev   bugs in report id
670
              _id: "Select All",
11d037abe   Neeraj Sharma   commit code
671
672
            });
            this.getSelectUserData = response.data.data;
ecf8cdfdd   Neeraj Sharma   create design of ...
673
            this.showStudents = true;
7c435b5bb   Shikha Mishra   added icard repor...
674
675
            this.showLoader = false;
          })
d84fa5db2   Amber Dev   bugs in report id
676
          .catch((error) => {
7c435b5bb   Shikha Mishra   added icard repor...
677
678
679
680
681
            console.log("err====>", error);
            this.showLoader = false;
          });
      },
      getCards() {
11d037abe   Neeraj Sharma   commit code
682
683
        var getSelectUserId = [];
        for (let i = 0; i < this.getSelectUserData.length; i++) {
d84fa5db2   Amber Dev   bugs in report id
684
685
          /* if the selected user id mathches any id in the original user data then push it in 
          array, this way only one id will be pushed */
11d037abe   Neeraj Sharma   commit code
686
          if (this.getReport._id === this.getSelectUserData[i]._id) {
11d037abe   Neeraj Sharma   commit code
687
            getSelectUserId.push(this.getSelectUserData[i]._id);
d84fa5db2   Amber Dev   bugs in report id
688
689
690
          } /* else if select all option is selected then all ids will be pushed */ else if (
            this.getReport._id == "Select All"
          ) {
11d037abe   Neeraj Sharma   commit code
691
            getSelectUserId.push(this.getSelectUserData[i]._id);
d84fa5db2   Amber Dev   bugs in report id
692
693
694
695
696
            if (
              getSelectUserId[0] == undefined ||
              getSelectUserId[0] == "Select All"
            ) {
              getSelectUserId.shift();
11d037abe   Neeraj Sharma   commit code
697
698
699
            }
          }
        }
d84fa5db2   Amber Dev   bugs in report id
700

a55b7fca2   Neeraj Sharma   complete design a...
701
        if (this.$refs.form.validate()) {
fe0d05d29   Neeraj Sharma   complete design a...
702
          this.showLoader = true;
20fba3a75   Amber Dev   bug in report get id
703
          // var strigified = JSON.stringify(getSelectUserId)
d84fa5db2   Amber Dev   bugs in report id
704
705
          // var profileId = [];
          // profileId = getSelectUserId;
a55b7fca2   Neeraj Sharma   complete design a...
706
707
708
          http()
            .get("/getIdCardDetail", {
              headers: {
d84fa5db2   Amber Dev   bugs in report id
709
                Authorization: "Bearer " + this.token,
a55b7fca2   Neeraj Sharma   complete design a...
710
              },
20fba3a75   Amber Dev   bug in report get id
711
712
713
714
              params: {
                profileId: getSelectUserId,
                role: this.getReport.role.role,
              },
d84fa5db2   Amber Dev   bugs in report id
715
716
717
718
719
720
721
              paramsSerializer: (params) => {
                return qs.stringify(params);
              },
              // params: {
              //   profileId: strigified,
              //   role: this.getReport.role.role,
              // },
a55b7fca2   Neeraj Sharma   complete design a...
722
            })
d84fa5db2   Amber Dev   bugs in report id
723
            .then((response) => {
a55b7fca2   Neeraj Sharma   complete design a...
724
              this.getCard = "";
1c422f1bf   Amber Dev   added id card
725

a55b7fca2   Neeraj Sharma   complete design a...
726
              var data = response.data.data;
1c422f1bf   Amber Dev   added id card
727

20fba3a75   Amber Dev   bug in report get id
728
              if (data.adminData && data.adminData.length != 0) {
a55b7fca2   Neeraj Sharma   complete design a...
729
                this.getCard = response.data.data.adminData;
11d037abe   Neeraj Sharma   commit code
730
                // console.log("this.getCard ", this.getCard);
a55b7fca2   Neeraj Sharma   complete design a...
731
              }
20fba3a75   Amber Dev   bug in report get id
732
              if (data.teachersData && data.teachersData.length != 0) {
a55b7fca2   Neeraj Sharma   complete design a...
733
                this.getCard = response.data.data.teachersData;
a55b7fca2   Neeraj Sharma   complete design a...
734
              }
20fba3a75   Amber Dev   bug in report get id
735
              if (data.studentData && data.studentData.length != 0) {
a55b7fca2   Neeraj Sharma   complete design a...
736
                this.getCard = response.data.data.studentData;
11d037abe   Neeraj Sharma   commit code
737
                // console.log("this.getCard--studentData ", this.getCard);
a55b7fca2   Neeraj Sharma   complete design a...
738
              }
20fba3a75   Amber Dev   bug in report get id
739
              if (data.usersData && data.usersData.length != 0) {
a55b7fca2   Neeraj Sharma   complete design a...
740
                this.getCard = response.data.data.usersData;
11d037abe   Neeraj Sharma   commit code
741
                // console.log("this.getCard--usersData   ", this.getCard);
a55b7fca2   Neeraj Sharma   complete design a...
742
743
744
745
746
              }
              // console.log("this.getCard--all ", response.data.data);
              this.showLoader = false;
              this.showReport = true;
            })
d84fa5db2   Amber Dev   bugs in report id
747
            .catch((error) => {
a55b7fca2   Neeraj Sharma   complete design a...
748
              this.showLoader = false;
11d037abe   Neeraj Sharma   commit code
749
              // console.log("error", error.response.data.errors);
20fba3a75   Amber Dev   bug in report get id
750
751
752
753
754
              // if (error.response.data.errors) {
              //   this.snackbar = true;
              //   this.text = " Field is required";
              //   this.color = "error";
              // }
a55b7fca2   Neeraj Sharma   complete design a...
755
756
            });
        }
7c435b5bb   Shikha Mishra   added icard repor...
757
758
      },
      getTeacherList() {
11d037abe   Neeraj Sharma   commit code
759
        this.getSelectUserData = [];
7c435b5bb   Shikha Mishra   added icard repor...
760
761
762
763
        this.showLoader = true;
        var token = this.$store.state.token;
        http()
          .get("/getTeachersList", {
d84fa5db2   Amber Dev   bugs in report id
764
            headers: { Authorization: "Bearer " + token },
7c435b5bb   Shikha Mishra   added icard repor...
765
          })
d84fa5db2   Amber Dev   bugs in report id
766
          .then((response) => {
11d037abe   Neeraj Sharma   commit code
767
768
            response.data.data.unshift({
              name: "Select All",
d84fa5db2   Amber Dev   bugs in report id
769
              _id: "Select All",
11d037abe   Neeraj Sharma   commit code
770
771
            });
            this.getSelectUserData = response.data.data;
7c435b5bb   Shikha Mishra   added icard repor...
772
773
            this.showLoader = false;
          })
d84fa5db2   Amber Dev   bugs in report id
774
          .catch((error) => {
7c435b5bb   Shikha Mishra   added icard repor...
775
776
777
778
779
780
781
782
            this.showLoader = false;
            if (error.response.status === 401) {
              this.$router.replace({ path: "/" });
              this.$store.dispatch("setToken", null);
              this.$store.dispatch("Id", null);
            }
          });
      },
a55b7fca2   Neeraj Sharma   complete design a...
783
      getUsersList(role) {
11d037abe   Neeraj Sharma   commit code
784
        this.getSelectUserData = [];
7c435b5bb   Shikha Mishra   added icard repor...
785
786
787
        this.showLoader = true;
        var token = this.$store.state.token;
        http()
a55b7fca2   Neeraj Sharma   complete design a...
788
          .get("/getUsersList?role=" + role, {
d84fa5db2   Amber Dev   bugs in report id
789
            headers: { Authorization: "Bearer " + token },
7c435b5bb   Shikha Mishra   added icard repor...
790
          })
d84fa5db2   Amber Dev   bugs in report id
791
          .then((response) => {
11d037abe   Neeraj Sharma   commit code
792
793
            response.data.data.unshift({
              name: "Select All",
d84fa5db2   Amber Dev   bugs in report id
794
              _id: "Select All",
11d037abe   Neeraj Sharma   commit code
795
796
            });
            this.getSelectUserData = response.data.data;
7c435b5bb   Shikha Mishra   added icard repor...
797
798
            this.showLoader = false;
          })
d84fa5db2   Amber Dev   bugs in report id
799
          .catch((error) => {
7c435b5bb   Shikha Mishra   added icard repor...
800
801
802
803
804
805
806
807
808
809
810
811
            this.showLoader = false;
            if (error.response.status === 401) {
              this.$router.replace({ path: "/" });
              this.$store.dispatch("setToken", null);
              this.$store.dispatch("Id", null);
            }
          });
      },
      getParentDetails() {
        http()
          .get("getParentsList", {
            headers: {
d84fa5db2   Amber Dev   bugs in report id
812
813
              Authorization: "Bearer " + this.$store.state.token,
            },
7c435b5bb   Shikha Mishra   added icard repor...
814
          })
d84fa5db2   Amber Dev   bugs in report id
815
          .then((response) => {
7c435b5bb   Shikha Mishra   added icard repor...
816
817
            this.parentsList = response.data.data;
          })
d84fa5db2   Amber Dev   bugs in report id
818
          .catch((error) => {
7c435b5bb   Shikha Mishra   added icard repor...
819
820
821
822
823
824
825
826
827
            // console.log("err====>", error.response.data.message);
            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);
            }
          });
d84fa5db2   Amber Dev   bugs in report id
828
829
      },
    },
7c435b5bb   Shikha Mishra   added icard repor...
830
831
832
833
834
835
836
837
838
839
840
841
842
  };
  </script>
  
  <style scoped>
  .Data {
    width: 100%;
    float: left;
    margin-bottom: 0px;
    padding: 0 15px;
    font-size: 14px;
    margin-top: 5px;
    text-align: justify;
  }
36883961f   Shikha Mishra   set ui of icard r...
843
844
845
846
847
848
849
850
  .idcardreport {
    font-family: arial;
    max-width: 794px;
    max-height: 1123px;
    margin-left: auto;
    margin-right: auto;
    -webkit-print-color-adjust: exact;
  }
cc7844a9d   Shikha Mishra   improve print pat...
851
852
853
854
  .idcardreport1 {
    text-align: center;
    margin-left: 35%;
  }
7c435b5bb   Shikha Mishra   added icard repor...
855
856
  .icard-front {
    margin: 3px;
36883961f   Shikha Mishra   set ui of icard r...
857
    float: left;
37cb39130   Shikha Mishra   change the ui of ...
858
    padding: 10px;
37cb39130   Shikha Mishra   change the ui of ...
859
    text-align: center;
ecf8cdfdd   Neeraj Sharma   create design of ...
860
861
862
863
    height: 520px;
    width: 520px;
    background: #fff;
    border: 1px solid lightgray;
37cb39130   Shikha Mishra   change the ui of ...
864
865
866
867
868
  }
  .print-data {
    margin: 3px;
    float: left;
    /* border: 1px solid #000; */
7c435b5bb   Shikha Mishra   added icard repor...
869
    padding: 10px;
37cb39130   Shikha Mishra   change the ui of ...
870
    /* width: 55%; */
7c435b5bb   Shikha Mishra   added icard repor...
871
    text-align: center;
37cb39130   Shikha Mishra   change the ui of ...
872
873
    height: 95%;
  }
cc7844a9d   Shikha Mishra   improve print pat...
874
875
876
  .rightside {
    float: right !important;
  }
36883961f   Shikha Mishra   set ui of icard r...
877
  .icard-front h2 {
37cb39130   Shikha Mishra   change the ui of ...
878
879
880
881
882
883
884
885
886
887
888
889
890
    font-size: 30px;
  }
  .icard-back h2 {
    font-size: 30px;
  }
  .print-data h2 {
    font-size: 30px;
    text-align: center;
  }
  .print-data img {
    width: 70px;
    height: 70px;
    margin-bottom: 5px;
7c435b5bb   Shikha Mishra   added icard repor...
891
892
  }
  .icard-front img {
37cb39130   Shikha Mishra   change the ui of ...
893
894
895
896
897
898
899
900
901
902
    width: 70px;
    height: 70px;
    margin-bottom: 5px;
  }
  .icard-back img {
    width: 50px;
    height: 50px;
    margin-bottom: 5px;
  }
  .icard-img {
7c435b5bb   Shikha Mishra   added icard repor...
903
904
905
    width: 50px;
    height: 50px;
    margin-bottom: 5px;
37cb39130   Shikha Mishra   change the ui of ...
906
907
    margin-top: 5px;
    border: 1px solid #ddd;
7c435b5bb   Shikha Mishra   added icard repor...
908
909
  }
  .icard-data {
36883961f   Shikha Mishra   set ui of icard r...
910
    /* font-family: Arial; */
7c435b5bb   Shikha Mishra   added icard repor...
911
912
913
914
915
916
917
918
    max-width: 794px;
    max-height: 1123px;
    margin-left: auto;
    margin-right: auto;
    -webkit-print-color-adjust: exact;
  }
  .icard-back {
    margin: 3px;
37cb39130   Shikha Mishra   change the ui of ...
919
920
921
922
923
924
925
926
927
928
    /* float: left; */
    /* border: 1px solid #000; */
    padding: 10px;
    /* width: 55%; */
    text-align: center;
    /* height: 95%; */
    /* margin-top: 35%; */
  }
  .back-icard {
    margin: 3px;
7c435b5bb   Shikha Mishra   added icard repor...
929
    padding: 10px;
7c435b5bb   Shikha Mishra   added icard repor...
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
  }
  .icard-back h3 {
    background-color: #000;
    color: #fff;
    font-size: 13px;
    padding: 5px 0px;
    margin: 5px;
    margin-top: 13px;
  }
  .icard-back h5 {
    font-size: 11px;
    color: #000;
    font-weight: bold;
    padding: 5px 0px;
  }
37cb39130   Shikha Mishra   change the ui of ...
945
  /* .icard-back p {
7c435b5bb   Shikha Mishra   added icard repor...
946
947
948
949
    font-size: 15px;
    color: #000;
    font-weight: 500px;
    line-height: 17px;
37cb39130   Shikha Mishra   change the ui of ...
950
  } */
7c435b5bb   Shikha Mishra   added icard repor...
951
952
953
954
955
  .school-address {
    /* width: 40%; */
    font-weight: 500px;
    color: #000;
  }
cc7844a9d   Shikha Mishra   improve print pat...
956
957
958
959
960
  .address {
    font-weight: 500px;
    color: #000;
    text-align: center;
  }
7c435b5bb   Shikha Mishra   added icard repor...
961
962
963
964
965
966
967
968
969
970
971
  .icard-bottom {
    padding-top: 5px;
    text-align: center;
  }
  .qrcode {
    float: left;
    width: 50%;
  }
  .qrcode img {
    width: 60px;
    height: 60px;
37cb39130   Shikha Mishra   change the ui of ...
972
    margin-top: 15px;
7c435b5bb   Shikha Mishra   added icard repor...
973
974
975
976
  }
  .session {
    float: right;
    width: 70%;
37cb39130   Shikha Mishra   change the ui of ...
977
    margin-top: 15px;
7c435b5bb   Shikha Mishra   added icard repor...
978
  }
7c44528bc   Amber Dev   report id bug
979

7c435b5bb   Shikha Mishra   added icard repor...
980
981
982
983
984
985
986
987
988
989
990
  @media screen and (max-width: 360px) {
    .icard-front {
      width: 316px;
      height: 418px;
      float: inherit;
    }
    .icard-back {
      float: left;
    }
  }
  </style>