Skip to content
Discussion options

You must be logged in to vote

This will only output the text as HTML. If you want to pass a Blade you can do it like a view() example:

TD::make('active', __('Active'))
    ->render(function () {
        return view('template');
    })

or use shorthand which will compile Blade syntax to HTML:

use Illuminate\Support\Facades\Blade;
 
TD::make('active', __('Active'))
    ->render(function () {
        return Blade::render('<x-orchid-icon path="check" />');
    })

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Rfferrao87
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants