Merge remote-tracking branch 'refs/remotes/origin/staging' into staging
This commit is contained in:
0
Modules/Internal/Http/Controllers/.gitkeep
Executable file → Normal file
0
Modules/Internal/Http/Controllers/.gitkeep
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/AppointmentController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/AppointmentController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/AuthController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/AuthController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/BenefitController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/BenefitController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/CityController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/CityController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/ClaimController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/ClaimController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/ClaimRequestController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/ClaimRequestController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/CorporateBenefitController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/CorporateBenefitController.php
Executable file → Normal file
5
Modules/Internal/Http/Controllers/Api/CorporateController.php
Executable file → Normal file
5
Modules/Internal/Http/Controllers/Api/CorporateController.php
Executable file → Normal file
@@ -80,7 +80,7 @@ class CorporateController extends Controller
|
||||
{
|
||||
|
||||
$request->validate([
|
||||
'code' => 'required|regex:/^[a-zA-Z0-9]+$/',
|
||||
'code' => 'required|regex:/^[a-zA-Z0-9_]+$/',
|
||||
'name' => 'required',
|
||||
'payor_id' => 'required',
|
||||
// 'logo' => 'required',
|
||||
@@ -303,7 +303,7 @@ class CorporateController extends Controller
|
||||
public function update(Request $request, $id)
|
||||
{
|
||||
$request->validate([
|
||||
'code' => 'required|regex:/^[a-zA-Z0-9]+$/',
|
||||
'code' => 'required|regex:/^[a-zA-Z0-9_]+$/',
|
||||
'payor_id' => 'required',
|
||||
'name' => 'required',
|
||||
'policy_code' => 'required_with:policy_id',
|
||||
@@ -673,6 +673,7 @@ class CorporateController extends Controller
|
||||
$row['prorate_lookup'], // "Prorate Lookup",
|
||||
$row['max_days_for_disability'], // "Max Days for Disability",
|
||||
$row['max_period_for_disability'], // "Max Periode of Disability",
|
||||
$row['limit_free_tc'], // "Currency",
|
||||
$row['currency'], // "Currency",
|
||||
$row['show_benefit_item'], // "Show Benefit Item",
|
||||
$row['show_benefit_value'], // "Show Benefit Value",
|
||||
|
||||
0
Modules/Internal/Http/Controllers/Api/CorporateFormulariumController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/CorporateFormulariumController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/CorporateMemberController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/CorporateMemberController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/CorporatePlanController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/CorporatePlanController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/CorporateServiceController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/CorporateServiceController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/DiagnosisController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/DiagnosisController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/DiagnosisExclusionController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/DiagnosisExclusionController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/DistrictController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/DistrictController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/DivisionController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/DivisionController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/DoctorController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/DoctorController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/DrugController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/DrugController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/FormulariumController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/FormulariumController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/Linksehat/PaymentController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/Linksehat/PaymentController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/LivechatController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/LivechatController.php
Executable file → Normal file
8
Modules/Internal/Http/Controllers/Api/MemberController.php
Executable file → Normal file
8
Modules/Internal/Http/Controllers/Api/MemberController.php
Executable file → Normal file
@@ -13,10 +13,14 @@ class MemberController extends Controller
|
||||
* Display a listing of the resource.
|
||||
* @return Renderable
|
||||
*/
|
||||
public function index()
|
||||
public function index(Request $request)
|
||||
{
|
||||
return Member::query()
|
||||
->with('currentPlan')
|
||||
->when($request->search, function ($query, $search) {
|
||||
return $query->where('name', 'LIKE', '%' . $search . '%')
|
||||
->orWhere('member_id', 'LIKE', '%' . $search . '%');
|
||||
})
|
||||
->with('currentPlan', 'currentCorporate')
|
||||
->paginate();
|
||||
}
|
||||
|
||||
|
||||
0
Modules/Internal/Http/Controllers/Api/OptionController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/OptionController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/OrganizationController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/OrganizationController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/PlanController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/PlanController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/ProvinceController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/ProvinceController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/SpecialityController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/SpecialityController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/VillageController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/Api/VillageController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/ClaimEncounterController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/ClaimEncounterController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/InternalController.php
Executable file → Normal file
0
Modules/Internal/Http/Controllers/InternalController.php
Executable file → Normal file
Reference in New Issue
Block a user