{{-- | {{ $index + 1 }} | --}}
{{ $index + 1 }} |
@if($index ==2)
@endif
{{ $application->applicant->student_name }} |
{{ $application->applicant->father_name }} |
{{ $application->applicant->mobile_no }} |
{{ $application->applicant->phone_no }} |
{{ $application->applicant->postal_address }} |
{{ $application->applicant->district->district }} |
{{ $application->application_no }} |
@php $newWeightedPercentage = 0 @endphp
@if(isset($rules))
@foreach ( $rules as $key => $value )
@php $degree = $application->applicant->educations->where('degreeLevel.degree_level', $key )->first() @endphp
@if(isset($degree))
@php $obtainMarks = isset($degree->obtain_marks) ? $degree->obtain_marks : 0 @endphp
{{$obtainMarks }} |
@php $weightedPercentage = ( $obtainMarks / ( isset($degree->total_marks) ? $degree->total_marks : 1 ) ) * $value @endphp
@php $newWeightedPercentage += $weightedPercentage @endphp
{{number_format($weightedPercentage, 4, '.', '')}} |
@endif
@endforeach
@endif
{{-- {{ number_format($newWeightedPercentage, 4, '.', '') }} | --}}
{{ $application->weighted_percentage }} |
@php $totalPreferences = 0 @endphp
@foreach($application->applicant->preferences->where('sub_application_type_id', $inputs['sub-application-type']) as $preference)
[{{$preference->seats_allocation_id}}]
[{{ $preference->seatAllocation->institution->full_name }}]
[{{ $preference->seatAllocation->degree->full_name }}],
@php $totalPreferences ++ @endphp
@endforeach
|
@endforeach