test wawancara

This commit is contained in:
person-programmer
2025-12-02 13:32:45 +07:00
parent efffe71082
commit fcde54700f
15 changed files with 276 additions and 1 deletions
@@ -0,0 +1,34 @@
<?php
namespace App\Http\Controllers\Api;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Models\HealthCareServiceModel;
use App\Models\HealthCareServiceSchedule;
use App\Models\HealthCareServiceShift;
class HealthCareServiceController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
$healthcareService = HealthCareServiceModel::with(
['ref_healthcare_type', 'ref_service_type']
)->get();
$healthcareServiceSchedule = HealthCareServiceSchedule::get();
$healthcareServiceShift = HealthCareServiceShift::get();
return response()->json([
'ms_healthcare_service' => $healthcareService,
'ms_healthcare_service_schedule' => $healthcareServiceSchedule,
'ms_healthcare_service_shift' => $healthcareServiceShift
]);
}
}