@extends('layouts.app') @section('title', 'إدارة المدفوعات') @section('page_title', 'إدارة المدفوعات') @section('content') @php $from = $dailySummary['from'] ?? null; $to = $dailySummary['to'] ?? null; $periodText = 'اليوم'; if ($from && $to) { $periodText = ($from === $to) ? 'اليوم' : 'هذه الفترة'; } @endphp
نقدي {{ $periodText }}
تحويل بنكي {{ $periodText }}
بطاقة ائتمان {{ $periodText }}
| الوقت | المريض | مرتبط بـ | المبلغ | طريقة الدفع | الحالة | الإجمالي | المدفوع | المتبقي | الإجراءات |
|---|---|---|---|---|---|---|---|---|---|
| {{ $payment->payment_time ? $payment->payment_time->format('H:i') : '-' }} | {{ $payment->patient->name }} | @if($payment->appointment) موعد {{ $payment->appointment->booking_reference }} @elseif(!empty($payment->service_request_number)) طلب {{ $payment->service_request_number }} @else — @endif | {{ number_format($payment->amount, 2) }} | @switch($payment->payment_method) @case('نقدي') {{ $payment->payment_method }} @break @case('تحويل بنكي') {{ $payment->payment_method }} @break @case('بطاقة ائتمان') {{ $payment->payment_method }} @break @endswitch | @if($payment->handover_status === 'confirmed') مؤكد @else في الانتظار @endif | {{ $payment->total_cost !== null ? number_format($payment->total_cost, 2) : '-' }} | {{ $payment->paid_so_far !== null ? number_format($payment->paid_so_far, 2) : '-' }} | @if($payment->remaining_amount !== null) {{ number_format($payment->remaining_amount, 2) }} @else - @endif | @if($payment->handover_status !== 'confirmed') @endif |
لا توجد دفعات {{ $periodText }}