Skip to content

Commit

Permalink
Merge pull request #57 from takielias/layout
Browse files Browse the repository at this point in the history
Added Different layout selection from Blade file.
  • Loading branch information
takielias authored Apr 16, 2024
2 parents 0928b60 + f1e905b commit 9c4ea40
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion resources/views/page.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@

@section('classes_body', $layoutHelper->makeBodyClasses())

@includeIf('tablar::layouts.'. config('tablar.layout'))
@section('layout')
@if(isset($layout))
@includeIf('tablar::layouts.' . $layout)
@else
@includeIf('tablar::layouts.'. config('tablar.layout'))
@endif
@show

@section('tablar_js')
@stack('js')
Expand Down

0 comments on commit 9c4ea40

Please sign in to comment.