@extends('layouts.app') @section('content')

كشف حساب المحفظة

@include('flash::message') @php $netFlow = $totals['deposits'] - $totals['withdraws']; $netFlowColor = $netFlow >= 0 ? 'text-success' : 'text-danger'; $netFlowIcon = $netFlow >= 0 ? 'fa-arrow-trend-up' : 'fa-arrow-trend-down'; @endphp
{{ $user->full_name }}
{{ $wallet->type == 'host' ? 'صاحب عقار' : 'عميل' }}
  • رقم المحفظة: #{{ request()->route('wallet') }}
  • الهاتف: {{ $user->contact_no ?? 'غير متوفر' }}
  • رقم الحساب: {{ $user->id }}

الرصيد الحالي

{{ number_format($balance, 2) }} د.ل

إجمالي الإيداعات

+{{ number_format($totals['deposits'], 2) }} د.ل

إجمالي السحوبات

-{{ number_format($totals['withdraws'], 2) }} د.ل

صافي التدفق

{{ $netFlow > 0 ? '+' : '' }}{{ number_format($netFlow, 2) }} د.ل

تصفية الحركات المالية
سجل الحركات المالية {{ $transactions->total() }} حركة
@if($transactions->count() > 0)
@foreach($transactions as $transaction) @php $isDeposit = $transaction['operation_type'] == 'إيداع'; $amountColor = $isDeposit ? 'text-success' : 'text-danger'; $amountSign = $isDeposit ? '+' : '-'; @endphp @endforeach
# التاريخ الوصف والملاحظات التصنيف المبلغ (د.ل)
{{ $transaction['id'] }}
{{ \Carbon\Carbon::parse($transaction['created_at'])->format('Y-m-d') }} {{ \Carbon\Carbon::parse($transaction['created_at'])->format('H:i') }}
@if($transaction['booking_id']) حجز #{{ $transaction['booking_id'] }} @else حركة عامة @endif @if($transaction['note'] && $transaction['note'] !== '-') • {{ $transaction['note'] }} @endif
@if(!empty($transaction['meta']) && is_array($transaction['meta'])) @endif
{{ $transactionTypes[$transaction['transaction_type']] ?? $transaction['transaction_type'] }} {{ $amountSign }}{{ $transaction['formatted_amount'] }}
@else
لا توجد حركات مالية

لم يتم العثور على أي حركات مالية تطابق معايير البحث المحددة.

@endif
@endsection