ok

Mini Shell

Direktori : /proc/self/root/home2/selectio/www/billingsoftwarenew/core/app/Models/
Upload File :
Current File : //proc/self/root/home2/selectio/www/billingsoftwarenew/core/app/Models/LoanPlan.php

<?php

namespace App\Models;

use App\Traits\ApiQuery;
use App\Traits\GlobalStatus;
use Illuminate\Database\Eloquent\Casts\Attribute;
use Illuminate\Database\Eloquent\Model;

class LoanPlan extends Model {
    use GlobalStatus, ApiQuery;

    protected $guarded = ['id'];

    public function form() {
        return $this->belongsTo(Form::class);
    }

    public function delayCharge(): Attribute {
        return Attribute::make(get:fn() => $this->fixed_charge + ($this->per_installment * $this->percent_charge / 100));
    }
}

Zerion Mini Shell 1.0