Extension Install

This commit is contained in:
root
2025-12-03 14:23:33 +01:00
parent a06fdcb317
commit 2cea264127
29 changed files with 1795 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
<?php
namespace Paymenter\Extensions\Others\NavbarManager\Helpers;
use Paymenter\Extensions\Others\NavbarManager\View\Components\NavigationLinks;
class NavbarHelper
{
/**
* Get navbar links for specified type
*/
public static function getLinks($type = 'primary')
{
$component = new NavigationLinks($type);
return $component->links;
}
/**
* Render navbar links component
*/
public static function render($type = 'primary', $class = '')
{
return view('navbar-manager::components.navigation-links', [
'links' => self::getLinks($type),
'class' => $class
]);
}
}