@extends('backend.deposit.index') @section('title', __('Deposit History')) @section('deposit_header') @endSection @section('deposit_content')
{{-- Filters --}} @include('backend.deposit.partials._filter') {{-- Transactions Table --}}
@forelse($depositHistories as $depositHistory) @php $avatarData = getUserAvatarDetails($depositHistory->user->first_name, $depositHistory->user->last_name); $color = $depositHistory->status->color(); $amountColor = $depositHistory->amount_flow->color($depositHistory->status); $amountSign = $depositHistory->amount_flow->sign($depositHistory->status); @endphp {{-- User Information --}} {{-- Amount Information --}} {{-- Description & Provider --}} {{-- Status --}} {{-- Transaction Time --}} @empty @endforelse
{{ __('User | TXN ID') }} {{ __('Amount | Fee') }} {{ __('Description | Provider') }} {{ __('Status') }} {{ __('Time') }}
@isset($depositHistory->user->avatar) User Avatar @else
{{ $avatarData['initials'] }}
@endisset
{{ $depositHistory->user->name }}
{{ strtoupper($depositHistory->trx_id) }}
{{ $amountSign . $depositHistory->amount . ' ' . $depositHistory->currency }}
{{ __('Fee: :fee', ['fee' => getSymbol($depositHistory->currency) . $depositHistory->fee]) }}
{{ $depositHistory->description }}
{{ $depositHistory->provider .' - '.$depositHistory->processing_type->label() }}
{{ $depositHistory->status->label() }}
{{ $depositHistory->created_at->format('Y-m-d H:i') }}
{{ $depositHistory->created_at->diffForHumans() }}
{{-- Pagination --}}
{{ $depositHistories->links() }}
@endsection