Demo School
|
HSC
|
| Subject & Class |
|
@foreach ($exams as $exam)
{{ $exam->name }} |
@endforeach
Attendance |
Theory Marks 100/75/60 Lab. Marks 25/40 |
| Delivered |
Attended |
@php
$total = 0;
$total_subject = 0;
$total_marks_store = 0;
$total_marks_store_two = 0;
$total_marks_store_three = 0;
$total_count_subject_one = 0;
$total_count_subject_two = 0;
$total_count_subject_three = 0;
@endphp
@if ($student->group_id == 2)
@foreach ($subjects->slice(0, 7) as $subject)
@php
$total = 0;
$total_subject = 0;
$row_total = 0;
$point = 0;
@endphp
| {{ $subject->subject_name }} |
i |
@foreach ($exams as $exam)
@foreach ($mark_details[$subject->id][$exam->exam_id] ?? [] as $md)
@php
$row_total = $row_total + $md->mark_value;
$point = get_point($row_total);
$grade = get_grade($row_total);
@endphp
{{ $md->mark_value }} |
@endforeach
@php $total_subject = count($exams) @endphp
@endforeach
|
|
|
@php
$studentAttendanceCount = Modules\Academic\Models\StudentAttendance::where(
'student_id',
$studentId,
)
->where('subject_id', $subject->id)
->count();
@endphp
{{ $studentAttendanceCount ?? 0 }}
|
@php
$studentAttendanceCount = Modules\Academic\Models\StudentAttendance::where(
'student_id',
$studentId,
)
->where('attendance', 1)
->where('subject_id', $subject->id)
->count();
@endphp
{{ $studentAttendanceCount ?? 0 }}
|
@if ($loop->index + 1 == 1)
{{ $student->bangla ?? '--' }}
@endif
@if ($loop->index + 1 == 2)
{{ $student->english ?? '--' }}
@endif
@if ($loop->index + 1 == 3)
{{ $student->ict ?? '--' }}
@endif
@if ($loop->index + 1 == 4)
@if ($student->ssc_group == 1)
{{-- Science --}}
{{ $student->physics ?? '--' }}
@elseif ($student->ssc_group == 2)
{{-- Business studies --}}
{{ $student->financeBanking ?? '--' }}
@elseif ($student->ssc_group == 3)
{{-- Humanities --}}
{{ $student->geography ?? '--' }}
@endif
@endif
@if ($loop->index + 1 == 5)
@if ($student->ssc_group == 1)
{{-- Science --}}
{{ $student->chemistry ?? '--' }}
@elseif ($student->ssc_group == 2)
{{-- Business studies --}}
{{ $student->financeBanking ?? '--' }}
@elseif ($student->ssc_group == 3)
{{-- Humanities --}}
{{ $student->geography ?? '--' }}
@endif
@endif
|
| ii |
@foreach ($exams as $exam)
@foreach ($mark_details[$subject->id][$exam->exam_id] ?? [] as $md)
@php
$row_total = $row_total + $md->mark_value;
$point = get_point($row_total);
$grade = get_grade($row_total);
@endphp
{{ $md->mark_value }} |
@endforeach
@php $total_subject = count($exams) @endphp
@endforeach
|
|
|
|
|
@php $total = $total + $row_total; @endphp
@endforeach
@else
@foreach ($subjects->slice(0, 7) as $subject)
@php
$total = 0;
$total_subject = 0;
$row_total = 0;
$point = 0;
@endphp
| {{ $subject->subject_name }} |
i |
@foreach ($exams as $exam)
@foreach ($mark_details[$subject->id][$exam->exam_id] ?? [] as $md)
@php
$row_total = $row_total + $md->mark_value;
$point = get_point($row_total);
$grade = get_grade($row_total);
@endphp
{{ $md->mark_value }} |
@endforeach
@php $total_subject = count($exams) @endphp
@endforeach
|
|
|
|
@php
$studentAttendanceCount = Modules\Academic\Models\StudentAttendance::where(
'student_id',
$studentId,
)
->where('subject_id', $subject->id)
->count();
@endphp
{{ $studentAttendanceCount ?? 0 }}
|
@php
$studentAttendanceCount = Modules\Academic\Models\StudentAttendance::where(
'student_id',
$studentId,
)
->where('attendance', 1)
->where('subject_id', $subject->id)
->count();
@endphp
{{ $studentAttendanceCount ?? 0 }}
|
|
| ii |
@foreach ($exams as $exam)
@foreach ($mark_details[$subject->id][$exam->exam_id] ?? [] as $md)
@php
$row_total = $row_total + $md->mark_value;
$point = get_point($row_total);
$grade = get_grade($row_total);
@endphp
{{ $md->mark_value }} |
@endforeach
@php $total_subject = count($exams) @endphp
@endforeach
|
|
|
|
|
@php $total = $total + $row_total; @endphp
@endforeach
@endif
@if (isset($student->elective_subject) && $student->elective_subject)
|
@php
$subject1 = App\Subject::where(
'id',
$student->elective_subject,
)->first();
@endphp
{{ $subject1->subject_name ?? null }}
|
i |
@foreach ($exams as $exam)
@foreach ($mark_details[$subject1->id][$exam->exam_id] ?? [] as $md)
@php
$row_total = $row_total + $md->mark_value;
$point = get_point($row_total);
$grade = get_grade($row_total);
@endphp
{{ $md->mark_value }} |
@endforeach
@php $total_subject = count($exams) @endphp
@endforeach
|
|
|
|
@php
$studentAttendanceCount = Modules\Academic\Models\StudentAttendance::where(
'student_id',
$studentId,
)
->where('subject_id', $subject1->id)
->count();
@endphp
{{ $studentAttendanceCount ?? 0 }}
|
@php
$studentAttendanceCount = Modules\Academic\Models\StudentAttendance::where(
'student_id',
$studentId,
)
->where('attendance', 1)
->where('subject_id', $subject1->id)
->count();
@endphp
{{ $studentAttendanceCount ?? 0 }}
|
@if ($student->ssc_group == 1)
{{-- Science --}}
{{ $student->biology ?? '--' }}
@elseif ($student->ssc_group == 2)
{{-- Business studies --}}
{{ $student->accounting ?? '--' }}
@elseif ($student->ssc_group == 3)
{{-- Humanities --}}
{{ $student->historyBangladesh ?? '--' }}
@endif
|
| ii |
@foreach ($exams as $exam)
@foreach ($mark_details[$subject->id][$exam->exam_id] ?? [] as $md)
@php
$row_total = $row_total + $md->mark_value;
$point = get_point($row_total);
$grade = get_grade($row_total);
@endphp
{{ $md->mark_value }} |
@endforeach
@php $total_subject = count($exams) @endphp
@endforeach
|
|
|
|
|
@endif
@if (isset($student->optional_subject) && $student->optional_subject)
|
@php
$subject2 = App\Subject::where(
'id',
$student->optional_subject,
)->first();
@endphp
{{ $subject2->subject_name ?? null }}
|
i |
@foreach ($exams as $exam)
@foreach ($mark_details[$subject2->id][$exam->exam_id] ?? [] as $md)
@php
$row_total = $row_total + $md->mark_value;
$point = get_point($row_total);
$grade = get_grade($row_total);
@endphp
{{ $md->mark_value }} |
@endforeach
@php $total_subject = count($exams) @endphp
@endforeach
|
|
@if ($quizzes && count($quizzes) > 2 && isset($quizzes[1]))
@php
$total_marks_store_three += (int) $quizzes[0]->total_marks;
$total_count_subject_three++;
@endphp
{{ $quizzes[2]->exam_id == 11 ? round((int) $quizzes[2]->total_marks) ?? 0 : 0 }}
@endif
|
|
@php
$studentAttendanceCount = Modules\Academic\Models\StudentAttendance::where(
'student_id',
$studentId,
)
->where('subject_id', $subject2->id)
->count();
@endphp
{{ $studentAttendanceCount ?? 0 }}
|
@php
$studentAttendanceCount = Modules\Academic\Models\StudentAttendance::where(
'student_id',
$studentId,
)
->where('attendance', 1)
->where('subject_id', $subject2->id)
->count();
@endphp
{{ $studentAttendanceCount ?? 0 }}
|
{{ $student->grade_4th_sub }}
|
| ii |
@foreach ($exams as $exam)
@foreach ($mark_details[$subject2->id][$exam->exam_id] ?? [] as $md)
@php
$row_total = $row_total + $md->mark_value;
$point = get_point($row_total);
$grade = get_grade($row_total);
@endphp
{{ $md->mark_value }} |
@endforeach
@php $total_subject = count($exams) @endphp
@endforeach
|
|
|
|
|
@endif
| Aggregate |
|
{{ number_format($total_marks_store, 2) ?? 0 }}
|
{{ number_format($total_marks_store_two, 2) ?? 0 }}
|
{{ number_format($total_marks_store_three, 2) ?? 0 }}
|
2yr. Aggr Marks |
i |
Ex: |
GPA: {{ $student->hsc_gpa }} |
| Percentage |
|
{{ $total_count_subject_one != 0 ? number_format($total_marks_store / $total_count_subject_one, 2) : '0.00' }}
|
{{ $total_count_subject_two != 0 ? number_format($total_marks_store / $total_count_subject_two, 2) : '0.00' }}
|
{{ $total_count_subject_three != 0 ? number_format($total_marks_store / $total_count_subject_three, 2) : '0.00' }}
|
2yr % Marks |
i |
|
|
| ii |
|
| Place of Merit |
|
1
|
2
|
3
|
|
Promoted to Class XII:
Sent-up HSC Exams:
TC Date:
|
| Total Students |
|
0
|
0
|
0
|
|