<?php

namespace Modules\Routing\Policies;

use App\Models\User;

/**
 * Skeleton only — the EvRoute model doesn't exist yet (Phase 3). Gates on
 * the manage_routes permission; catalog/route mutation is staff-only.
 */
class RoutePolicy
{
    public function viewAny(User $user): bool
    {
        return $user->can('manage_routes');
    }

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

    public function update(User $user, mixed $route): bool
    {
        return $user->can('manage_routes');
    }

    public function delete(User $user, mixed $route): bool
    {
        return $user->can('manage_routes');
    }
}
