@extends('layouts.portal') @section('title', __('admin_payments.title') . ' — ' . config('app.name')) @section('page_title', __('admin_payments.title')) @section('page_subtitle', __('admin_payments.subtitle')) @php $currency = config('smartcarb.currency'); $statusBadge = [ 'success' => 'bg-emerald-100 text-emerald-800', 'failed' => 'bg-red-100 text-red-700', 'initiated' => 'bg-amber-100 text-amber-800', ]; @endphp @section('content') {{-- Summary --}}
{{ __('admin_payments.collected') }}
{{ number_format((float) ($summary['success']->amount ?? 0), 2) }} {{ $currency }}
{{ $summary['success']->total ?? 0 }} {{ __('admin_payments.attempts') }}
{{ __('admin_payments.failed_amount') }}
{{ number_format((float) ($summary['failed']->amount ?? 0), 2) }} {{ $currency }}
{{ $summary['failed']->total ?? 0 }} {{ __('admin_payments.attempts') }}
{{ __('admin_payments.statuses.initiated') }}
{{ number_format((float) ($summary['initiated']->amount ?? 0), 2) }} {{ $currency }}
{{ $summary['initiated']->total ?? 0 }} {{ __('admin_payments.attempts') }}
| {{ __('admin_payments.date') }} | {{ __('admin_payments.reviewer') }} | {{ __('admin_payments.consultant') }} | {{ __('admin_payments.appointment') }} | {{ __('admin_payments.amount') }} | {{ __('admin_payments.method') }} | {{ __('admin_payments.status') }} | {{ __('admin_payments.result') }} | |
|---|---|---|---|---|---|---|---|---|
| {{ $payment->created_at->format('Y-m-d H:i') }} | {{ $appointment?->patient_name ?? '—' }} {{ $appointment?->phone }} | {{ $appointment?->consultant?->name ?? '—' }} | @if ($appointment) {{ $appointment->appointment_date->format('Y-m-d') }} {{ $appointment->type ? __('appointments.types.' . $appointment->type) : '' }} @else — @endif | {{ number_format((float) $payment->amount, 2) }} {{ $payment->currency }} | {{ $payment->brand ?? '—' }} | {{ __('admin_payments.statuses.' . $payment->status) }} | @if ($payment->result_code) {{ $payment->result_code }} @endif {{ \Illuminate\Support\Str::limit($payment->result_description, 80) }} | {{ __('admin_payments.details') }} |
| {{ __('admin_payments.no_payments') }} | ||||||||