<?php

namespace App\Http\Resources;

use Illuminate\Http\Resources\Json\JsonResource;

class AccReceivableDetailResource extends JsonResource
{

    public function toArray($request)
    {
        return [
            'id'            => $this->id,
            'acc_id'        => $this->acc_id,
            'received_date' => $this->received_date,
            'paid_principal'=> $this->paid_principal,
            'paid_interest' => $this->paid_interest,
            'paid_maintenance' => $this->paid_maintenance,
            'received'      => $this->received,
            'paid_penalty'  => $this->paid_penalty,
            'waiv_penalty'  => $this->waiv_penalty,
            'status'        => $this->status,
            'paid_risk'     => $this->paid_risk,
            'paid_operating_service'  => $this->paid_operating_service,
        ];
    }
}
