Merge remote-tracking branch 'refs/remotes/origin/staging' into staging

This commit is contained in:
kevin
2023-07-04 09:42:37 +07:00
1905 changed files with 550 additions and 13 deletions

0
app/Http/Controllers/Api/AuthController.php Executable file → Normal file
View File

0
app/Http/Controllers/Api/OLDLMS/ClaimController.php Executable file → Normal file
View File

View 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
View File

0
app/Http/Controllers/Controller.php Executable file → Normal file
View File

0
app/Http/Controllers/GeneratedDocumentController.php Executable file → Normal file
View File

0
app/Http/Kernel.php Executable file → Normal file
View File

0
app/Http/Middleware/Authenticate.php Executable file → Normal file
View File

0
app/Http/Middleware/EncryptCookies.php Executable file → Normal file
View File

0
app/Http/Middleware/LinksehatOldAuthMiddleware.php Executable file → Normal file
View File

View File

0
app/Http/Middleware/RedirectIfAuthenticated.php Executable file → Normal file
View File

0
app/Http/Middleware/TrimStrings.php Executable file → Normal file
View File

0
app/Http/Middleware/TrustHosts.php Executable file → Normal file
View File

0
app/Http/Middleware/TrustProxies.php Executable file → Normal file
View File

0
app/Http/Middleware/VerifyCsrfToken.php Executable file → Normal file
View File

0
app/Http/Resources/MemberDataTableResource.php Executable file → Normal file
View File

0
app/Http/Resources/OLDLMS/MemberLimitResource.php Executable file → Normal file
View File

3
app/Http/Resources/OLDLMS/MemberResource.php Executable file → Normal file
View 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' => [