31 lines
949 B
PHP
31 lines
949 B
PHP
<?php
|
|
|
|
namespace App\Endpoint\Api\Http\Resources;
|
|
|
|
use Illuminate\Http\Resources\Json\JsonResource;
|
|
|
|
class WalletToBankLogResource extends JsonResource
|
|
{
|
|
/**
|
|
* Transform the resource into an array.
|
|
*
|
|
* @param \Illuminate\Http\Request $request
|
|
* @return array|\Illuminate\Contracts\Support\Arrayable|\JsonSerializable
|
|
*/
|
|
public function toArray($request)
|
|
{
|
|
return [
|
|
|
|
'bank_name' => $this->bank_name,
|
|
'bank_number' => $this->bank_number,
|
|
'bank_description' => $this->bank_description,
|
|
'username' => $this->username,
|
|
'amount' => $this->amount_format,
|
|
'created_at' => $this->created_at->toDateTimeString(),
|
|
'status' => $this->status,
|
|
'remarks' => $this->remarks,
|
|
'service_amount' => $this->service_amount_format,
|
|
];
|
|
}
|
|
}
|