@extends('admin.layouts.main') @section('title', 'Payment Methods') @section('page-title', 'Payment Methods') @section('breadcrumbs') @endsection @section('content')
Total Methods
{{ $totalMethods ?? 0 }}
Active Methods
{{ $activeMethods ?? 0 }}
Digital Methods
{{ $digitalMethods ?? 0 }}
Most Used Method
{{ ucfirst(str_replace('_', ' ', $mostUsedMethod)) }}
Payment Methods
Add New Method
@forelse($paymentMethods as $index => $method) @empty @endforelse
# Name Type Account Details Instructions Status Usage Actions
{{ $index + 1 }} {{ $method['name'] }}
{{ $method['account_name'] ? 'Account: ' . $method['account_name'] : '' }} {{ $method['account_number'] ? ' | ' . $method['account_number'] : '' }}
{{ ucfirst(str_replace('_', ' ', $method['code'])) }} @if($method['account_number']) Number: {{ $method['account_number'] }}
Name: {{ $method['account_name'] ?? 'N/A' }}
@else No account details @endif
@if($method['instructions']) {{ Str::limit($method['instructions'], 50) }} @else No instructions @endif {{ $method['is_active'] ? 'Active' : 'Inactive' }} Total: {{ $method['total_transactions'] ?? 0 }}
Success: {{ number_format($method['success_rate'] ?? 100, 1) }}%
@csrf @method('DELETE')
No payment methods found
@if($pagination)
Showing {{ ($pagination['current_page'] - 1) * $pagination['per_page'] + 1 }} to {{ min($pagination['current_page'] * $pagination['per_page'], $pagination['total']) }} of {{ $pagination['total'] }} entries
@endif
@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