<?php
namespace app\controllers;

class support
{
    public static function index($defaults)
    {
        $GLOBALS['twig']->render('lib/pages/index.twig', array_merge($defaults, [
            'child_template' => 'support/ask.twig',
            'page_title'     => $_ENV['APP_NAME'] . ': Frequently Asked Questions',
            'breadcrumbs'    => [
                [
                    'url'   => null,
                    'title' => 'Support',
                ],
            ],
        ]));
    }
    public static function bitcoin($defaults)
    {
        $GLOBALS['twig']->render('lib/pages/index.twig', array_merge($defaults, [
            'child_template' => 'support/bitcoin.twig',
            'page_title'     => $_ENV['APP_NAME'] . ' Bitcoin Accepted',
            'breadcrumbs'    => [
                [
                    'url'   => '/support/ask',
                    'title' => 'Support',
                ],
                [
                    'url'   => null,
                    'title' => 'Bitcoin',
                ],
            ],
        ]));
    }
}
