@extends('web.signup.layout') @section('title', 'نمو — حجز موعد الاجتماع') @section('page_title', 'تم استلام طلبك بنجاح') @section('page_subtitle', 'الخطوة الأخيرة: احجز موعداً يناسبك مع فريق نمو لاستكمال إجراءات الانضمام.') @section('content')

أهلاً {{ $subject->name }} 👋

استلمنا بياناتك. اختر التاريخ والوقت المناسبَين لك من التقويم أدناه، وسنُنشئ لك الحجز تلقائياً مع فريق نمو.

@if ($ready) {{-- Native booking UI — Laravel + Alpine, NO iframe. The component below calls our /api/bookings/* endpoints which proxy to Microsoft Graph. The user picks a date and a slot inside our app; clicking "تأكيد الحجز" creates the booking via Graph and persists the meeting locally. --}}
{{-- ─────────────────────── STEP 1: PICK A DATE ──────── --}} {{-- ─────────────────────── STEP 2: SUCCESS ──────────── --}}
@else {{-- Graceful fallback when Graph creds or per-flow config is missing. The page must NEVER 500 here — signup already succeeded; we just couldn't bring the calendar up. --}}

تقويم الحجز قيد التهيئة

سيتواصل معك فريق نمو خلال أيام العمل المقبلة لتحديد موعد الاجتماع. لا حاجة لأي إجراء إضافي من جانبك الآن.

{{-- Inline diagnostic panel — visible ONLY to authenticated admins. Investors / startups never see this block; the controller passes $diagnostics = null for them. This panel surfaces the missing env keys so an ops admin visiting `/create_meeting` directly can fix the gap without grepping `storage/logs/laravel.log`. --}} @if (! empty($diagnostics))
تشخيص (للأدمن فقط)
  • master toggle: {{ $diagnostics['bookings_enabled'] ? 'مفعّل' : 'معطّل' }}
  • Graph credentials: {{ $diagnostics['graph_configured'] ? 'موجودة' : 'ناقصة' }}
  • flow ({{ $type }}) configured: {{ $diagnostics['flow_configured'] ? 'صح' : 'ناقص' }} staff active: {{ $diagnostics['staff_count'] }}
  • @if (! empty($diagnostics['missing']))
  • env keys to fix:
      @foreach ($diagnostics['missing'] as $key)
    • {{ $key }}
    • @endforeach
  • @endif

بعد ما تـ set الـ env keys، اعمل php artisan config:clear ثم restart php-fpm.

@endif
@endif {{-- Booking is now MANDATORY — the "I'll book later" escape hatch was removed (see SignupSchedulingController::skip removal). The user must complete the booking via the native UI above before the flow ends. A single quiet link back to the form is kept for the rare case where someone hits this page in error — hidden on the STARTUP booking flow per product request (2026-06). --}} @if ($type !== 'startup')
العودة للصفحة الرئيسية
@endif
@endsection @push('styles') @endpush @push('scripts') @endpush