This commit is contained in:
Linksehat Staging Server
2024-01-10 09:45:15 +07:00
parent 45ecad258d
commit cb9a9f0c71
3 changed files with 11 additions and 3 deletions

View File

@@ -32,6 +32,7 @@ class RequestLogShowResource extends JsonResource
$corporateId = $requestLog['member']['current_plan']['corporate_id'] ?? 0;
$member_id = $requestLog['member_id'];
$planMember = MemberPlan::where('member_id', $member_id)->get('plan_id');
$planId = Plan::whereIn('id', $planMember)->where('service_code', $requestLog['service_code'])->first();
$benefit = CorporateBenefit::with('benefit')->where('plan_id', $planId->id)->get()->toArray();
$benefitDetailLog = RequestLogBenefit::with('benefit')->where('request_log_id', $requestLog['id'])->get()->toArray();
@@ -110,7 +111,7 @@ class RequestLogShowResource extends JsonResource
'files' => $requestLog['files'],
'provider' => $providerName,
'no_identitas' => $requestLog['no_identitas'],
'no_identitas' => $requestLog['member']['nric'],
'keterangan' => $requestLog['keterangan'],
'hak_kamar_pasien' => $requestLog['hak_kamar_pasien'],
'penempatan_kamar' => $requestLog['penempatan_kamar'],