@extends('layouts.admin') @section('page_title', $isRtl ? 'محتوى الصفحات' : 'Page Content Blocks') @section('content')

{{ $isRtl ? 'اختر الصفحة' : 'Select Page' }}

{{ $isRtl ? 'إضافة كتلة محتوى' : 'Add Content Block' }}
@foreach($pages as $p) {{ ucfirst($p) }} @endforeach
@if($currentPage)
@csrf @foreach($blocks as $section => $sectionBlocks)

{{ $section ?: ($isRtl ? 'عام' : 'General') }}

@foreach($sectionBlocks as $b)
{{ $b->label ?? $b->key }} {{ $b->page }}.{{ $b->section }}.{{ $b->key }} {{ $b->type }}
@csrf @method('DELETE')
@if($b->type === 'image') @if(($b->value['path'] ?? null)) @endif @elseif($b->type === 'html')
@else
@endif
@endforeach
@endforeach
@else

{{ $isRtl ? 'لا توجد كتل محتوى بعد. اضغط "إضافة كتلة محتوى" للبدء.' : 'No content blocks yet. Click "Add Content Block" to start.' }}

@endif @endsection