@extends('layouts.app') @section('title', 'نظام العمل') @push('styles') @endpush @section('content')

أنظمة العمل

{{ $articles->total() }} مادة
{{-- Country Selector --}}
@foreach($countries as $code => $info) {{ $info['flag'] }} {{ $info['name'] }} @if(isset($countryCounts[$code])) {{ $countryCounts[$code] }} @endif @endforeach
{{-- Search & Category Filters --}}
الكل @foreach($categories as $catKey => $catLabel) {{ $catLabel }} @endforeach
{{-- Articles grouped by category --}} @php $categoryNames = $categories; $grouped = $articles->getCollection()->groupBy('category'); @endphp @forelse($grouped as $category => $categoryArticles)
{{ $categoryNames[$category] ?? $category }}
@foreach($categoryArticles as $article)
مادة {{ $article->article_number }} {{ $article->title }}
{{ $categoryNames[$article->category] ?? $article->category }}
{!! nl2br(e($article->content)) !!}
@endforeach
@empty

لا توجد مواد مطابقة للبحث

@endforelse {{ $articles->links() }} @endsection @push('scripts') @endpush