@extends('layouts.main_dashboard.app') @section('title', app()->getLocale() === 'ar' ? 'الاتصال الخاص' : 'Private Communication') @section('skip_page_hero', true) @php($isArabic = app()->getLocale() === 'ar') @section('content')
@csrf

{{ $isArabic ? 'رسالة خاصة' : 'Private message' }}

@csrf

{{ $isArabic ? 'حملة توجيهية' : 'Outreach campaign' }}

{{ $isArabic ? 'المحادثات' : 'Conversations' }}

@if($threads->count() > 0) @foreach($threads as $thread)

{{ $thread->subject }}

{{ $thread->participantUser?->name ?? '—' }}{{ $thread->student?->name ? ' • ' . $thread->student->name : '' }}

@endforeach @else
{{ $isArabic ? 'لا توجد محادثات خاصة بعد.' : 'No private conversations yet.' }}
@endif

{{ $isArabic ? 'آخر الحملات' : 'Recent campaigns' }}

@if($campaigns->count() > 0) @foreach($campaigns as $campaign)

{{ $campaign->title }}

{{ $campaign->audience }} • {{ $campaign->sent_at?->format('Y-m-d') ?? '—' }}

@endforeach @endif
{{ $threads->links('pagination::simple-tailwind') }}
@endsection