
use App\Http\Controllers\Controller;
use App\Models\Region;
use App\Models\Subscription;
use Illuminate\Http\Request;

class SubscriptionApiController extends Controller
{
    public function byRegion(Region $region)
    {
        $subs = $region->subscriptions->toArray();
        if (!empty($subs)) {