{{-- This file is used for menu items by any Backpack v6 theme --}} @if (backpack_auth()->user()->getAttribute('backpack_role') != 'guest') {{-- --}} @endif @if (backpack_auth()->user()->getAttribute('backpack_role') == 'developer') @php $files = \Storage::disk('public')->allFiles('github/wiki'); $mdFiles = array_filter($files, function ($file) { return strtolower(pathinfo($file, PATHINFO_EXTENSION)) === 'md'; }); @endphp @if (count($mdFiles) > 0) @foreach ($mdFiles as $file) @php $filename = strstr(basename($file), '.md', true); $url = 'documentation/' . Str::lower($filename); @endphp @endforeach @else @endif @endif