

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

<?php $__env->startSection('content'); ?>
<h1 class="h4 mb-3">Edit Mobile Method: <?php echo e($mobileMethod->name); ?></h1>

<?php if($errors->any()): ?>
    <div class="alert alert-danger">
        <ul class="mb-0">
            <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                <li><?php echo e($error); ?></li>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </ul>
    </div>
<?php endif; ?>

<form action="<?php echo e(route('admin.deposit-methods.mobile.update', $mobileMethod)); ?>"
      method="POST" enctype="multipart/form-data">
    <?php echo csrf_field(); ?>
    <?php echo method_field('PUT'); ?>

    <div class="mb-3">
        <label class="form-label">Name</label>
        <input type="text" name="name" value="<?php echo e(old('name', $mobileMethod->name)); ?>" class="form-control" required>
    </div>

    <div class="mb-3">
        <label class="form-label">Slug</label>
        <input type="text" name="slug" value="<?php echo e(old('slug', $mobileMethod->slug)); ?>" class="form-control" required>
    </div>

    <div class="mb-3">
        <label class="form-label">Logo (image)</label>
        <?php if($mobileMethod->logo): ?>
            <div class="mb-2">
                <img src="<?php echo e(asset('storage/'.$mobileMethod->logo)); ?>" alt="" width="60">
            </div>
        <?php endif; ?>
        <input type="file" name="logo" class="form-control">
        <small class="text-muted">নতুন ছবি আপলোড করলে পুরনোটি রিপ্লেস হবে।</small>
    </div>

    <div class="mb-3">
        <label class="form-label">Account Number</label>
        <input type="text" name="account_number"
               value="<?php echo e(old('account_number', $mobileMethod->account_number)); ?>"
               class="form-control" required>
    </div>

    <div class="mb-3 row">
        <div class="col-md-4">
            <label class="form-label">Sort Order</label>
            <input type="number" name="sort_order"
                   value="<?php echo e(old('sort_order', $mobileMethod->sort_order)); ?>"
                   class="form-control">
        </div>
        <div class="col-md-4 d-flex align-items-end">
            <div class="form-check">
                <input type="checkbox" name="status" value="1" class="form-check-input" id="status"
                       <?php echo e(old('status', $mobileMethod->status) ? 'checked' : ''); ?>>
                <label for="status" class="form-check-label">Active</label>
            </div>
        </div>
    </div>

    <button class="btn btn-primary">Update</button>
    <a href="<?php echo e(route('admin.deposit-methods.mobile.index')); ?>" class="btn btn-secondary">Back</a>
</form>
<?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/edit.blade.php ENDPATH**/ ?>