@extends('backEnd.master')
@push('css')
@if (moduleStatusCheck('University'))
@endif
@endpush
@section('title')
@lang('student.student_profile')
@endsection
@section('mainContent')
@php
$setting = generalSetting();
if (!empty($setting->currency_symbol)) {
$currency = $setting->currency_symbol;
} else {
$currency = '$';
}
@endphp
@lang('student.student_profile')
@lang('student.personal_info')
@if (is_show('admission_date'))
@lang('student.Parent_Guardian_Details')
@lang('student.' . (isMenuAllowToShow('transport') ? 'transport' : '') . (isMenuAllowToShow('transport') && isMenuAllowToShow('dormitory') ? '_and_' : '') . (isMenuAllowToShow('dormitory') ? 'dormitory' : '') . '_details')
@if (isMenuAllowToShow('transport'))
@if (is_show('route'))
@lang('student.other_information')
@if (is_show('blood_group'))
@if (moduleStatusCheck('University'))
{{ $record->semesterLabel->name }}
({{ $record->unSection->section_name }})
-
{{ @$record->unAcademic->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->feesGroupMaster->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->feesGroupMaster->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 ($record->fees 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('fees.Status')
@lang('fees.amount') ({{ @$currency }})
@lang('fees.payment_ID')
@lang('fees.mode')
@lang('common.date')
@lang('fees.discount') ({{ @$currency }})
@lang('fees.fine') ({{ @$currency }})
@lang('fees.paid') ({{ @$currency }})
@lang('fees.balance') ({{ @$currency }})
@php
@$payments = App\SmFeesAssign::feesPayment(@$fees_assigned->feesGroupMaster->feesTypes->id, @$fees_assigned->student_id, $fees_assigned->record_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') ({{ @$currency }})
{{ @$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) ?? "null"}}
@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
@if (is_show('document_file_1'))
@if ($student_detail->document_file_1 != '')
@lang('student.document_title')
@lang('common.name')
@lang('common.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 (userPermission(17)) --}}
{{-- @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 (userPermission(17)) --}}
{{-- @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 (userPermission(17)) --}}
{{-- @endif --}}
@endif
@endif
@foreach ($documents as $document)
{{ $student_detail->document_title_4 }}
{{ showDocument(@$student_detail->document_file_4) }}
{{-- @if (userPermission(17)) --}}
{{-- @endif --}}
@endforeach
{{ @$document->title }}
{{ showDocument(@$document->file) }}
{{-- @if (userPermission(17)) --}}
@lang('common.download')
{{-- @endif --}}
@foreach ($student_detail->studentRecords as $record)
@lang('common.class')
@lang('common.section')
@lang('student.id_number')
@endforeach
{{ $record->class->class_name }}
@if ($record->is_default)
{{ __('common.default') }}
@endif
{{ $record->section->section_name }}
{{ $record->roll_no }}