<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;

class PayrollRecord extends Model
{
    protected $fillable = [
        'period_id','employee_id','basic_salary','housing_allowance','transport_allowance',
        'other_earnings','gross_pay','tax_deduction','pension_deduction',
        'other_deductions','total_deductions','net_pay','net_pay_lrd',
        'currency','payment_method','status','notes',
    ];

    public function period()   { return $this->belongsTo(PayrollPeriod::class); }
    public function employee() { return $this->belongsTo(Employee::class); }
}
