
<?php $__env->startSection('title','Bank T. Success'); ?>

<?php $__env->startSection('content'); ?>
<?php
    $isSuccess = in_array($transfer->status, ['success','completed','approved']);
    $isFailed  = in_array($transfer->status, ['failed','rejected','canceled']);

    $statusLabel = 'অপেক্ষমান';
    $statusColor = 'text-orange-500';

    if ($isSuccess) {
        $statusLabel = 'সফল হয়েছে';
        $statusColor = 'text-green-500';
    } elseif ($isFailed) {
        $statusLabel = 'বাতিল / ব্যর্থ';
        $statusColor = 'text-rose-500';
    }

    $bankName   = optional($transfer->bank)->name ?? 'Bank Transfer';
    $branchName = $transfer->branch_name ?: '—';
    $created    = optional($transfer->created_at)->format('d-m-Y');
?>

<div class="min-h-screen bg-[#f5f7fb] flex items-center justify-center px-4 py-10">
    <div class="w-full max-w-sm">

        
        <div class="bg-white rounded-3xl shadow-[0_14px_40px_rgba(0,0,0,0.08)] px-6 py-7 text-center">

            
            <div class="flex justify-center mb-4">
                <div class="h-16 w-16 rounded-full bg-emerald-500 flex items-center justify-center">
                    <svg class="h-8 w-8 text-white" viewBox="0 0 24 24" fill="none">
                        <path d="M5 13l4 4L19 7"
                              stroke="currentColor"
                              stroke-width="2.5"
                              stroke-linecap="round"
                              stroke-linejoin="round" />
                    </svg>
                </div>
            </div>

            
            <h1 class="text-[18px] font-extrabold text-gray-800 leading-tight">
                রিকোয়েস্ট সাবমিট হয়েছে
            </h1>
            <p class="text-sm text-sky-600 mt-1">
                Bank Transfer (<?php echo e($bankName); ?>)
            </p>

            
            <div class="mt-5 bg-white rounded-2xl border border-gray-200 overflow-hidden text-sm text-gray-700">

                
                <div class="flex items-center justify-between px-4 py-2 border-b border-gray-200">
                    <span class="text-gray-600">পরিমাণঃ</span>
                    <span class="font-semibold text-gray-800">
                        ৳<?php echo e(number_format($transfer->amount, 2)); ?>

                    </span>
                </div>

                
                <div class="flex items-center justify-between px-4 py-2 border-b border-gray-200">
                    <span class="text-gray-600">ব্যাংকঃ</span>
                    <span class="font-semibold text-gray-800">
                        <?php echo e($bankName); ?>

                    </span>
                </div>

                
                <div class="flex items-center justify-between px-4 py-2 border-b border-gray-200">
                    <span class="text-gray-600">অ্যাকাউন্টঃ</span>
                    <span class="font-semibold text-gray-800">
                        <?php echo e($transfer->account_number); ?>

                    </span>
                </div>

                
                <div class="flex items-center justify-between px-4 py-2 border-b border-gray-200">
                    <span class="text-gray-600">ব্রাঞ্চঃ</span>
                    <span class="font-semibold text-gray-800">
                        <?php echo e($branchName); ?>

                    </span>
                </div>

                
                <div class="flex items-center justify-between px-4 py-2 border-b border-gray-200">
                    <span class="text-gray-600">অবস্থাঃ</span>
                    <span class="font-semibold <?php echo e($statusColor); ?>">
                        <?php echo e($statusLabel); ?>

                    </span>
                </div>

                
                <div class="flex items-center justify-between px-4 py-2">
                    <span class="text-gray-600">তারিখঃ</span>
                    <span class="font-semibold text-gray-800">
                        <?php echo e($created); ?>

                    </span>
                </div>
            </div>
        </div>

        
        <a href="<?php echo e(url('/')); ?>"
           class="mt-5 block w-full text-center bg-emerald-500 hover:bg-emerald-600 text-white font-semibold text-sm py-3 rounded-full shadow-md transition">
            হোমে ফিরে যান
        </a>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/ecareba2/new.rkmotorsbike.top/resources/views/frontend/bank/success.blade.php ENDPATH**/ ?>