PHP code example of jobmetric / panelio

1. Go to this page and download the library: Download jobmetric/panelio library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

jobmetric / panelio example snippets


use JobMetric\Panelio\Facades\Panelio;

Panelio::addPanel('findr', [
    'name' => 'findr::base.panel_name',
    'namespace' => 'JobMetric\Findr\Http\Controllers',
    'args' => [
        'description' => 'findr::base.description',
        'icon' => '<i class="ki-duotone ki-abstract-20 fs-2x"><span class="path1"></span><span class="path2"></span></i>',
    ],
    'permission' => 'findr',
    'position' => 0,
]);

use JobMetric\Panelio\Facades\Panelio;

Panelio::addSection('findr', 'content', [
    'name' => 'findr::base.sections.content.name',
    'args' => [
        'title' => 'findr::base.sections.content.title',
        'description' => 'findr::base.sections.content.description',
        'icon' => '<i class="ki-duotone ki-abstract-26 fs-2x"><span class="path1"></span><span class="path2"></span></i>',
    ],
    'permission' => 'findr.content',
    'position' => 0,
]);

use JobMetric\Panelio\Facades\Panelio;

Panelio::addMenu('findr', 'content', [
    'type' => 'group',
    'name' => 'findr::base.sections.content.menus.group_name_1',
    'permission' => 'findr.content.group_1',
    'position' => 0,
]);

use JobMetric\Panelio\Facades\Panelio;

Panelio::addMenu('findr', 'content', [
    'type' => 'link',
    'name' => 'findr::base.sections.content.menus.link_name_1',
    'link' => route('findr.content.sample'),
    'icon' => '<i class="ki-duotone ki-calendar-8 fs-2"><span class="path1"></span><span class="path2"></span><span class="path3"></span><span class="path4"></span><span class="path5"></span><span class="path6"></span></i>',
    'permission' => 'findr.content.link_1',
    'position' => 0,
]);

use JobMetric\Panelio\Facades\Panelio;

Panelio::addSubmenu('findr', 'content', 'findr::base.sections.content.menus.link_name_1', [
    'name' => 'findr::base.sections.content.menus.submenu_name_1',
    'link' => route('findr.content.sample'),
    'permission' => 'findr.content.submenu_1',
    'position' => 0,
]);

use JobMetric\Panelio\Facades\Panelio;

Panelio::addDashboardLink('findr', [
    'name' => 'findr::base.sections.dashboard.dashboard_name_1',
    'link' => route('findr.content.sample'),
    'icon' => '<span class="symbol-label bg-light-success"><i class="ki-duotone ki-abstract-26 fs-2x text-success"><span class="path1"></span><span class="path2"></span></i></span>',
    'permission' => 'findr.content.dashboard_1',
    'position' => 0,
]);

use JobMetric\Panelio\Facades\Panelio;

Panelio::addProfileLink('findr', [
    'name' => 'findr::base.sections.profile.profile_name_1',
    'link' => route('findr.content.sample'),
    'permission' => 'findr.content.profile_1',
    'position' => 0,
]);
bash
php artisan vendor:publish --provider="JobMetric\Panelio\PanelioServiceProvider" --tag="panelio-assets"