@extends('admin.layouts.main') @section('title', 'Payment Method Details') @section('page-title', 'Payment Method Details') @section('breadcrumbs') @endsection @section('content')
Payment Method Information
{{ $paymentMethod['is_active'] ? 'Active' : 'Inactive' }} {{ ucfirst(str_replace('_', ' ', $paymentMethod['code'])) }}

{{ $paymentMethod['name'] }}

{{ ucfirst(str_replace('_', ' ', $paymentMethod['code'])) }}

{{ date('d M Y, H:i', strtotime($paymentMethod['created_at'])) }}

@if($paymentMethod['account_number'] || $paymentMethod['account_name'])
@if($paymentMethod['account_number'])

Account Number: {{ $paymentMethod['account_number'] }}

@endif @if($paymentMethod['account_name'])

Account Name: {{ $paymentMethod['account_name'] }}

@endif
@endif @if($paymentMethod['instructions'])
{{ $paymentMethod['instructions'] }}
@endif
Performance Statistics
{{ $successRate ?? 100 }}%
Success Rate

{{ count($recentPayments) }} (Recent)

Rp {{ number_format($averageAmount ?? 0, 0, ',', '.') }}

Rp {{ number_format($totalRevenue ?? 0, 0, ',', '.') }}

Recent Payments
@if(count($recentPayments) > 0)
@foreach($recentPayments as $payment) @endforeach
Date Payment ID Order ID Customer Amount Status
{{ date('d M Y, H:i', strtotime($payment['created_at'])) }} #{{ $payment['id'] }} #{{ $payment['order_id'] }} {{ $payment['customer_name'] ?? 'N/A' }} Rp {{ number_format($payment['amount'], 0, ',', '.') }} {{ ucfirst($payment['status']) }}
@else

No recent payments recorded

@endif
Actions
Edit Payment Method
@csrf @method('DELETE')
@if($paymentMethod['account_number']) @endif Back to List
Usage Distribution
@endsection @php function getPaymentMethodColor($code) { $colors = [ 'cash' => 'success', 'bank_transfer' => 'primary', 'ewallet' => 'info', 'qris' => 'warning', 'credit_card' => 'danger' ]; return $colors[$code] ?? 'secondary'; } @endphp @section('scripts') @endsection