@extends('layouts.app') @section('title', 'blog') @section('idname', 'single') @section('content')

Your Wallet

@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
    @foreach($errors->all() as $error)
    {{ $error }}
    @endforeach

Balance: €{{ number_format($wallet->balanceFloat, 2) }}

Transactions

@foreach($transactions as $transaction) @endforeach
@lang('messages.id') @lang('messages.type') @lang('messages.amount') @lang('messages.status') @lang('messages.gateway') @lang('messages.trx_id')
{{ $transaction->id }} @if(isset($transaction->meta['payment_method']) && $transaction->meta['payment_method'] == 'withdraw') Withdraw @else {{ ucfirst($transaction->type === 'withdraw' ? 'purchase' : $transaction->type) }} @endif {{ $transaction->amountFloat }} @if(isset($transaction->meta['payment_status']) && $transaction->meta['payment_status'] === 'cancel') Canceled @elseif($transaction->confirmed) Confirmed @else Pending @endif @if($transaction->meta && isset($transaction->meta['payment_method'])) {{ $transaction->meta['payment_method'] }} @endif @if($transaction->meta && isset($transaction->meta['trxid'])) {{ $transaction->meta['trxid'] }} @endif

Withdraw

@csrf

@lang('messages.deposit')

@csrf
@csrf
@endsection