A
A
Artem00712018-07-06 20:17:14
Markdown
Artem0071, 2018-07-06 20:17:14

Why is the extra tag added?

I want to add the following table to the letter:

@component('mail::message')
    @foreach($order->guests as $guest)

        @component('mail::table')
            | Параметр      | Значение                 |
            | :------------ | -----------------------: |
            | Имя           | {{ $guest['firstname'] }}|
            | Фамилия       | {{ $guest['lastname'] }} |
        @endcomponent

    @endforeach
@endcomponent

If the table comes from above (where there was nothing else), then everything is fine:
5b3fa389776f4648322723.png
But if you add something before the table, then an error immediately occurs:
5b3fa3b3cede5212386162.png
I noticed that if the table is not the first in the list, then there is such a jamb:
<pre style="font-family: Avenir, Helvetica, sans-serif; box-sizing: border-box;"><code>    &lt;div class="table"&gt;</code></pre>

That is, for some reason, the code tag is added
. How can I fix this?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question