

<?php $__env->startSection('title', 'Mobile Banking Methods'); ?>

<?php $__env->startSection('content'); ?>
<div class="d-flex justify-content-between align-items-center mb-3">
    <h1 class="h4">Mobile Banking Methods</h1>
    <a href="<?php echo e(route('admin.deposit-methods.mobile.create')); ?>" class="btn btn-primary btn-sm">
        <i class="bi bi-plus-lg"></i> নতুন যোগ করুন
    </a>
</div>

<?php if(session('success')): ?>
    <div class="alert alert-success"><?php echo e(session('success')); ?></div>
<?php endif; ?>

<table class="table table-bordered table-striped align-middle">
    <thead>
        <tr>
            <th>#</th>
            <th>Logo</th>
            <th>Name</th>
            <th>Slug</th>
            <th>Account Number</th>
            <th>Sort</th>
            <th>Status</th>
            <th width="120">Action</th>
        </tr>
    </thead>
    <tbody>
        <?php $__empty_1 = true; $__currentLoopData = $methods; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $method): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
            <tr>
                <td><?php echo e($method->id); ?></td>
                <td>
                    <?php if($method->logo): ?>
                        <img src="<?php echo e(asset('storage/'.$method->logo)); ?>" alt="" width="40">
                    <?php endif; ?>
                </td>
                <td><?php echo e($method->name); ?></td>
                <td><?php echo e($method->slug); ?></td>
                <td><?php echo e($method->account_number); ?></td>
                <td><?php echo e($method->sort_order); ?></td>
                <td>
                    <?php if($method->status): ?>
                        <span class="badge bg-success">Active</span>
                    <?php else: ?>
                        <span class="badge bg-secondary">Inactive</span>
                    <?php endif; ?>
                </td>
                <td>
                    <a href="<?php echo e(route('admin.deposit-methods.mobile.edit', $method)); ?>" class="btn btn-sm btn-outline-primary">
                        Edit
                    </a>
                    <form action="<?php echo e(route('admin.deposit-methods.mobile.destroy', $method)); ?>" method="POST"
                          style="display:inline-block"
                          onsubmit="return confirm('ডিলিট করতে চান?');">
                        <?php echo csrf_field(); ?>
                        <?php echo method_field('DELETE'); ?>
                        <button class="btn btn-sm btn-outline-danger">Del</button>
                    </form>
                </td>
            </tr>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
            <tr><td colspan="8" class="text-center">কোনো Mobile method নেই।</td></tr>
        <?php endif; ?>
    </tbody>
</table>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('backend.master', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/ecareba2/loan.rkmotorsbike.top/resources/views/admin/deposit-methods/mobile/index.blade.php ENDPATH**/ ?>