@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 ──────── --}}
{{-- Calendar --}}
جاري تحميل المواعيد المتاحة…
{{-- Slot column --}}
اختر تاريخاً أولاً
المدة:
جاري تحميل الأوقات…
لا تتوفر مواعيد في هذا اليوم. جرّب يوماً آخر.
{{-- Inline confirm CTA — appears DIRECTLY under the
selected slot so the user never has to scan for
a confirm button at the bottom of the column.
Disabled until a slot is picked (template guards
the entire block on isSelectedSlot). --}}
@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))
تشخيص (للأدمن فقط)
بعد ما تـ 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')