
<?php $__env->startSection('title', 'Loan Details'); ?>

<?php $__env->startPush('styles'); ?>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css"/>
<style>
@media (prefers-reduced-motion: no-preference){
  .press:active{ transform:translateY(1px); }
}
</style>
<?php $__env->stopPush(); ?>

<?php $__env->startSection('sub_layout'); ?>
<div class="mx-auto max-w-md px-4 py-6">

  
  <div class="bg-white/90 backdrop-blur rounded-2xl shadow-lg ring-1 ring-black/5 p-6">

    
    <h2 class="text-center text-xl font-extrabold tracking-wide">
      <span class="bg-gradient-to-r from-rose-600 to-red-600 bg-clip-text text-transparent">
        অ্যামাউন্ট বিস্তারিত
      </span>
    </h2>

    
    <div class="mt-5 grid grid-cols-2 gap-3">
      
      <div class="rounded-xl border border-slate-200 bg-white p-3 shadow-sm">
        <div class="flex items-center gap-3">
          <span class="inline-flex size-9 items-center justify-center rounded-lg bg-rose-50 text-rose-600 ring-1 ring-rose-100">
            <i class="fa-solid fa-sack-dollar"></i>
          </span>
          <div class="min-w-0">
            <div class="text-xs text-slate-500">লোন</div>
            <div class="truncate text-[15px] font-semibold text-slate-800">
              ৳ <?php echo e(number_format($loan->amount)); ?>

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

      
      <div class="rounded-xl border border-slate-200 bg-white p-3 shadow-sm">
        <div class="flex items-center gap-3">
          <span class="inline-flex size-9 items-center justify-center rounded-lg bg-emerald-50 text-emerald-600 ring-1 ring-emerald-100">
            <i class="fa-solid fa-receipt"></i>
          </span>
          <div class="min-w-0">
            <div class="text-xs text-slate-500">মোট পরিশোধযোগ্য</div>
            <div class="truncate text-[15px] font-semibold text-slate-800">
              ৳ <?php echo e(number_format($loan->total_payable)); ?>

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

      
      <div class="rounded-xl border border-slate-200 bg-white p-3 shadow-sm">
        <div class="flex items-center gap-3">
          <span class="inline-flex size-9 items-center justify-center rounded-lg bg-indigo-50 text-indigo-600 ring-1 ring-indigo-100">
            <i class="fa-solid fa-list-ol"></i>
          </span>
          <div>
            <div class="text-xs text-slate-500">মোট ইন্সটলমেন্ট</div>
            <div class="text-[15px] font-semibold text-slate-800">
              <?php echo e($loan->tenure_months); ?>

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

      
      <div class="rounded-xl border border-slate-200 bg-white p-3 shadow-sm">
        <div class="flex items-center gap-3">
          <span class="inline-flex size-9 items-center justify-center rounded-lg bg-amber-50 text-amber-600 ring-1 ring-amber-100">
            <i class="fa-solid fa-percent"></i>
          </span>
          <div>
            <div class="text-xs text-slate-500">ইন্টারেস্ট রেট</div>
            <div class="text-[15px] font-semibold text-slate-800">
              <?php echo e($loan->interest_rate); ?>%
            </div>
          </div>
        </div>
      </div>
    </div>

    
    <form action="<?php echo e(route('loan.confirm', $loan)); ?>" method="POST" class="mt-6">
      <?php echo csrf_field(); ?>
      <button type="submit"
        class="press inline-flex w-full items-center justify-center gap-2 rounded-full
               bg-gradient-to-r from-rose-600 to-red-600 px-5 py-3 text-sm font-semibold text-white
               shadow-lg shadow-rose-600/20 ring-1 ring-white/10
               transition hover:brightness-105 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-rose-500">
        <i class="fa-solid fa-arrow-right-to-bracket"></i>
        এগিয়ে যান
      </button>
    </form>

    
    <h4 class="mt-2 text-sm font-bold text-slate-800">পরিশোধের সময়সূচি</h4>

    <ol class="relative ms-4 mt-3 space-y-4 border-s border-slate-200">
      <?php $__currentLoopData = $installments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $ins): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <li class="ps-4">
          
          <span class="absolute -start-2.5 mt-2 inline-flex size-2.5 rounded-full bg-rose-600 ring-4 ring-rose-100"></span>

          <div class="flex items-center justify-between gap-3">
            <div class="text-[13px] font-medium text-slate-700">
              <?php echo e(\Carbon\Carbon::parse($ins->due_date)->format('M d, Y')); ?>

            </div>
            <div class="text-[15px] font-semibold text-slate-900">
              ৳ <?php echo e(number_format($ins->amount)); ?>

            </div>
          </div>

          <div class="mt-1 text-xs text-slate-600">
            <span class="inline-flex items-center gap-1">
              <i class="fa-solid fa-circle text-[6px] text-slate-400"></i>
              আসল ৳ <?php echo e(number_format($ins->principal_part)); ?>

            </span>
            <span class="mx-1 text-slate-400">+</span>
            <span class="inline-flex items-center gap-1">
              <i class="fa-solid fa-circle text-[6px] text-slate-400"></i>
              ইন্টারেস্ট ৳ <?php echo e(number_format($ins->interest_part)); ?>

            </span>
          </div>
        </li>
      <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </ol>

  </div>

  
  <div class="mt-4 text-center">
    <a href="<?php echo e(url()->previous()); ?>"
       class="inline-flex items-center gap-2 text-sm font-semibold text-slate-600 hover:text-slate-800 transition">
       <i class="fa-solid fa-arrow-left-long"></i> Back
    </a>
  </div>

</div>
<?php $__env->stopSection(); ?>

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