Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/inventory.corals.io/Corals/modules/Payment/Common/Hooks/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/inventory.corals.io/Corals/modules/Payment/Common/Hooks/Payment.php
<?php

namespace Corals\Modules\Payment\Common\Hooks;



class Payment
{
    /**
     * Subscription constructor.
     */
    function __construct()
    {
    }


    public function show_available_currencies_menu()
    {

        $active_currencies = \Currency::getActiveCurrencies();
        if (count($active_currencies) <= 1) {
            return;
        }

        $menu = '<li class="nav-currency" >';
        foreach ($active_currencies as $currency) {
            $menu .= '<a class="label nav-link badge text-white ';
            $class = strtolower(session('currency')) == strtolower($currency['code']) ? 'label-primary badge-success' : 'label-default badge-secondary';
            $menu .= $class . '" style = "font-size: 100%;font-weight: 400;"  href = "' . request()->url() . '?currency=' . $currency['code'] . '" >' . $currency['symbol'] . '</a>&nbsp;';
        }
        $menu .= '</li >';

        echo $menu;
    }

    public function show_nav_currencies_menu()
    {
        $active_currencies = \Currency::getActiveCurrencies();
        if (count($active_currencies) <= 1) {
            return;
        }

        $menu = '<div class="nav-currency" >';
        foreach ($active_currencies as $currency) {
            $menu .= '<a class="label nav-link  text-white badge ';
            $class = strtolower(session('currency')) == strtolower($currency['code']) ? 'label-primary badge-primary' : 'label-default badge-default ';
            $menu .= $class . '" style = "font-size: 100%;font-weight: 400;"  href = "' . request()->url() . '?currency=' . $currency['code'] . '" >' . $currency['symbol'] . '</a>&nbsp;';
        }
        $menu .= '</div >';

        echo $menu;
    }
}


Spamworldpro Mini