request
This commit is contained in:
@@ -17,6 +17,8 @@ class MemberResource extends JsonResource
|
||||
{
|
||||
// $data = parent::toArray($request);
|
||||
$currentMemberPlan = $this->memberPlans?->first();
|
||||
$limitTelecon = $currentMemberPlan->plan->limit_telecon ?? null;
|
||||
$limitTelecon = $this->totalUsage >= 6 ? null : $limitTelecon;
|
||||
|
||||
$data = [
|
||||
'member_id' => $this->member_id,
|
||||
@@ -29,7 +31,9 @@ class MemberResource extends JsonResource
|
||||
'code' => $currentMemberPlan->plan->code ?? null,
|
||||
'start' => $currentMemberPlan->start,
|
||||
'end' => $currentMemberPlan->end,
|
||||
'limit' => $this->currentPlan->limit_rules
|
||||
'limit' => $this->currentPlan->limit_rules,
|
||||
'limit_telecon' => $limitTelecon,
|
||||
|
||||
] : null,
|
||||
'policy_code' => $this->currentPolicy?->code ?? null,
|
||||
'corporate' => [
|
||||
|
||||
Reference in New Issue
Block a user