How to make laravel qr code to be filled automatically?

Viewed 15

i first time write here and i think you can help me. My problem is that when I try to put in the barcode to automatically enter what is needed it doesn't do it but just overwrites the code, I've looked on a couple of pages and I can't find a solution to my problem anywhere. Here is the thing i need to be automatically writed in qr code.

    <div class="col-40">
    <div class="text p-index-right">
        @stack('document_number_input_start')
            @if (! $hideDocumentNumber)
                <p class="mb-0">
                    <span class="font-semibold w-numbers">
                    <strong> OTPREMNICA - FAKTURA</strong>
                    </span>

                    <span class="float-right spacing">
                        {{ $document->document_number }}
                    </span>
                </p>
            @endif
        @stack('document_number_input_end')

Here is the photo how this code import document_number on invoice image

Here is the code of qrcode

@stack('qrcode_input_start')
        <div class="container-barcod">
            <div class="card qrcode">
                <div class="card-body">
                {!! QrCode::encoding('UTF-8')->generate('S:Plaćanje racuna {{$document_number}}') !!}
                </div>
            </div>
        </div>
    @stack('qrcode_input_end')

Here is the screenshot of what i get when scan qrcode image of scaned qrcode What i need is the that document_number to be written there, which will be set by itself when I create the invoice.

0 Answers
Related