@php use App\Support\Crm\ActivityFormatter; @endphp

{{ $stats['purchases'] ?? 0 }}

Purchases

{{ $stats['exams'] ?? 0 }}

Exams

{{ $stats['practicals'] ?? 0 }}

Practicals

₹{{ number_format($stats['amount_spent'] ?? 0, 2) }}

Amount Spent
@if(($recentPurchases ?? collect())->count() > 0)
Recent Purchases
@foreach($recentPurchases as $purchase)
{!! ActivityFormatter::courseBreadcrumbHtml($purchase->course) ?: 'Course #' . $purchase->course_id !!}
₹{{ number_format((float) ($purchase->course->fees_MRP ?? 0), 2) }}
{{ (int) ($purchase->status ?? 0) === 1 ? 'Active' : 'Inactive' }}
@endforeach
@endif
Contact Profile @can('admin.crm-contact.edit') Edit @endcan
Name{{ $contact->full_name }}
Mobile{{ $contact->mobile }}
Email{{ $contact->email ?: '—' }}
Type{{ $contact->type ?: '—' }}
Source{{ $contact->source ?: '—' }}
Created On{{ optional($contact->created_at)->format('d M, Y h:i A') }}
@if($student)
Linked Student Open Student
Name{{ $student->full_name }}
Mobile{{ $student->mobile_number }}
Email{{ $student->email ?: '—' }}
City{{ $student->city ?: '—' }}
State{{ $student->state ?: '—' }}
Status{{ $student->status ? 'Active' : 'Inactive' }}
@elseif($instructor)
Linked Instructor Open Instructor
Name{{ $instructor->full_name }}
Mobile{{ $instructor->mobile_number }}
Email{{ $instructor->email ?: '—' }}
Status{{ $instructor->status ? 'Active' : 'Inactive' }}
@else
No linked student/instructor profile yet.
@endif