update penambahan specialist dan dppj di request final log
This commit is contained in:
@@ -6,6 +6,7 @@ use App\Models\OLDLMS\User;
|
||||
use App\Models\Icd;
|
||||
use App\Models\Drug;
|
||||
use App\Models\Unit;
|
||||
use App\Models\Speciality;
|
||||
use App\Models\MemberPlan;
|
||||
use Illuminate\Contracts\Support\Renderable;
|
||||
use Illuminate\Http\Request;
|
||||
@@ -196,6 +197,17 @@ class AutocompleteController extends Controller {
|
||||
return response()->json($manipulatedPlan);
|
||||
}
|
||||
|
||||
public function specialisList(Request $request){
|
||||
$specialities = Speciality::query()->get();
|
||||
$manipulatedSpecial = $specialities->map(function ($special) {
|
||||
return [
|
||||
'value' => optional($special)->id ,
|
||||
'label' => optional($special)->name,
|
||||
];
|
||||
});
|
||||
return response()->json($manipulatedSpecial);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user