@extends('layouts.advisor') @section('title','Advisor Dashboard') @section('breadcrumb')@endsection @section('advisor-content')

Welcome, {{ auth()->user()->name }}!

My Students

{{ $totalStudents }}

Total Fee

₹{{ number_format($totalFee, 0) }}

Collected

₹{{ number_format($totalCollected, 0) }}

Due

₹{{ number_format($totalDue, 0) }}

Recent Students
View All
@forelse($recentStudents as $s) @empty @endforelse
NameEnrollmentCoursePaidDue
{{ $s->name }} {{ $s->enrollment_no }} {{ optional($s->course)->name }} ₹{{ number_format($s->total_paid, 0) }} ₹{{ number_format($s->total_due, 0) }}
No students assigned.
My Info
@php $advisor = auth()->user()->advisor; @endphp
Code
{{ optional($advisor)->advisor_code }}
Commission
{{ optional($advisor)->commission_rate }}%
Phone
{{ optional($advisor)->phone ?? '-' }}
Advisor Fee
₹{{ number_format($totalAdvisorFee, 0) }}
Edit Profile
@endsection