@extends('admin.layouts.app') @section('title') {{ __('Report') }} @endsection @section('content')

{{ request('where') }} Report ({{ $progressData['name']['total'] ?? 0 }})

@if(request('where') == 'Universities') @endif
@isset($progressData) @if($progressData['name']['total'] != 0)
Course Progress
@php $fieldCount = 0; @endphp @foreach ($progressData as $field => $data) @if ($fieldCount > 0 && $fieldCount % 10 == 0)
{{ request('where') }} Progress
@endif

{{ ucwords(str_replace(['_'], [' '], $field)) }} @if(request('where') == 'Course') @elseif (request('where') == 'Universities') @endif {{ number_format($data['percentage'], 2) }}%

{{ $data['filled'] }} out of {{ $data['total'] }} courses have {{ $field }} filled. @php $fieldCount++; @endphp @endforeach
@else
Sorry Nothing to Show
@endif @endisset
@endsection @section('style') @endsection @section('script') @endsection