update controllers logic
This commit is contained in:
@@ -3,10 +3,16 @@
|
||||
namespace App\Services\Administrator;
|
||||
|
||||
use App\Models\Invoice;
|
||||
use App\Services\ApplicationUrlService;
|
||||
use Illuminate\Support\Facades\Event;
|
||||
|
||||
class AdministratorEnrollmentEventService
|
||||
{
|
||||
public function __construct(
|
||||
private ApplicationUrlService $urls,
|
||||
) {
|
||||
}
|
||||
|
||||
public function dispatchGroupedEvents(
|
||||
array $groupsByParentStatus,
|
||||
array $parentInfo,
|
||||
@@ -57,7 +63,7 @@ class AdministratorEnrollmentEventService
|
||||
'firstname' => $p['firstname'],
|
||||
'lastname' => $p['lastname'],
|
||||
'school_year' => $schoolYear,
|
||||
'portalLink' => url('/login'),
|
||||
'portalLink' => $this->urls->webLoginUrl(),
|
||||
];
|
||||
|
||||
if ($status === 'payment pending' && $invoice) {
|
||||
|
||||
Reference in New Issue
Block a user