<?php

namespace App\Modules\HR\EmploymentStatuses\Policies;

use App\Models\User;
use App\Modules\HR\EmploymentStatuses\Models\EmploymentStatus;

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

    public function view(User $user, EmploymentStatus $status): bool
    {
        return $user->can('employment_statuses.view');
    }

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

    public function update(User $user, EmploymentStatus $status): bool
    {
        return $user->can('employment_statuses.update');
    }

    public function deactivate(User $user, EmploymentStatus $status): bool
    {
        return $user->can('employment_statuses.deactivate');
    }
}
