@extends('admin.admin_dashboard')
@section('admin')
@php
//payments TABLE
//$payments = App\Models\Payment::where('id', '!=', 6)->orderBy('id', 'DESC')->get();
//payments in USD and currency
//$usds = App\Models\Payment::where('currency', 'usd')->orderBy('id', 'DESC')->get();
$usds = App\Models\Payment::whereIn('currency', ['usd', 'eur', 'cad', 'gbp', 'ngn', 'zar'])
->orderBy('id', 'DESC')
->get();
@endphp
Currency Payments
{{-- --}}
| s/n |
user_fullname |
total_amount |
currency |
payment_date |
purpose |
narration |
payment_gateway |
status |
name |
email |
phone_no |
tx_ref |
payment_ref |
@foreach($usds as $key => $payment)
| {{ $key+1 }} |
{{ $payment->user->title }} {{ $payment->user->firstname }} {{ $payment->user->surname }} |
{{ $payment->total_amount }} |
{{ strtolower($payment->currency) }} |
{{ $payment->payment_date }} |
{{ $payment->purpose }} |
{{ $payment->narration }} |
{{ $payment->payment_gateway }} |
{{ $payment->status }} |
{{ $payment->name }} |
{{ $payment->email }} |
{{ $payment->phone_number }} |
{{ $payment->tx_ref }} |
{{ $payment->payment_ref }} |
@endforeach
@endsection