diff --git a/resources/views/filament/components/markdown-preview.blade.php b/resources/views/filament/components/markdown-preview.blade.php
index 2ff1c87..de6c0c1 100644
--- a/resources/views/filament/components/markdown-preview.blade.php
+++ b/resources/views/filament/components/markdown-preview.blade.php
@@ -1,5 +1,4 @@
@php
- // Server-side: get initial values for the header metadata
$accent = $get('meta.accent_color') ?? 'indigo';
$accentColor = match($accent) {
'emerald' => '#059669',
@@ -15,6 +14,7 @@
'amber' => 'linear-gradient(135deg, #d97706 0%, #f59e0b 100%)',
default => 'linear-gradient(135deg, #4f46e5 0%, #6366f1 100%)',
};
+ $uid = 'mdprev_' . uniqid();
@endphp
{{-- Google Fonts --}}
@@ -22,107 +22,43 @@
-{{-- Marked.js for client-side markdown rendering --}}
-
+{{-- Marked.js CDN --}}
+
-
{ this.renderMarkdown(); }, 500);
+
- // Also observe Livewire morphs
- if (typeof Livewire !== 'undefined') {
- Livewire.hook('morph.updated', () => {
- this.$nextTick(() => this.renderMarkdown());
- });
- }
- }
- }"
- class="md-preview-root"
- style="min-height: 500px; font-family: 'Inter', system-ui, -apple-system, sans-serif;"
->
- {{-- Browser Chrome Mockup --}}
+ {{-- Browser Chrome --}}
-
+
{{-- Title Bar --}}
- {{-- Traffic Lights --}}
-
-
-
+
+
+
-
- {{-- URL Bar --}}
-
-
- {{-- Page Body with scroll --}}
+ {{-- Page Body --}}
-
- {{-- Document Sheet --}}
-
- {{-- Accent top stripe --}}
+
+ {{-- Accent stripe --}}
- {{-- Document Content --}}
+ {{-- Document --}}
-
- {{-- Document Header --}}
+
+ {{-- Header --}}
TEKNİK VE MALİ TEKLİF
@@ -136,209 +72,165 @@
•
{{ $get('total_price') ? number_format((float) $get('total_price'), 2, ',', '.') : '—' }} {{ $get('currency') ?: 'TRY' }}
•
- Son Geçerlilik: {{ $get('valid_until') ? date('d.m.Y', strtotime($get('valid_until'))) : '—' }}
+ Geçerlilik: {{ $get('valid_until') ? date('d.m.Y', strtotime($get('valid_until'))) : '—' }}
-
- {{-- Live Rendered Markdown --}}
-
-
+
+ {{-- Markdown Output (plain div, updated by vanilla JS) --}}
+
✏️ Sol taraftaki editöre Markdown yazın, canlı önizleme burada görünecektir.
+
+
-
+
+