<div>
    <form>
          <div class="mb-3">
            <label for="printername" class="form-label fs-6">Printer Name</label>
            <input type="text" id="printername" class="form-control" style="border-radius: 1rem" placeholder="Printer Name" wire:model.live="printername">
          </div>
          <div class="mb-3">
            <label for="warehousename" class="form-label fs-6">Warehouse Name</label>
            <input type="text" id="warehousename" class="form-control" style="border-radius: 1rem" placeholder="Warehouse Name" wire:model.live="wh_name">
          </div>
          <div class="mb-3">
            <label for="email" class="form-label fs-6">Email</label>
            <input type="text" id="email" class="form-control" style="border-radius: 1rem" placeholder="Email" wire:model.live="email">
          </div>
          <div class="mb-3">
            <label for="address" class="form-label fs-6">Address</label>
            <input type="text" id="address" class="form-control" style="border-radius: 1rem" placeholder="Address" wire:model.live="address">
          </div>
          <div class="mb-3">
            <label for="phone" class="form-label fs-6">Phone</label>
            <input type="text" id="phone" class="form-control" style="border-radius: 1rem" placeholder="Phone" wire:model.live="phone">
          </div>
          <div class="mb-3">
            <label for="urladmin" class="form-label fs-6">Url Admin</label>
            <input type="text" id="urladmin" class="form-control" style="border-radius: 1rem" placeholder="" wire:model.live="url_admin">
          </div>
          <div class="mb-3">
            <label for="receipt_footer" class="form-label fs-6">Footer Receipt</label>
            <textarea type="text" id="receipt_footer" class="form-control" style="border-radius: 1rem" placeholder="Footer" wire:model.live="receipt_footer" rows="5"></textarea>
          </div>
          <div class="mb-3">
            <label for="display" class="form-label fs-6">Display</label>
            <h4 class="text-center"><?php echo $footer; ?></h4>
          </div>
          <button type="button" wire:click="save" class="custom-button1">Save</button>
      </form>
</div>
<script>
    document.getElementById('receipt_footer').addEventListener('keydown', function(event) {
    if (event.key === 'Enter') {
        event.preventDefault();
        const cursorPosition = this.selectionStart;
        const value = this.value;
        const textBefore = value.substring(0, cursorPosition);
        const textAfter = value.substring(cursorPosition);

        this.value = textBefore + "\n" + textAfter;
        this.selectionStart = this.selectionEnd = cursorPosition + 1;
    }
});
</script>
<?php /**PATH C:\laragon\www\rybc\resources\views/livewire/settings/form.blade.php ENDPATH**/ ?>