<?php

namespace App\Modules\HR\Compensation\Policies;

use App\Models\User;

class CompensationPolicy
{
    public function viewAny(User $user): bool
    {
        return $user->can('compensation.view');
    }

    public function create(User $user): bool
    {
        return $user->can('compensation.create');
    }

    public function update(User $user): bool
    {
        return $user->can('compensation.update');
    }

    public function manage(User $user): bool
    {
        return $user->can('compensation.manage');
    }
}
