<?php

namespace App\Policies;

use App\Models\User;

class LedgerPolicy
{
    public function viewAny(User $user): bool
    {
        return in_array($user->role, ['admin', 'manager']);
    }

    public function view(User $user): bool
    {
        return in_array($user->role, ['admin', 'manager']);
    }

    public function create(User $user): bool
    {
        return in_array($user->role, ['admin', 'manager']);
    }

    public function viewReports(User $user): bool
    {
        return in_array($user->role, ['admin', 'manager']);
    }
}
