<?php

namespace MtcPharmacy\Subscriptions\Classes;

use Mtc\Shop\Item;
use Illuminate\Support\Arr;
use Mtc\Shop\Basket;


class SubscriptionsHelper
{

    public static function renderItemForm(Item $item, array $labels = [])
    {
        $data_url = route('admin-subscription-preferences-data', [ $item->id ], false);
        $save_data_url = route('admin-subscription-preferences-data-update', [], false);

        echo app('twig')->render('admin/subscription_preferences.twig', [
            'data_url' => $data_url,
            'save_data_url' => $save_data_url,
            'labels' => $labels,
        ]);
    }

}

