<?php

namespace App\Services;

use App\Models\ReselleBalanceLogReport;

class ResellerBalanceLogReportService{
    public function create($reseller_id, $client_id, $action, $amount, $remarks, $reseller_balance = null,
                            $after_balance = null, $uniqueId = null, $pop_id = null, $commission_amount = 0.0){
        ReselleBalanceLogReport::create(
            [
                'reseller_id' => $reseller_id,
                'client_id' => $client_id,
                'action' => $action,
                'amount' => $amount,
                'remarks' => $remarks,
                'uniqueId' => $uniqueId,
                'pop_id' => $pop_id,
                'commission_amount' => $commission_amount,
                'reseller_balance' => $reseller_balance,
                'after_balance' => $after_balance

            ]
        );
    }

}
