@extends('layouts.app') @section('content')
{{-- Back Button --}} @php if ($currentFolder) { $backUrl = $currentFolder->parent_id ? route('guide', $currentFolder->parent_id) : route('guide'); $backLabel = 'بازگشت'; } else { $backUrl = route('menu'); $backLabel = 'منو'; } @endphp {{ $backLabel }} {{-- Page Title --}} @if($currentFolder)

{{ $currentFolder->folder_name }}

{{-- Folder Description --}} @if($currentFolder->description) @php $telegramLinkUrl = null; $telegramLinkText = null; $cleanedDescription = $currentFolder->description; $telegramLinkRegex = '/]*href=["\'](https?:\/\/t\.me\/[^"\']+)["\'][^>]*>(.*?)<\/a>/i'; preg_match($telegramLinkRegex, $currentFolder->description, $matches); if (!empty($matches) && isset($matches[1]) && isset($matches[2])) { $telegramLinkUrl = $matches[1]; $telegramLinkText = $matches[2]; $fullTag = $matches[0]; $cleanedDescription = str_replace($fullTag, '', $currentFolder->description); } $cleanedDescription = trim($cleanedDescription); $isRtl = preg_match('/[\x{0590}-\x{05FF}\x{0600}-\x{06FF}]/u', $cleanedDescription); $descriptionDir = $isRtl ? 'rtl' : 'ltr'; @endphp @if(!empty($cleanedDescription))

@endif @if($telegramLinkUrl) {!! $telegramLinkText !!} @endif @endif @else

راهنما و سوالات متداول

@endif {{-- Folders Section --}} @if($folders->isNotEmpty())

پوشه‌های راهنما

@endif {{-- Files Section --}} @if($fileButtons->isNotEmpty())

فایل‌های راهنما

@foreach($fileButtons as $fileButton) @endforeach
@endif {{-- Empty State --}} @if($folders->isEmpty() && $fileButtons->isEmpty())

محتوایی در این بخش یافت نشد.

@endif
{{-- Success Modal --}}
×

ارسال شد!

فایل با موفقیت به ربات تلگرام شما ارسال شد. لطفاً تلگرام خود را چک کنید.

باز کردن تلگرام
@endsection @push('scripts') @endpush