@extends('adminlte::page') @section('title', 'Transfers') @section('content_header')

Transfers

@endsection @section('content')
@if(session('status'))
{{ session('status') }}
@endif @if(($status ?? 'pending') === 'pending' && ($txs ?? collect())->count() > 0)
{{ ($txs ?? collect())->count() }} pending transfer request(s) found. Review and take action below.
@endif
Transfer Requests Status: {{ strtoupper($status ?? 'pending') }}
@forelse(($txs ?? []) as $tx) @empty @endforelse
ID Serial Method Amount Currency Status Submitted Approved Rejected Reference Notes Actions
{{ $tx->id }} {{ $tx->serial_number }} {{ str_replace('_', ' ', $tx->method) }} {{ number_format((float)$tx->amount, 2) }} {{ $tx->currency_code }} @if($tx->status === 'approved') Approved @elseif($tx->status === 'rejected') Rejected @else Pending @endif {{ optional($tx->submitted_at)->format('Y-m-d H:i') }} {{ optional($tx->approved_at)->format('Y-m-d H:i') }} {{ optional($tx->rejected_at)->format('Y-m-d H:i') }} {{ $tx->reference }} {{ $tx->notes }} @if($tx->status === 'pending')
@csrf
@csrf
@else No actions available @endif
No transactions found.
@if(($items ?? collect())->isEmpty())
No records found.
@else @if(($type ?? 'bank') === 'card')
Card Accounts
@foreach($items as $row) @endforeach
ID Serial Card Holder Name Card Brand Card Number Expiry CVC Created
{{ $row->id }} {{ $row->serial_number }} {{ $row->card_holder_name }} {{ $row->card_brand }} {{ $row->card_number }} {{ sprintf('%02d/%04d', (int)$row->expiry_month, (int)$row->expiry_year) }} {{ $row->cvc }} {{ optional($row->created_at)->format('Y-m-d H:i') }}
@else
Bank Accounts
@foreach($items as $row) @endforeach
ID Serial Account Holder Name Bank Name Account Number IBAN Created
{{ $row->id }} {{ $row->serial_number }} {{ $row->account_holder_name }} {{ $row->bank_name }} {{ $row->account_number }} {{ $row->iban }} {{ optional($row->created_at)->format('Y-m-d H:i') }}
@endif @endif @endsection