|
@@ -1,6 +1,6 @@
|
1
|
1
|
<?php
|
2
|
2
|
|
3
|
|
-namespace App\Http\Services\Web;
|
|
3
|
+namespace App\Http\Services\Api;
|
4
|
4
|
|
5
|
5
|
use App\Models\SignupData;
|
6
|
6
|
use App\Models\TrackData;
|
|
@@ -21,7 +21,7 @@ class SeminarSignUpService
|
21
|
21
|
}
|
22
|
22
|
|
23
|
23
|
public function insertData(
|
24
|
|
- $trackNo, $firstName, $lastName, $companyName, $companyEmail, $backupEmail, $phoneNumber, $country,
|
|
24
|
+ $firstName, $lastName, $companyName, $companyEmail, $backupEmail, $phoneNumber, $country, $trackNo,
|
25
|
25
|
$registeredSession, $lunchOptions, $typeOfIndustry, $typeOfJob, $jobTitle, $trackOfInterest, $areaOfInterest, $howToKnowAboutTheEvent,
|
26
|
26
|
$consentAcceptEmail, $consentPrivacyPolicy)
|
27
|
27
|
{
|
|
@@ -53,6 +53,8 @@ class SeminarSignUpService
|
53
|
53
|
|
54
|
54
|
public function overLimitOrNot($trackNo)
|
55
|
55
|
{
|
|
56
|
+ \Log::info($trackNo);
|
|
57
|
+
|
56
|
58
|
$nowCount = $this->signupDb
|
57
|
59
|
->where('trackNo', '=', $trackNo)
|
58
|
60
|
->count();
|
|
@@ -62,7 +64,7 @@ class SeminarSignUpService
|
62
|
64
|
->where('trackNo', '=', $trackNo)
|
63
|
65
|
->first();
|
64
|
66
|
|
65
|
|
- if ($limit['trackLimit']>$nowCount) {
|
|
67
|
+ if ($limit->trackLimit>$nowCount) {
|
66
|
68
|
return true;
|
67
|
69
|
} else {
|
68
|
70
|
return false;
|