changeweb / Unifiedtransform

A school management Software
https://changeweb.github.io/Unifiedtransform/
GNU General Public License v3.0
2.82k stars 1.23k forks source link

Attendance #214

Open UrAvgCoder opened 4 years ago

UrAvgCoder commented 4 years ago

How do I take attendance? Can someone please elaborate on the procedure?

Majidkadi commented 4 years ago

You must be Admin or teacher. Click on Attendance/Student Attendance Then click on any section link (accordeon link) then click on take attendance In the list check some or every student’s checkbox and save

insoftservice commented 4 years ago

@Majidkadi I have logged in as Admin. Clicked on Section link. was able to view student list but over there i am able to view "View attendance " .Give Attendance column is blank

insoftservice commented 4 years ago

@Majidkadi please correct me if i am wrong. Login as Teacher Go to My course Select the course and click on Take Attendance It's too complicated system

Majidkadi commented 4 years ago

I was able to do it from admin account

b-itsoft commented 4 years ago

Hi, The attendance update system was not work properly. when i debug the attendance update process code. That time i find, They are use a logic, "I think it's wrong" I am note sure. code But when i print $exam it's have, and it's have a exam_id, when i print count((array) $exam) it's return me 23. (I think the number present the ExamForClass model) So, how can i solve the issue. temporary i use this if(count((array) $exam) >= 1) and it's work fine.

insoftservice commented 4 years ago

Thx for ur comments have to check. I left this code as its built of laravel 5.4 or less

changeweb commented 4 years ago

@b-itsoft Could you make a PR?

changeweb commented 4 years ago

Thx for ur comments have to check. I left this code as its built of laravel 5.4 or less

Upgraded to Laravel 7.X. Let me know if found any issue.

hrbhot commented 4 years ago

Laravel Framework 7.20.0 / PHP 7.3.11 role teacher /admin /student Attendance Not work

  1. My Courses -> Take Attendance -> Adjust Missed Attendance -> No Related Data Found. // role teacher
  2. All Classes and Sections -> Take Attendance -> Present / Adjust Missing Attendances -> No Related Data Found. // role admin
  3. My attendance -> No Related Data Found. // role student

How do I debug ? bug

changeweb commented 4 years ago

@hrbhot I think you are using auto generated fake data from Seeding(in this case, no fake data may be generated for this student attendance) or No teacher has not taken your attendance yet.

hrbhot commented 4 years ago

@changeweb Thanks for the quick reply, I used fake data, I tried to adjust attendance, it doesn't take effect. Total Attended / Total Missed/ Total Escaped Always 0 bug1

Majidkadi commented 4 years ago

You have to be a teacher assigned to proper classroom and course to be able to take attendance for the course.