Okipa / laravel-table

Generate tables from Eloquent models.
MIT License
532 stars 64 forks source link

Multiple tables in one page #28

Closed Anisi closed 4 years ago

Anisi commented 4 years ago

Hi I realized (please correct me if I'm wrong) that is not possible to show more than one table in a page, and just the first table is shown. Could you please tell me what can I do?

Example Controller:

...
        return view('admin.product.related-product-index', compact('table_assigned', 'table_not_assigned', 'product'));
...

Example View:

@extends('admin.layouts.list')

@section('title', 'فهرست محصولات مرتبط با «' . $product->title . '»')

@section('preTable')
    @include('flash::message')
@endsection
@section('table')
    {{ $table_assigned }}
    {{ $table_not_assigned }}
@endsection
Anisi commented 4 years ago

It was my mistake in views. Sorry