@extends('layouts.dashboard') @section('title', $occasion->title) @section('content')
عودة للكشوفات

{{ $occasion->title }}

{{ $occasion->event_type }} {{ $occasion->created_at->format('Y-m-d') }}

إجمالي المساهمات

{{ number_format($occasion->donations_sum_amount ?? 0) }} د.س

عدد المساهمين

{{ $occasion->donations()->where('status', 'completed')->count() }}

حالة الكشف

@if ($occasion->status == 'active') نشط @elseif($occasion->status == 'paused') مؤقت @else متوقف @endif
@if ($withdrawals->count() > 0)

سجل المسحوبات (منذ بدء المناسبة)

@foreach ($withdrawals as $withdrawal) @php if (isset($withdrawal->commission_amount) && $withdrawal->commission_amount > 0) { $comm = $withdrawal->commission_amount; $pct = $withdrawal->amount > 0 ? round(($comm / $withdrawal->amount) * 100, 1) : 0; } else { $comm = $withdrawal->amount * ($commissionPercentage / 100); $pct = $commissionPercentage; } $net = $withdrawal->amount - $comm; @endphp @endforeach
التاريخ المبلغ المطلوب العمولة صافي التحويل
{{ $withdrawal->created_at->format('Y-m-d h:i A') }} {{ number_format($withdrawal->amount) }} {{ number_format($comm) }} ({{ $pct }}%) {{ number_format($net) }}
@endif

سجل المساهمات

تصدير
@if (request()->hasAny(['search', 'sort'])) إلغاء @endif
@forelse($donations as $donation) @empty @endforelse
المساهم المبلغ التاريخ
{{ $donation->donor_name ?? 'فاعل خير' }} @if ($donation->donor_phone)

{{ $donation->donor_phone }}

@endif
{{ number_format($donation->amount) }} {{ $donation->created_at->format('Y-m-d h:i A') }}

لا توجد مساهمات حتى الآن

@if ($donations->hasPages())
{{ $donations->links() }}
@endif
@endsection