Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

GuntarV's avatar
Level 40

Format cell(s) in Tables Component in Mailables Markdown

Hi, Is it possible to format individual cell(s) in the Table's Component? For example in the table markdown code below in the Cost column, if I would like to display cell value in bold if the value is less than $10, is that doable? I tried, and I was able to apply bold with regular html tag if I put them in the static table like one below, but I If I try to dynamically generate the table inside the loop, the html tags show up in the email message i.e. <strong>$9.99</strong> Any thought, suggestions.... please let me know.

@component('mail::table')
| Laravel       | Table         | Cost|
| ------------- |:-------------:| --------:|
| Col 2 is      | Centered      | .99      |
| Col 3 is      | Right-Aligned |       |
@endcomponent
0 likes
0 replies

Please or to participate in this conversation.