@extends('layouts.app') @section('title', 'المدفوعات - '.config('app.name')) @section('breadcrumb') الرئيسية › المبيعات › المدفوعات @endsection @section('content')
إجمالي المدفوعات
{{ number_format($totalPayments) }}
إجمالي المبلغ
SAR {{ number_format($totalAmount, 2) }}
تم تخصيص الدفعة بنجاح
SAR {{ number_format($allocatedAmount, 2) }}
غير مخصص
SAR {{ number_format($unallocatedAmount, 2) }}
| رقم الدفعة | العميل | تاريخ الدفع | طريقة الدفع | المبلغ | تم تخصيص الدفعة بنجاح | الحالة |
|---|---|---|---|---|---|---|
| PAY-{{ $payment->id }} | {{ $payment->customer?->name ?? '-' }} | {{ $payment->date?->format('Y-m-d') }} | {{ $paymentMethods[$payment->payment_method] ?? $payment->payment_method }} | SAR {{ number_format((float)$payment->amount, 2) }} | SAR {{ number_format((float)($payment->allocations_sum_amount_allocated ?? 0), 2) }} | @php $alloc = (float)($payment->allocations_sum_amount_allocated ?? 0); @endphp @if($alloc >= (float)$payment->amount) مخصص @elseif($alloc > 0) جزئي @else غير مخصص @endif |
| لا توجد مدفوعات | ||||||