@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
Mobile Banking ({{ $gatewayName }})
{{-- details box --}}