false]); $content = computed(function () { $mdPath = base_path('dev/entwicklung.md'); if (!file_exists($mdPath)) { return '

Dokumentation nicht gefunden.

'; } $markdown = file_get_contents($mdPath); // Configure CommonMark with GitHub Flavored Markdown $environment = new Environment([ 'html_input' => 'allow', 'allow_unsafe_links' => false, ]); $environment->addExtension(new CommonMarkCoreExtension()); $environment->addExtension(new GithubFlavoredMarkdownExtension()); $converter = new MarkdownConverter($environment); return $converter->convert($markdown)->getContent(); }); // Extract Table of Contents from markdown $tableOfContents = computed(function () { $mdPath = base_path('dev/entwicklung.md'); if (!file_exists($mdPath)) { return []; } $markdown = file_get_contents($mdPath); $toc = []; // Extract headings (## and ###) preg_match_all('/^(#{2,3})\s+(.+)$/m', $markdown, $matches, PREG_SET_ORDER); foreach ($matches as $match) { $level = strlen($match[1]); $title = trim($match[2]); $slug = Str::slug($title); $toc[] = [ 'level' => $level, 'title' => $title, 'slug' => $slug, ]; } return $toc; }); $fileInfo = computed(function () { $mdPath = base_path('dev/entwicklung.md'); if (!file_exists($mdPath)) { return null; } return [ 'size' => round(filesize($mdPath) / 1024, 1) . ' KB', 'modified' => \Carbon\Carbon::parse(filemtime($mdPath))->format('d.m.Y H:i'), 'lines' => count(file($mdPath)), ]; }); ?>
{{-- Sticky Header --}}
{{ __('Projekt-Dokumentation') }} {{ __('Entwicklungsstand & Technische Übersicht') }}
{{ __('Inhaltsverzeichnis') }} {{ __('Download') }}
{{-- File Info Bar --}} @if($this->fileInfo)
{{ $this->fileInfo['size'] }}
{{ __('Aktualisiert:') }} {{ $this->fileInfo['modified'] }}
{{ $this->fileInfo['lines'] }} {{ __('Zeilen') }}
@endif
{{-- Table of Contents Sidebar (Collapsible) --}} @if($showToc)
{{ __('Inhaltsverzeichnis') }}
@foreach($this->tableOfContents as $item) {{ $item['level'] === 3 ? '• ' : '' }}{{ $item['title'] }} @endforeach
@endif {{-- Markdown Content with Enhanced Styling --}}
{{-- Scroll to top button --}}
{{ __('Zurück nach oben') }}
{{-- Quick Reference Grid --}}
{{ __('Module') }}
  • Multi-Domain-System
  • Benutzer-Management
  • Partner-Verwaltung
  • Hub-System
{{ __('Technologien') }}
  • Laravel 12
  • Livewire 3 + Volt
  • Flux UI Pro
  • Spatie Permissions
{{ __('Status-Legende') }}
{{ __('Vollständig implementiert') }}
{{ __('In Entwicklung') }}
{{ __('Geplant') }}
{{-- Footer Metadata --}}
entwicklung.md
@if($this->fileInfo)
{{ __('Zuletzt aktualisiert:') }} {{ $this->fileInfo['modified'] }}
@endif
{{ __('Live-Dokumentation') }}