<!DOCTYPE html>
<html lang="bn">
<head>
    <meta charset="UTF-8">
    <title>লোন জমা দিন</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <style>
        :root { --primary:#e53935; --bg:#f5f5f5; }
        * { box-sizing:border-box;margin:0;padding:0; }
        body { font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;background:var(--bg); }
        .topbar{ background:var(--primary);color:#fff;padding:12px 18px;
                 display:flex;align-items:center;justify-content:center; }
        .topbar .back{ position:absolute;left:18px;cursor:pointer; }
        .topbar-title{ font-weight:600; }
        .page{ max-width:900px;margin:18px auto 30px;padding:0 12px; }
        .card{ background:#fff;border-radius:16px;padding:16px 16px 18px;
               box-shadow:0 4px 12px rgba(0,0,0,.06);margin-bottom:14px; }
        .loan-item{ border-radius:14px;border:1px solid #f0f0f0;padding:10px 12px;
                    margin-bottom:10px;display:flex;justify-content:space-between;align-items:center; }
        .title{ font-weight:600;font-size:14px;margin-bottom:2px; }
        .sub{ font-size:12px;color:#777; }
        .badge{ display:inline-block;padding:3px 8px;border-radius:999px;font-size:11px; }
        .badge-pending{ background:#fff8e1;color:#f9a825; }
        .btn{ border:none;border-radius:999px;padding:7px 12px;font-size:13px;
              cursor:pointer;background:var(--primary);color:#fff; }
        .empty{ text-align:center;margin-top:40px;font-size:14px;color:#555; }
    </style>
</head>
<body>
<div class="topbar">
    <div class="back" onclick="history.back()">←</div>
    <div class="topbar-title">লোন জমা দিন</div>
</div>

<div class="page">
    <div class="card">
        <h3 style="font-size:15px;margin-bottom:10px;">যে লোনের জন্য জামানত/ডিপোজিট দিতে চান সেটি নির্বাচন করুন</h3>

        <?php if($loans->isEmpty()): ?>
            <div class="empty">
                আপনি এখনো কোন ঋণ নেননি অথবা সব লোনের জামানত সম্পন্ন হয়েছে।<br>
                <a href="<?php echo e(route('loan.apply')); ?>">
                    <button class="btn" style="margin-top:12px;">নতুন লোন আবেদন করুন</button>
                </a>
            </div>
        <?php else: ?>
            <?php $__currentLoopData = $loans; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $loan): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <div class="loan-item">
                    <div>
                        <div class="title">
                            Loan #<?php echo e($loan->id); ?> – ৳ <?php echo e(number_format($loan->amount)); ?>

                        </div>
                        <div class="sub">
                            মেয়াদ: <?php echo e($loan->tenure_months); ?> মাস •
                            স্ট্যাটাস: <?php echo e(strtoupper(str_replace('_',' ', $loan->status))); ?>

                        </div>
                        <div class="sub">
                            তৈরি: <?php echo e($loan->created_at->format('d M Y')); ?>

                        </div>
                    </div>
                    <div style="text-align:right;">
                        <span class="badge badge-pending">জামানত বাকি</span><br>
                        <a href="<?php echo e(route('loan.deposit.method', $loan)); ?>">
                            <button class="btn" style="margin-top:6px;">জামানত দিন</button>
                        </a>
                    </div>
                </div>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        <?php endif; ?>
    </div>
</div>
</body>
</html>
<?php /**PATH /home/ecareba2/loan.rkmotorsbike.top/resources/views/frontend/loan/deposit-select.blade.php ENDPATH**/ ?>