PHP code example of aiarmada / filament-jnt

1. Go to this page and download the library: Download aiarmada/filament-jnt 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/ */

    

aiarmada / filament-jnt example snippets


use AIArmada\FilamentJnt\FilamentJntPlugin;

public function panel(Panel $panel): Panel
{
    return $panel
        ->plugins([
            FilamentJntPlugin::make(),
        ]);
}

// config/filament-jnt.php
return [
    // Navigation group for all J&T resources
    'navigation' => [
        'group' => 'Shipping'
    ],

    // Badge color for navigation items
    'navigation_badge_color' => 'primary',

    // Auto-refresh interval for tables
    'polling_interval' => '30s',

    // Resource navigation ordering
    'resources' => [
        'navigation_sort' => [
            'orders' => 10,
            'tracking_events' => 20,
            'webhook_logs' => 30,
        ],
    ],

    // Table display formats
    'tables' => [
        'datetime_format' => 'Y-m-d H:i:s',
    ],
];

'polling_interval' => '30s',  // Refresh every 30 seconds
bash
php artisan vendor:publish --tag=filament-jnt-config