<?php
namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Notifications\Notifiable;
use Laravel\Sanctum\HasApiTokens;
use Illuminate\Database\Eloquent\SoftDeletes;
class Payroll  extends Model

{
    use HasApiTokens, HasFactory, Notifiable;

    /**
     * The attributes that are mass assignable.
     *
     * @var array<int, string>
     */
    use HasFactory;
    use SoftDeletes;
   
    protected $fillable = [
        'client_id', 'employee_id', 'payroll_month', 'payroll_year', 'basic_salary', 'allowances', 'deductions', 'overtime_amount', 'bonus', 'tax', 'gross_salary', 'net_salary', 'payment_status', 'payment_date', 'payslip', 'status', 
    ];

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

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