@extends('admin.layout') @section('title', 'Payments') @section('admin-content')

Payments

Manage customer payments

@foreach($payments as $payment) @endforeach
User Order Amount Method Status Date Actions
{{ strtoupper(substr($payment->user->name, 0, 1)) }}
{{ $payment->user->name }}
{{ $payment->order->order_number }} ₦{{ number_format($payment->amount, 0) }} {{ ucfirst(str_replace('_', ' ', $payment->payment_method)) }} {{ ucfirst($payment->status) }} {{ $payment->created_at->format('M d, Y') }} @if($payment->status === 'pending')
@csrf
@csrf
@else - @endif
{{ $payments->links() }}
@endsection