@extends('layouts.training_centre_layout') @section('content') {{-- Flash Messages --}} @if (session('success')) @endif @if (session('error')) @endif @if (session('warning')) @endif
Welcome to Training Centre Dashboard
{{-- Notifications Section --}}
Inbox Messages
    @if ($partnerNotifications != null && $partnerNotifications->count() > 0) @foreach ($partnerNotifications as $notifications) @php $date = \Carbon\Carbon::parse($notifications->created_at)->diffForHumans(); @endphp
  • {{ $notifications->type_name }} {{ $date }}

    {{ $notifications->message }}

    @if ($notifications->type_name == "BATCH") View @elseif ($notifications->type_name == "ASSESSMENTS") View @elseif ($notifications->type_name == "STUDENT") View @endif
  • @endforeach @else

    No new inbox messages

    @endif
{{-- Discrepancy Section --}} @if(isset($scrutinyDetails) && $scrutinyDetails->count() > 0) @php $status = $centre->application_status ?? ''; @endphp @if($status == 'DISCREPANCY_FOUND')

Centre Application Discrepancies

Review and resolve discrepancies in your submitted applications.

@php $groupedScrutiny = $scrutinyDetails->groupBy('centre_application_id'); @endphp
@foreach($groupedScrutiny as $applicationId => $details)

Application #: {{ $centre->application_number ?? 'N/A' }} {{ $status }}

@foreach($details as $detail)
{{ $detail->scrutinyList->name ?? 'N/A' }}

Remarks: {{ $detail->remarks ?? '-' }}

Date: {{ $detail->scrutiny_date ?? '-' }}

@endforeach
@endforeach
@endif @endif {{-- Payment Pending Modal --}} @if(isset($centre) && in_array(strtolower($centre->application_status), ['payment_pending'])) @endif {{-- Student Discrepancy Cards --}} @if (isset($studentDetails) && $studentDetails->count() > 0) @foreach ($studentDetails as $student)
{{ $student->courseSelectionDetail[0]->course->title ?? 'Course Details Missing' }}
Discrepancy Found

Kindly review and rectify the data.

$student->id]) }}" class="btn btn-sm btn-danger"> Resolve Discrepancy
@endforeach @endif {{-- Stats Cards --}}
{{ $totalStudentCount }}
Total Students
{{ $approvedStudentCount }}
Active Students
{{ $completedbatchCount }}
Completed Batches
{{--
0
Certificates Issued
--}}
@endsection @section('pages-scripts') @endsection