<?php

namespace App\Modules\HR\Overtime\Policies;

use App\Models\User;
use App\Modules\HR\Overtime\Models\OvertimeRatePolicy;

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

    public function view(User $user, OvertimeRatePolicy $policy): bool
    {
        return $user->can('overtime.view');
    }

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

    public function update(User $user, OvertimeRatePolicy $policy): bool
    {
        return $user->can('overtime.rates.manage');
    }

    public function deactivate(User $user, OvertimeRatePolicy $policy): bool
    {
        return $user->can('overtime.rates.manage');
    }
}
