????

Your IP : 3.144.81.47


Current Path : /home/thenclexdoctor.com/public_html/app/Models/
Upload File :
Current File : /home/thenclexdoctor.com/public_html/app/Models/UserCommission.php

<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class UserCommission extends Model
{
    protected $table = "user_commissions";
    public $timestamps = false;
    protected $guarded = ['id'];


    static $sources = [
        'courses',
        'bundles',
        'virtual_products',
        'physical_products',
        'meetings',
    ];

    public function calculatePrice($price)
    {
        if ($this->type == "percent") {
            $commissionPrice = $price > 0 ? (($price * $this->value) / 100) : 0;
        } else {
            $commissionPrice = $this->value;
        }

        return $commissionPrice;
    }
}

Page not found | The NCLEX Doctor

Page not found!

Sorry, this page is not available...