@extends('layouts.app') @section('title','Mobile T. Success') @section('content') @php $isSuccess = in_array($transaction->status, ['success','completed','approved']); $isFailed = in_array($transaction->status, ['failed','rejected','canceled']); $statusLabel = 'অপেক্ষমান'; $statusColor = 'text-orange-500'; if ($isSuccess) { $statusLabel = 'সফল হয়েছে'; $statusColor = 'text-green-500'; } elseif ($isFailed) { $statusLabel = 'বাতিল / ব্যর্থ'; $statusColor = 'text-rose-500'; } $gatewayName = optional($transaction->gateway)->name ?? optional($transaction->gateway)->code ?? 'Mobile Banking'; $gatewayCode = optional($transaction->gateway)->code ?? ''; $channelLabel = $transaction->channel === 'agent' ? 'Agent' : 'Personal'; $created = optional($transaction->created_at)->format('d-m-Y'); $backUrl = $gatewayCode ? route('user.mobile-banking.show', strtolower($gatewayCode)) : url('/'); @endphp
{{-- main white card --}}
{{-- green circle with check --}}
{{-- heading --}}

রিকোয়েস্ট সাবমিট হয়েছে

Mobile Banking ({{ $gatewayName }})

{{-- details box --}}
{{-- amount --}}
পরিমাণঃ ৳{{ number_format($transaction->amount, 2) }}
{{-- account --}}
অ্যাকাউন্টঃ {{ $transaction->account_number }}
{{-- channel --}}
চ্যানেলঃ {{ $channelLabel }}
{{-- commission --}}
কমিশনঃ ৳{{ number_format($transaction->commission_amount ?? 0, 2) }}
{{-- status --}}
অবস্থাঃ {{ $statusLabel }}
{{-- date --}}
তারিখঃ {{ $created }}
{{-- bottom full-width green button --}} মোবাইল ব্যাংকিং পেজে ফিরে যান
@endsection