Skip to content

Commit

Permalink
Admin stats - display FE provider verification auto-passed count
Browse files Browse the repository at this point in the history
  • Loading branch information
kenfodder committed Oct 3, 2024
1 parent 11ecfac commit 11517ef
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/controllers/admin/page_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ def index

@no_data_census_subjects_taught_count = SchoolWorkforceCensus.no_data_census_subjects_taught_count
@any_match_count = SchoolWorkforceCensus.any_match_count

@fe_provider_verfication_tasks_automatically_passed =
Task
.joins(:claim)
.where(claim: {eligibility_type: "Policies::FurtherEducationPayments::Eligibility", academic_year: AcademicYear.current})
.passed_automatically
.where(name: "provider_verification")
.count
end
end
end
16 changes: 16 additions & 0 deletions app/views/admin/page/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,19 @@
<hr class="govuk-section-break govuk-section-break--m govuk-section-break--visible">
</div>
</div>

<br />

<div class="govuk-grid-row">
<div class="govuk-grid-column-full">
<h1 class="govuk-heading-m">Further Education Payments Statistics</h1>
</div>
</div>

<div class="govuk-grid-row">
<div class="govuk-grid-column-one-half">
<h2 class="govuk-heading-m">Provider verification tasks automatically passed (<%= AcademicYear.current %>) </h2>
<p class="govuk-body govuk-!-font-size-36"><%= @fe_provider_verfication_tasks_automatically_passed %></p>
<hr class="govuk-section-break govuk-section-break--m govuk-section-break--visible">
</div>
</div>

0 comments on commit 11517ef

Please sign in to comment.