Hi all,
I used this code and I would like to know how i can change the order of the credits widget? I would like it to the third place.
<?php
use WHMCS\View\Menu\Item as Item;
add_hook('ClientAreaHomepagePanels', 1, function (Item $homePagePanels)
{
$client = Menu::context( "client" );
$clientid = intval( $client->id );
$currencyData = getCurrency($clientid);
$bodyhtml = '<p>'.sprintf(Lang::trans('availcreditbaldesc'),formatCurrency($client->credit, $currencyData)).'</p>';
$creditPanel = $homePagePanels->addChild( 'Credit Balance', array(
'label' => Lang::trans('availcreditbal'),
'icon' => 'fa-money',
'extras' => array(
'color' => 'red',
'btn-link' => 'clientarea.php?action=addfunds',
'btn-text' => Lang::trans('addfunds'),
'btn-icon' => 'fa-plus',
),
'bodyHtml' => $bodyhtml
));
});