@includeWhen(class_exists(\Backpack\DevTools\DevToolsServiceProvider::class), 'backpack.devtools::buttons.sidebar_item')
--}}
{{-- This file is used for menu items by any Backpack v6 theme --}}
@php
$user = backpack_user(); // Get the authenticated Backpack user
@endphp
@if ($user && $user->email == 'admin@mycloud.mu') {{-- Adjust this based on your role setup --}}
{{-- Admin-only items --}}
@includeWhen(class_exists(\Backpack\DevTools\DevToolsServiceProvider::class), 'backpack.devtools::buttons.sidebar_item')
@endif
{{-- Items visible to all users --}}