@extends('layouts.muladash') @section('title', $title) @section('content')
{{-- Success Animation --}}
success
{{-- Headline --}}

{{ in_array($transaction->type, ['Transfer to Contact', 'Transfer to @username']) ? 'Transfer Successful!' : 'Transaction Successful!' }}

@switch($transaction->type) @case('Crypto Deposit') Crypto Deposit to {{ $settings->site_name }} Wallet @break @case('Bank Deposit') Bank Deposit to {{ $settings->site_name }} Balance @break @case('Bank Withdrawal') Withdrawal to Bank Account @break @case('Crypto Withdrawal') Withdrawal to Crypto Wallet @break @case('Transfer to Contact') Transfer to {{ $transaction->to }} @break @case('Transfer to @username') Transfer to @{{ $transaction->to }} @break @default {{ $transaction->type }} @endswitch

{{ Auth::user()->name }}

{{ $settings->currency }}{{ number_format($transaction->amount, 2) }}

{{-- Details Card --}} @php $statusColor = match(strtolower($transaction->status)) { 'completed' => 'text-green-500 bg-green-100', 'pending' => 'text-yellow-500 bg-yellow-100', 'failed' => 'text-red-500 bg-red-100', default => 'text-gray-500 bg-gray-100' }; @endphp

Transaction Status

{{ ucfirst($transaction->status) }}

@if($transaction->from)

From

{{ $transaction->from }}

@endif @if($transaction->to)

To

{{ $transaction->to }}

@endif @if($transaction->payment_mode)

Payment Method

{{ $transaction->payment_mode }}

@endif @if($transaction->bank_name)

Bank Name

{{ $transaction->bank_name }}

@endif @if($transaction->bank_account_number)

Account Number

{{ $transaction->bank_account_number }}

@endif @if($transaction->crypto_address)

Crypto Address

{{ $transaction->crypto_address }}

@endif

Date

{{ \Carbon\Carbon::parse($transaction->transaction_time)->toDayDateTimeString() }}

Transaction Hash

{{ $transaction->hash ?? 'N/A' }}

Reference ID

{{ $transaction->ref }}

{{-- Notes --}} @if($transaction->notes)

Notes :

{{ $transaction->notes }}

@endif {{-- Source --}} @if($transaction->currency_id)

Source

{{ $transaction->from }}

@endif {{-- Actions --}}
@endsection {{-- Scripts --}} @section('scripts') @endsection