singleloginsystem/app/Data/Ui/Sidebar/NavItemData.php
= 48d2c1a47e feature: ConnectionProvider integration
- Added `ConnectionProviderData`, `NavItemData`, and `NavSubItemData` DTOs for structured data handling.
- Implemented CRUD operations for `ConnectionProviderService`, including transaction-safe create, update, and delete methods.
- Introduced Livewire components for ConnectionProvider list, edit, and create pages with dynamic and reusable UI elements.
- Refactored routes to consolidate paths under the `apps` prefix and updated navigation to dynamically include new sections for providers.
- Enhanced sidebar with structured submenu for ConnectionProviders and Settings using dynamic collections.
- Updated existing Create and Edit templates to use consistent route naming and validation handling.
- Replaced hardcoded navigation items with dynamically generated structures leveraging the `NavItemData` collection.
2026-05-15 09:18:40 +00:00

21 lines
484 B
PHP

<?php
declare(strict_types=1);
namespace App\Data\Ui\Sidebar;
use Spatie\LaravelData\Attributes\DataCollectionOf;
use Spatie\LaravelData\{Data, DataCollection};
final class NavItemData extends Data
{
public function __construct(
public string $label,
public string $icon,
public string $active_pattern,
public ?string $route = null,
#[DataCollectionOf(NavSubItemData::class)]
public ?DataCollection $sub_menu = null,
) {}
}