@extends('layouts.applicant.applicant') @section('head') @endsection @section('title', 'D-S - Credit Point Summary') @section('breadcrumbs') @endsection @section('content')

Summary of Credit Points

Guidelines for calculation of credit points are available on the website

Application: {{ $application->application_number }}

@php $previousStep = $currentStep->getPreviousStep(); @endphp @if($previousStep) Previous Step @endif
@include('applicant.applications.partials.progress-indicator') @php // Generate or get the credit point summary from CreditPointSummary model $creditSummary = $application->creditPointSummaries()->orderByRaw('CAST(SUBSTRING(d_no, 2) AS UNSIGNED)')->get(); // If no summary exists, try to generate it if ($creditSummary->isEmpty()) { try { $creditSummary = \App\Models\CreditPointSummary::generateSummaryForApplication($application->id); } catch (Exception $e) { $creditSummary = collect(); } } $totalClaimedPoints = $creditSummary->sum('credit_points_claimed'); $totalAwardedPoints = $creditSummary->sum('credit_points_awarded'); $completedEvaluations = $creditSummary->whereNotNull('credit_points_awarded')->count(); $pendingEvaluations = $creditSummary->whereNull('credit_points_awarded')->count(); $totalActivities = $creditSummary->count(); $activitiesWithFiles = $creditSummary->where('files_uploaded', true)->count(); @endphp
{{ number_format($totalClaimedPoints, 2) }}
Total Claimed Points
{{ number_format($totalAwardedPoints, 2) }}
Total Awarded Points
{{ $activitiesWithFiles }}
Activities with Files
{{ $pendingEvaluations }}
Pending Evaluations
Credit Point Summary Instructions
For Applicants:
  • This summary is auto-generated from your D-series entries
  • Ensure all relevant documents are uploaded in respective sections
  • Credit points are calculated based on institutional guidelines
  • Review all entries before final submission
For Institute Evaluation:
  • Verify supporting documents for each claim
  • Award credit points based on institutional criteria
  • Add remarks for any adjustments made
  • Complete evaluation for all applicable activities
D-Series Credit Point Summary
@if($application->isEditable()) @endif
@if($creditSummary->count() > 0)
@foreach($creditSummary as $summary) @endforeach
D-No Activity Description Credit Points Claimed Files Uploaded Credit Points Awarded Institute Remarks
{{ $summary->d_no }}
{{ $summary->activity }}
@if($summary->credit_points_claimed > 0) Has entries @else No entries @endif
@if($summary->credit_points_claimed > 0) {{ number_format($summary->credit_points_claimed, 2) }} @else 0.00 @endif @if($summary->files_uploaded) Yes @else No @endif @if($summary->credit_points_awarded !== null) {{ number_format($summary->credit_points_awarded, 2) }} @if($summary->credit_points_awarded != $summary->credit_points_claimed)
({{ $summary->credit_points_awarded > $summary->credit_points_claimed ? '+' : '' }}{{ number_format($summary->credit_points_awarded - $summary->credit_points_claimed, 2) }}) @endif @else Pending @endif
@if($summary->institute_remarks) {{ Str::limit($summary->institute_remarks, 50) }} @else - @endif
Total: {{ number_format($totalClaimedPoints, 2) }} {{ $activitiesWithFiles }}/{{ $totalActivities }} {{ number_format($totalAwardedPoints, 2) }} @if($pendingEvaluations > 0) {{ $pendingEvaluations }} pending @else Complete @endif
Applicant Summary

Total Activities: {{ $totalActivities }}

Activities with Entries: {{ $creditSummary->where('credit_points_claimed', '>', 0)->count() }}

Activities with Files: {{ $activitiesWithFiles }}

Total Claimed Points: {{ number_format($totalClaimedPoints, 2) }}

Institute Evaluation

Completed Evaluations: {{ $completedEvaluations }}

Pending Evaluations: {{ $pendingEvaluations }}

Total Awarded Points: {{ number_format($totalAwardedPoints, 2) }}

@if($totalAwardedPoints != $totalClaimedPoints && $completedEvaluations > 0)

Variance: {{ $totalAwardedPoints > $totalClaimedPoints ? '+' : '' }}{{ number_format($totalAwardedPoints - $totalClaimedPoints, 2) }}

@else

Status: @if($pendingEvaluations == 0) Evaluation Complete @else Evaluation Pending @endif

@endif
Activity Breakdown
@php $activitiesWithPoints = $creditSummary->where('credit_points_claimed', '>', 0)->sortByDesc('credit_points_claimed')->take(6); @endphp @foreach($activitiesWithPoints as $activity)
{{ number_format($activity->credit_points_claimed, 1) }}
{{ $activity->d_no }}
@if($activity->files_uploaded) @endif @if($activity->credit_points_awarded !== null) @endif
@endforeach
@else
No Credit Point Summary Available

Generate the summary to view your D-series credit points.

@if($application->isEditable()) @endif
@endif
@if($previousStep) Previous: {{ $previousStep->name }} @endif
@php $nextStep = $currentStep->getNextStep(); @endphp @if($nextStep) Next: {{ $nextStep->name }} @endif
@endsection