@php $authStaffDepartment = auth()->user()?->staff?->department; $authStaffDepartmentSlug = $authStaffDepartment?->slug ?? ''; // $isRetentionDepartment = $authStaffDepartmentSlug === 'retention'; $canAddStudent = false; // $canManageInvoices = $isRetentionDepartment; if ($course->schedule_type === 'course') { $canAddStudent = (optional($course->academyProduct)->count_of_students ?? 0) > $course->courseStudent->count(); } elseif ($course->schedule_type === 'track') { $canAddStudent = (optional($course->trackType)->count_of_students ?? 0) > $course->courseStudent->count(); } @endphp
Manage enrolment, invoices, and payment follow-up for this course.