@extends('layouts.app') @section('title', ($org->name ?? '') . ' | ' . (app()->getLocale()==='en' ? 'Donate' : 'تبرع الآن')) @section('content')

{{ app()->getLocale()==='en' ? 'Be a Shade of Goodness' : 'كن ظلاً للخير' }}

{{ app()->getLocale()==='en' ? 'Your donation changes lives. Choose how you would like to give.' : 'تبرعك يصنع الفرق. اختر طريقة الدفع المناسبة لك.' }}

@if(session('donation_success'))
{{ app()->getLocale()==='en' ? 'Thank you! Your donation request has been received.' : 'شكراً لك! تم استلام طلب التبرع بنجاح.' }}
@endif
{{-- Payment methods --}}
{{-- Section heading --}}

{{ app()->getLocale() === 'en' ? 'Payment Methods' : 'وسائل الدفع' }}

{{ app()->getLocale() === 'en' ? 'Choose any of the available payment methods below.' : 'يمكنك استخدام أي من وسائل الدفع المتاحة أدناه.' }}

{{-- Payment method cards --}} @foreach($paymentMethods as $method)
{{-- ================= METHOD HEADER ================= --}}
{{-- Method Logo --}}
@if($method->icon_url) {{ $method->method_name }} @else {{-- Fallback icon --}} @endif
{{-- Method information --}}
{{-- Method name --}}

{{ $method->method_name }}

{{-- Account name --}} @if($method->account_name)
{{ app()->getLocale() === 'en' ? 'Account Name:' : 'اسم الحساب:' }} {{ $method->account_name }}
@endif
{{-- ================= ACCOUNT NUMBER ================= --}} @if($method->account_number)
{{-- Account number --}}
{{ app()->getLocale() === 'en' ? 'Account / Number' : 'رقم الحساب' }} {{ $method->account_number }}
{{-- Copy button --}}
@endif {{-- ================= PAYMENT INSTRUCTIONS ================= --}} @if($method->instructions)
{{ app()->getLocale() === 'en' ? 'Payment Instructions' : 'تعليمات الدفع' }}

{{ $method->instructions }}

@endif
@endforeach {{-- ================= EMPTY STATE ================= --}} @if($paymentMethods->isEmpty())
{{ app()->getLocale() === 'en' ? 'No payment methods are currently available.' : 'لا توجد وسائل دفع متاحة حالياً.' }}
@endif
{{-- Donation form --}}

{{ app()->getLocale()==='en' ? 'Donation Details' : 'تفاصيل التبرع' }}

@csrf
@foreach(['bankak'=>'بنكك','fawri'=>'فوري','mycash'=>'MyCash','bank_transfer'=>'تحويل بنكي'] as $key => $label) @endforeach
{{-- Volunteer section --}}
@if(session('volunteer_success'))
{{ app()->getLocale()==='en' ? 'Thank you for volunteering! We will contact you soon.' : 'شكراً لتطوعك! سنتواصل معك قريباً.' }}
@endif
{{ app()->getLocale()==='en' ? 'Give Your Time' : 'وقتك أيضاً عطاء' }}

{{ app()->getLocale()==='en' ? 'Become a Volunteer' : 'تطوع معنا' }}

@csrf
@endsection