@php $tenant = \App\Support\Facades\Tenancy::get(); $brandStyle = $tenant->brand_primary_color ? ":root { --color-brand-600: {$tenant->brand_primary_color}; } .dark { --color-brand-600: {$tenant->brand_primary_color}; }" : null; @endphp
@forelse($scales as $scale)

{{ $scale->name }} @if($scale->is_default)Default@endif

{{ strtoupper($scale->mode) }} mode

@if($scale->mode === 'gpa') @endif @forelse($scale->boundaries as $boundary) @if($scale->mode === 'gpa') @endif @empty @endforelse
Label RangeGrade PointPassing
{{ $boundary->label }} {{ $boundary->min_percentage }}–{{ $boundary->max_percentage }}%{{ $boundary->grade_point ?? '—' }}{{ $boundary->is_passing ? 'Yes' : 'No' }}
No boundaries defined yet.
@empty
No grading scales yet.
@endforelse
@csrf

Mode can't be changed after creation — delete and recreate the scale instead.

Add Grade Boundary

@csrf

What is this?

A grading scale converts a student's raw percentage (or GPA) into a letter grade — like A+, A, B, F — using a set of ranges you define ("boundaries"). Each boundary says: "if a student scores between X% and Y%, give them this letter and this grade point."

Why do I need one?

Without at least one default scale for a mode (Percentage or GPA), the system has no way to work out a letter grade for any exam using that mode — every result's Grade column just shows a blank "—", even for students who clearly passed. Marks still get recorded and totalled correctly; only the letter grade is missing.

Where does it actually get used?

  • An Exam is created in either Percentage or GPA grading mode.
  • When an admin clicks "Compute Results" on that exam, the system looks up the scale marked Default for that exam's mode.
  • Each student's overall percentage is matched against your boundaries to pick their letter grade — shown on the exam's Results page and on report cards/transcripts.
  • A boundary's Passing flag also decides pass/fail per subject — a student who fails even one subject is marked Fail overall, even if their combined average would otherwise look like a pass.

Worked example

Using the standard Bangladesh board boundaries already set up here:

Range Grade Point Passing?
80–100%A+5.00Yes
70–79%A4.00Yes
60–69%A-3.50Yes
50–59%B3.00Yes
33–39%D1.00Yes
0–32%F0.00No

Example: a student scores 56/100 in Bangla (grade B) and 20/100 in English (grade F, below 33%). Their combined average is 51% — inside the "B" range — but because they failed one subject, their overall result is still marked Fail, not "B / Pass."