I'm building a Laravel app that uses SBAdmin 2. The SBAdmin2 has a collapsable panel of which an example is below (as provided by SBAdmin2):
<div class="col-sm-12">
@section ('collapsible_panel_title', 'Collapsible Panel Group')
@section ('collapsible_panel_body')
@include('widgets.collapse', array('id'=>'1', 'class'=>'primary', 'header'=> 'This is a header', 'body'=>'Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident. Ad vegan excepteur butcher vice lomo.','collapseIn'=>true))
@include('widgets.panel', array('header'=>true, 'as'=>'collapsible'))
</div>
A 'body' needs to be passed to the widget. The example above contains just a string, but I need to pass an HTML table.
@section ('panel_lot_panel_body')
@if(
$body = "<table class="table table-striped table-bordered table-list">
<thead>
<tr>
...
</tr>
</thead>
<tbody>
@foreach( $all_lots as $lot )
<tr>
...
</tr>
@endforeach
</tbody>
</table>")
@endif
@endsection
@include('widgets.panel', array('header'=>true, 'as'=>'panel_lot_panel'))
@include('widgets.collapse', array('id'=>'1', 'class'=>'primary', 'header'=> 'This is a header', 'body'=>{{$body}},'collapseIn'=>true))
Am getting all kinds of syntax errors, so looking for a way to pass an html table to the body of the collapsible panel.