Skip to content

Conversation

@WillShaw1100
Copy link
Contributor

@WillShaw1100 WillShaw1100 commented Dec 7, 2025

Summary of changes

Adds very basic widgets showing exam details for both practical and theory exams.

Screenshots (if necessary)

image image

$failed = PracticalResult::where('result', PracticalResult::FAILED)->count();
$incomplete = PracticalResult::where('result', PracticalResult::INCOMPLETE)->count();

$examStats = PracticalResult::select('exam', 'result', DB::raw('count(*) as total'))
Copy link
Contributor

@kristiankunc kristiankunc Dec 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what @AxonC thinks, but I feel like this query will eat us in prod. Thinking about some pagination such as quarterly/yearly.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It did cross my mind....
What if we tried to combine it?
Id be interested to know how the CTS shows these stats.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants