36 lines
940 B
PHP
36 lines
940 B
PHP
<?php
|
|
|
|
namespace Modules\Internal\Transformers;
|
|
|
|
use Illuminate\Http\Resources\Json\JsonResource;
|
|
|
|
class LinksehatPaymentResource extends JsonResource
|
|
{
|
|
/**
|
|
* Transform the resource into an array.
|
|
*
|
|
* @param \Illuminate\Http\Request
|
|
* @return array
|
|
*/
|
|
public function toArray($request)
|
|
{
|
|
$data = parent::toArray($request);
|
|
|
|
$data['share_komisi'] = $this->share_komisi;
|
|
$data['share_konsultasi'] = $this->share_konsultasi;
|
|
|
|
return $data;
|
|
|
|
// return [
|
|
// // 'healthcare_name' => $this->healthCare->name ?? '',
|
|
// 'health_care' => $this->healthCare,
|
|
// 'nID' => $this->nID,
|
|
// 'sBookingCode' => $this->sBookingCode,
|
|
// 'doctor' => $this->doctor,
|
|
// 'user' => $this->user,
|
|
// 'payment_method' => $this->payment_method,
|
|
// 'detail' => $this->detail
|
|
// ];
|
|
}
|
|
}
|