<?php

namespace App\Modules\HR\Training\Policies;

use App\Models\User;

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

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

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

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