@extends('backEnd.master')
@section('title')
@lang('student.my_profile')
@endsection
@section('mainContent')
@push('css')
@if (moduleStatusCheck('University'))
@endif
@endpush
@php
$setting = app('school_info');
if (!empty($setting->currency_symbol)) {
$currency = $setting->currency_symbol;
} else {
$currency = '$';
}
@endphp
@lang('student.personal_info')
@if (is_show('admission_date'))
@lang('student.parent_/_guardian_details')
@lang('student.transport_and_dormitory_details')
@if (is_show('route'))
@lang('student.information_other')
@if (is_show('blood_group'))
{{ @$record->name }}
({{ @$record->unDepartment->name }} -
{{ @$record->unSection->section_name }})
@else
{{ $record->class->class_name }}
({{ $record->section->section_name }})
@endif
@php $gt_fees = 0; @endphp
@foreach ($record->fees as $assign_fees)
@php $gt_fees += $assign_fees->fees_amount; @endphp
@lang('fees.fees_type')
@lang('fees.assigned_date')
@lang('fees.amount')
@endforeach
{{ @$assign_fees->feesGroupMaster->feesTypes->name }}
{{ dateConvert($assign_fees->created_at) }}
{{ currency_format($assign_fees->fees_amount) }}
@lang('fees.grand_total')
({{ generalSetting()->currency_symbol }})
{{ currency_format($gt_fees) }}
@endif
@php
@$grand_total = 0;
@$total_fine = 0;
@$total_discount = 0;
@$total_paid = 0;
@$total_grand_paid = 0;
@$total_balance = 0;
@endphp
@foreach ($fees_assigneds as $fees_assigned)
@if ($fees_assigned->record_id == $record->id)
@php
@$grand_total += @$fees_assigned->feesGroupMaster->amount;
@endphp
@php
@$discount_amount = $fees_assigned->applied_discount;
@$total_discount += @$discount_amount;
@$student_id = @$fees_assigned->student_id;
@endphp
@php
@$paid = App\SmFeesAssign::discountSum(@$fees_assigned->student_id, @$fees_assigned->feesGroupMaster->feesTypes->id, 'amount', $fees_assigned->record_id);
@$total_grand_paid += @$paid;
@endphp
@php
@$fine = App\SmFeesAssign::discountSum(@$fees_assigned->student_id, @$fees_assigned->feesGroupMaster->feesTypes->id, 'fine', $fees_assigned->record_id);
@$total_fine += @$fine;
@endphp
@php
@$total_paid = @$discount_amount + @$paid;
@endphp
@lang('fees.fees_group')
@lang('fees.fees_code')
@lang('fees.due_date')
@lang('common.status')
@lang('fees.amount') ({{ generalSetting()->currency_symbol }})
@lang('fees.payment_id')
@lang('fees.mode')
@lang('common.date')
@lang('fees.discount') ({{ generalSetting()->currency_symbol }})
@lang('fees.fine')({{ generalSetting()->currency_symbol }})
@lang('fees.paid') ({{ generalSetting()->currency_symbol }})
@lang('fees.balance')
@php
@$payments = App\SmFeesAssign::feesPayment(@$fees_assigned->feesGroupMaster->feesTypes->id, @$fees_assigned->student_id, $fees_assigned->recordDetail->id);
$i = 0;
@endphp
@foreach ($payments as $payment)
{{ @$fees_assigned->feesGroupMaster->feesGroups != '' ? @$fees_assigned->feesGroupMaster->feesGroups->name : '' }}
{{ @$fees_assigned->feesGroupMaster->feesTypes != '' ? @$fees_assigned->feesGroupMaster->feesTypes->name : '' }}
@if (!empty(@$fees_assigned->feesGroupMaster))
{{ @$fees_assigned->feesGroupMaster->date != '' ? dateConvert(@$fees_assigned->feesGroupMaster->date) : '' }}
@endif
@php
$total_payable_amount = $fees_assigned->fees_amount;
$rest_amount = $fees_assigned->feesGroupMaster->amount - $total_paid;
$balance_amount = number_format($rest_amount + $fine, 2, '.', '');
$total_balance += $balance_amount;
@endphp
@if ($balance_amount == 0)
@elseif($paid != 0)
@elseif($paid == 0)
@endif
@php
echo number_format($fees_assigned->feesGroupMaster->amount, 2, '.', '');
@endphp
{{ @$discount_amount }}
{{ @$fine }}
{{ @$paid }}
@php
echo @$balance_amount;
@endphp
@endforeach
@endif
@endforeach
@php
@$created_by = App\User::find(@$payment->created_by);
@endphp
@if (@$created_by != '')
{{ @$payment->fees_type_id . '/' . @$payment->id }}
@endif
{{ $payment->payment_mode }}
{{ @$payment->payment_date != '' ? dateConvert(@$payment->payment_date) : '' }}
{{ @$payment->discount_amount }}
{{ @$payment->fine }}
@if ($payment->fine != 0)
@if (strlen($payment->fine_title) > 14)
({{ substr($payment->fine_title, 0, 15) . '...' }})
@else
@if ($payment->fine_title == '')
{{ $payment->fine_title }}
@else
({{ $payment->fine_title }})
@endif
@endif
@endif
{{ @$payment->amount }}
@lang('fees.grand_total') ({{ @generalSetting()->currency_symbol }})
{{ @$grand_total }}
{{ @$total_discount }}
{{ @$total_fine }}
{{ @$total_grand_paid }}
{{ number_format($total_balance, 2, '.', '') }}
@lang('common.subject')
@lang('exam.full_marks')
@lang('exam.passing_marks')
@lang('exam.obtained_marks')
@lang('exam.results')
{{ @$exam->title }}
@foreach ($get_results as $mark)
@php
if (!is_null($optional_subject_setup) && !is_null($student_optional_subject)) {
if ($mark->subject_id != @$student_optional_subject->subject_id) {
$temp_grade[] = $mark->total_gpa_grade;
}
} else {
$temp_grade[] = $mark->total_gpa_grade;
}
$total_gpa_point += $mark->total_gpa_point;
if (!is_null(@$student_optional_subject)) {
if (@$student_optional_subject->subject_id == $mark->subject->id && $mark->total_gpa_point < @$optional_subject_setup->gpa_above) {
$total_gpa_point = $total_gpa_point - $mark->total_gpa_point;
}
}
$temp_gpa[] = $mark->total_gpa_point;
$get_subject_marks = subjectFullMark($mark->exam_type_id, $mark->subject_id, $mark->studentRecord->class_id, $mark->studentRecord->section_id);
$subject_marks = App\SmStudent::fullMarksBySubject($exam->id, $mark->subject_id);
$schedule_by_subject = App\SmStudent::scheduleBySubject($exam->id, $mark->subject_id, @$record);
$result_subject = 0;
if (@generalSetting()->result_type == 'mark') {
$grand_total_marks += subject100PercentMark();
} else {
$grand_total_marks += $get_subject_marks;
}
if (@$mark->is_absent == 0) {
if (@generalSetting()->result_type == 'mark') {
$grand_total += @subjectPercentageMark(@$mark->total_marks, @subjectFullMark($mark->exam_type_id, $mark->subject_id, $mark->studentRecord->class_id, $mark->studentRecord->section_id));
} else {
$grand_total += @$mark->total_marks;
}
if ($mark->marks < $subject_marks->pass_mark) {
$result_subject++;
$result++;
}
} else {
$result_subject++;
$result++;
}
@endphp
@lang('common.date')
@lang('exam.subject_full_marks')
@lang('exam.obtained_marks')
@if (@generalSetting()->result_type == 'mark')
@lang('exam.pass_fail')
@else
@lang('exam.grade')
@lang('exam.gpa')
@endif
@endforeach
{{ !empty($schedule_by_subject->date) ? dateConvert($schedule_by_subject->date) : '' }}
{{ @$mark->subject->subject_name }}
@if (@generalSetting()->result_type == 'mark')
({{ subject100PercentMark() }})
@else
({{ @subjectFullMark($mark->exam_type_id, $mark->subject_id, $mark->studentRecord->class_id, $mark->studentRecord->section_id) }})
@endif
@if (@generalSetting()->result_type == 'mark')
{{ @subjectPercentageMark(@$mark->total_marks, @subjectFullMark($mark->exam_type_id, $mark->subject_id, $mark->studentRecord->class_id, $mark->studentRecord->section_id)) }}
@else
{{ @$mark->total_marks }}
@endif
@if (@generalSetting()->result_type == 'mark')
@php
$totalMark = subjectPercentageMark(@$mark->total_marks, @subjectFullMark($mark->exam_type_id, $mark->subject_id, $mark->studentRecord->class_id, $mark->studentRecord->section_id));
$passMark = $mark->subject->pass_mark;
@endphp
@if ($passMark <= $totalMark)
@lang('exam.pass')
@else
@lang('exam.fail')
@endif
@else
{{ @$mark->total_gpa_grade }}
{{ number_format(@$mark->total_gpa_point, 2, '.', '') }}
@endif
@lang('exam.position'):
{{ getStudentMeritPosition($record->class_id, $record->section_id, $exam->id, $record->id) }}
@lang('exam.grand_total'):
{{ $grand_total }}/{{ $grand_total_marks }}
@if (@generalSetting()->result_type == 'mark')
@else
@lang('exam.grade'):
@php
if (in_array($failgpaname->grade_name, $temp_grade)) {
echo $failgpaname->grade_name;
} else {
$final_gpa_point = ($total_gpa_point - $optional_gpa) / ($total_subject - $optional_subject);
$average_grade = 0;
$average_grade_max = 0;
if ($result == 0 && $grand_total_marks != 0) {
$gpa_point = number_format($final_gpa_point, 2, '.', '');
if ($gpa_point >= $maxgpa) {
$average_grade_max = App\SmMarksGrade::where('school_id', Auth::user()->school_id)
->where('academic_id', getAcademicId())
->where('from', '<=', $maxgpa)
->where('up', '>=', $maxgpa)
->first('grade_name');
echo @$average_grade_max->grade_name;
} else {
$average_grade = App\SmMarksGrade::where('school_id', Auth::user()->school_id)
->where('academic_id', getAcademicId())
->where('from', '<=', $final_gpa_point)
->where('up', '>=', $final_gpa_point)
->first('grade_name');
echo @$average_grade->grade_name;
}
} else {
echo $failgpaname->grade_name;
}
}
@endphp
@lang('exam.gpa')
@php
$final_gpa_point = 0;
$final_gpa_point = ($total_gpa_point - $optional_gpa) / ($total_subject - $optional_subject);
$float_final_gpa_point = number_format($final_gpa_point, 2);
if ($float_final_gpa_point >= $maxgpa) {
echo $maxgpa;
} else {
echo $float_final_gpa_point;
}
@endphp
@endif
@lang('exam.result_not_publish_yet')
@endif
{{-- @foreach ($result_views as $exam) --}}
{{-- @endforeach --}}
@foreach ($result_views as $result_view)
@lang('common.title')
@lang('common.time')
@lang('exam.total_marks')
@lang('exam.obtained_marks')
@lang('reports.result')
@lang('common.status')
@endforeach
{{ $result_view->onlineExam != '' ? @$result_view->onlineExam->title : '' }}
@if (!empty(@$result_view->onlineExam))
{{ @$result_view->onlineExam->date != '' ? dateConvert(@$result_view->onlineExam->date) : '' }}
@lang('common.time'):
{{ @$result_view->onlineExam->start_time . ' - ' . @$result_view->onlineExam->end_time }}
@endif
@php
$total_marks = 0;
foreach ($result_view->onlineExam->assignQuestions as $assignQuestion) {
@$total_marks = $total_marks + @$assignQuestion->questionBank->marks;
}
echo @$total_marks;
@endphp
{{ @$result_view->total_marks }}
@php
@$result = (@$result_view->total_marks * 100) / @$total_marks;
if (@$result >= @$result_view->onlineExam->percentage) {
echo 'Pass';
} else {
echo 'Fail';
}
@endphp
@php
$startTime = strtotime($result_view->onlineExam->date . ' ' . $result_view->onlineExam->start_time);
$endTime = strtotime($result_view->onlineExam->date . ' ' . $result_view->onlineExam->end_time);
$now = date('h:i:s');
$now = strtotime('now');
@endphp
@if ($now >= $endTime)
@lang('exam.answer_script')
@else
@lang('exam.Wait_Till_Exam_Finish')
@endif
@if (is_show('document_file_1'))
@if ($student_detail->document_file_1 != '')
@lang('student.title')
@lang('student.name')
@lang('student.action')
@endif
@endif
@if (is_show('document_file_2'))
@if ($student_detail->document_file_2 != '')
{{ $student_detail->document_title_1 }}
{{ showDocument(@$student_detail->document_file_1) }}
@if (file_exists($student_detail->document_file_1))
@lang('common.download')
@endif
@endif
@endif
@if (is_show('document_file_3'))
@if ($student_detail->document_file_3 != '')
{{ $student_detail->document_title_2 }}
{{ showDocument(@$student_detail->document_file_2) }}
@if (file_exists($student_detail->document_file_2))
@lang('common.download')
@endif
@endif
@endif
@if (is_show('document_file_4'))
@if ($student_detail->document_file_4 != '')
{{ $student_detail->document_title_3 }}
{{ showDocument(@$student_detail->document_file_3) }}
@if (file_exists($student_detail->document_file_3))
@lang('common.download')
@endif
@endif
@endif
{{ $student_detail->document_title_4 }}
{{ showDocument(@$student_detail->document_file_4) }}
@if (file_exists($student_detail->document_file_4))
@lang('common.download')
@endif
{{ $document->title }}
{{ showDocument($document->file) }}
@if (file_exists($document->file))
@lang('common.download')
@endif
@if (moduleStatusCheck('University'))
@foreach ($student_detail->studentRecords as $record)
@lang('university::un.session')
@lang('university::un.faculty_department')
@lang('university::un.semester(label)')
@else
@lang('common.class')
@lang('common.section')
@endif
@lang('student.id_number')
@if (moduleStatusCheck('University'))
@endforeach
{{ $record->unSession->name }}
{{ $record->unFaculty->name . '(' . $record->unDepartment->name . ')' }}
@if ($record->is_default)
{{ __('common.default') }}
@endif
{{ $record->unSemester->name . '(' . $record->unSemesterLabel->name . ')' }}
@else
{{ $record->class->class_name }}
@if ($record->is_default)
{{ __('common.default') }}
@endif
{{ $record->section->section_name }}
@endif
{{ $record->roll_no }}