[ 'title' => 'Case Details', 'raised' => 'Raised', 'of' => 'of', 'goal' => 'Goal', 'donate_now' => 'Donate Now', 'modal_title' => 'Make a Donation', 'modal_amount' => 'Amount (OMR)', 'modal_name' => 'Your Name', 'modal_email' => 'Your Email', 'modal_phone' => 'Phone Number', 'modal_submit' => 'Proceed to Payment', 'back_to_home' => 'Back to All Cases', 'case_not_found' => 'Case Not Found', 'case_not_found_desc' => 'The case you are looking for does not exist or is no longer active.', 'donate_type_me' => 'Donate for myself', 'donate_type_gift' => 'Donate as a gift', 'recipient_name' => 'Recipient Name', 'recipient_phone' => 'Recipient Phone', 'gift_message' => 'Gift Message', 'gift_notice' => 'The system will send a notification to the recipient.', 'home' => 'Home', 'about_us' => 'About Us', 'contact_us' => 'Contact Us', 'admin_panel' => 'Admin Panel', 'lang_name' => 'العربية', 'lang_code' => 'ar', ], 'ar' => [ 'title' => 'تفاصيل الحالة', 'raised' => 'تم جمع', 'of' => 'من', 'goal' => 'الهدف', 'donate_now' => 'تبرع الآن', 'modal_title' => 'تبرع الآن', 'modal_amount' => 'المبلغ (ريال عماني)', 'modal_name' => 'الاسم', 'modal_email' => 'البريد الإلكتروني', 'modal_phone' => 'رقم الهاتف', 'modal_submit' => 'الانتقال للدفع', 'back_to_home' => 'العودة إلى جميع الحالات', 'case_not_found' => 'الحالة غير موجودة', 'case_not_found_desc' => 'الحالة التي تبحث عنها غير موجودة أو لم تعد نشطة.', 'donate_type_me' => 'تبرع لنفسي', 'donate_type_gift' => 'تبرع كهدية لشخص آخر', 'recipient_name' => 'اسم المستلم', 'recipient_phone' => 'رقم هاتف المستلم', 'gift_message' => 'رسالة الهدية', 'gift_notice' => 'سيقوم النظام بإرسال إشعار إلى المستلم.', 'home' => 'الرئيسية', 'about_us' => 'من نحن', 'contact_us' => 'اتصل بنا', 'admin_panel' => 'لوحة التحكم', 'lang_name' => 'English', 'lang_code' => 'en', ] ]; $t = $texts[$lang]; // Database fetch $pdo = db(); $profile = $pdo->query("SELECT * FROM org_profile LIMIT 1")->fetch(); // Get Case ID $case_id = isset($_GET['id']) ? (int)$_GET['id'] : 0; if ($case_id === 0) { $case = null; } else { $stmt = $pdo->prepare("SELECT c.*, cat.name_en as cat_name_en, cat.name_ar as cat_name_ar FROM cases c LEFT JOIN categories cat ON c.category_id = cat.id WHERE c.id = :id AND c.status = 'active'"); $stmt->execute(['id' => $case_id]); $case = $stmt->fetch(); } require_once 'includes/header.php'; ?>

Case Image

: OMR : OMR