Merge remote-tracking branch 'refs/remotes/origin/staging' into staging
This commit is contained in:
0
app/Http/Controllers/Api/AuthController.php
Executable file → Normal file
0
app/Http/Controllers/Api/AuthController.php
Executable file → Normal file
0
app/Http/Controllers/Api/OLDLMS/ClaimController.php
Executable file → Normal file
0
app/Http/Controllers/Api/OLDLMS/ClaimController.php
Executable file → Normal file
21
app/Http/Controllers/Api/OLDLMS/MembershipController.php
Executable file → Normal file
21
app/Http/Controllers/Api/OLDLMS/MembershipController.php
Executable file → Normal file
@@ -261,6 +261,27 @@ class MembershipController extends Controller
|
||||
return Helper::responseJson(data: MemberResource::make($member));
|
||||
}
|
||||
|
||||
public function automaticLinking(Request $request)
|
||||
{
|
||||
$member = Member::query()
|
||||
->when(in_array('email', $linkingRulesArr), function($q) use ($request) {
|
||||
$q->where('email', $request->email);
|
||||
})
|
||||
->with([
|
||||
'memberPlans' => function ($memberPlan) {
|
||||
$memberPlan->latest();
|
||||
},
|
||||
])
|
||||
|
||||
->first();
|
||||
|
||||
if ($member) {
|
||||
$message = $member->currentPolicy->corporate->welcome_message;
|
||||
return Helper::responseJson(data: MemberResource::make($member), message: $message);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public function removeInsurance($email)
|
||||
{
|
||||
$user = User::where('sEmail', $email)->firstOrFail();
|
||||
|
||||
0
app/Http/Controllers/Api/OLDLMS/PaymentController.php
Executable file → Normal file
0
app/Http/Controllers/Api/OLDLMS/PaymentController.php
Executable file → Normal file
0
app/Http/Controllers/Controller.php
Executable file → Normal file
0
app/Http/Controllers/Controller.php
Executable file → Normal file
0
app/Http/Controllers/GeneratedDocumentController.php
Executable file → Normal file
0
app/Http/Controllers/GeneratedDocumentController.php
Executable file → Normal file
0
app/Http/Kernel.php
Executable file → Normal file
0
app/Http/Kernel.php
Executable file → Normal file
0
app/Http/Middleware/Authenticate.php
Executable file → Normal file
0
app/Http/Middleware/Authenticate.php
Executable file → Normal file
0
app/Http/Middleware/EncryptCookies.php
Executable file → Normal file
0
app/Http/Middleware/EncryptCookies.php
Executable file → Normal file
0
app/Http/Middleware/LinksehatOldAuthMiddleware.php
Executable file → Normal file
0
app/Http/Middleware/LinksehatOldAuthMiddleware.php
Executable file → Normal file
0
app/Http/Middleware/PreventRequestsDuringMaintenance.php
Executable file → Normal file
0
app/Http/Middleware/PreventRequestsDuringMaintenance.php
Executable file → Normal file
0
app/Http/Middleware/RedirectIfAuthenticated.php
Executable file → Normal file
0
app/Http/Middleware/RedirectIfAuthenticated.php
Executable file → Normal file
0
app/Http/Middleware/TrimStrings.php
Executable file → Normal file
0
app/Http/Middleware/TrimStrings.php
Executable file → Normal file
0
app/Http/Middleware/TrustHosts.php
Executable file → Normal file
0
app/Http/Middleware/TrustHosts.php
Executable file → Normal file
0
app/Http/Middleware/TrustProxies.php
Executable file → Normal file
0
app/Http/Middleware/TrustProxies.php
Executable file → Normal file
0
app/Http/Middleware/VerifyCsrfToken.php
Executable file → Normal file
0
app/Http/Middleware/VerifyCsrfToken.php
Executable file → Normal file
0
app/Http/Resources/MemberDataTableResource.php
Executable file → Normal file
0
app/Http/Resources/MemberDataTableResource.php
Executable file → Normal file
0
app/Http/Resources/OLDLMS/MemberLimitResource.php
Executable file → Normal file
0
app/Http/Resources/OLDLMS/MemberLimitResource.php
Executable file → Normal file
3
app/Http/Resources/OLDLMS/MemberResource.php
Executable file → Normal file
3
app/Http/Resources/OLDLMS/MemberResource.php
Executable file → Normal file
@@ -32,8 +32,7 @@ class MemberResource extends JsonResource
|
||||
'start' => $currentMemberPlan->start,
|
||||
'end' => $currentMemberPlan->end,
|
||||
'limit' => $this->currentPlan->limit_rules,
|
||||
'limit_telecon' => $limitTelecon,
|
||||
|
||||
'limit_consultation' => 6
|
||||
] : null,
|
||||
'policy_code' => $this->currentPolicy?->code ?? null,
|
||||
'corporate' => [
|
||||
|
||||
Reference in New Issue
Block a user