There are 2 tables. The first table appears well. But the second table, looks not neat. Seems the css does not work. And other than that the data after the table 1, the text is very small
Seems like its being rendered as a code block as per the documentation. Theres a warning in the docs about using excess indentation. Try keep everything inbetween the main component with just one level of indentation and see if that works. If it does, try indenting others to achieve a more readable file up until it breaks.
Simple debugging stuff. Alternatively, don't use markdown mailables.
Try using only one set of @component('mail::table') so instead of
@component('mail::table')
| Laravel | Table | Example |
| ------------- |:-------------:| --------:|
| Col 2 is | Centered | |
| Col 3 is | Right-Aligned | |
@endcomponent
This is table two
@component('mail::table')
| Laravel | Table | Example |
| ------------- |:-------------:| --------:|
| Col 2 is | Centered | |
| Col 3 is | Right-Aligned | |
@endcomponent
use the following
@component('mail::table')
| Laravel | Table | Example |
| ------------- |:-------------:| --------:|
| Col 2 is | Centered | |
| Col 3 is | Right-Aligned | |
| Laravel | Table | Example |
| ------------- |:-------------:| --------:|
| Col 2 is | Centered | |
| Col 3 is | Right-Aligned | |
@endcomponent
For anyone encountering the same problem, It's the newline in the code. Remove any newlines (spaces in between lines of code) otherwise for some reason that happens. With any markdown email, still in Laravel 7.x