@extends('layouts.app') @section('title', 'كشف حساب العميل') @section('content')
اسم العميل
{{ $statement['customer_name'] ?? '-' }}
رقم العميل
{{ $statement['customer_code'] ?? '-' }}
الرصيد الحالي
{{ number_format($statement['current_balance'] ?? 0, 2) }}
عدد الحركات
{{ count($statement['transactions'] ?? []) }}
إجمالي الفواتير
{{ number_format($statement['total_invoiced'] ?? 0, 0) }}
المدفوع
{{ number_format($statement['total_paid'] ?? 0, 0) }}
المعلق
{{ number_format($statement['total_pending'] ?? 0, 0) }}
معدل التحصيل
{{ $statement['collection_rate'] ?? 0 }}%
| التاريخ | نوع الحركة | الوصف | الفاتورة | المبلغ | الرصيد |
|---|---|---|---|---|---|
| {{ \Carbon\Carbon::parse($transaction['date'])->format('Y-m-d') }} | {{ $transaction['type'] == 'invoice' ? 'فاتورة' : 'دفعة' }} | {{ $transaction['description'] ?? '-' }} | {{ $transaction['reference_number'] ?? '-' }} | {{ $transaction['type'] == 'invoice' ? '+' : '-' }}{{ number_format(abs($transaction['amount']), 2) }} | {{ number_format($transaction['running_balance'], 2) }} |
| لا توجد حركات لهذا العميل في الفترة المحددة | |||||