<?php $__env->startSection('content'); ?>
<div class="row justify-content-center">
    <div class="col-lg-6">
        <div class="card">
            <div class="card-body">
                <h1 class="h4 mb-3">Edit Currency</h1>
                <form method="POST" action="<?php echo e(route('currencies.update', $currency)); ?>">
                    <?php echo csrf_field(); ?>
                    <?php echo method_field('PUT'); ?>
                    <div class="mb-3">
                        <label class="form-label" for="code">Code / Symbol</label>
                        <input class="form-control text-uppercase" id="code" name="code" maxlength="10" value="<?php echo e(old('code', $currency->code)); ?>" required>
                    </div>
                    <div class="mb-3">
                        <label class="form-label" for="name">Name</label>
                        <input class="form-control" id="name" name="name" value="<?php echo e(old('name', $currency->name)); ?>" required>
                    </div>
                    <div class="d-flex gap-2">
                        <button class="btn btn-primary" type="submit">Update Currency</button>
                        <a class="btn btn-outline-secondary" href="<?php echo e(route('currencies.index')); ?>">Cancel</a>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH F:\christopher\currencychangerui\resources\views/currencies/edit.blade.php ENDPATH**/ ?>