cmplus
Posts: 2
Joined: Fri Sep 15, 2023 2:50 pm

Laravel integration with Yajra

Fri Sep 15, 2023 2:56 pm

Good morning to everyone in the forum, I have a problem, before I started using yajra datatables serverside I used highcharts with the table code without problems and it worked correctly, but since I switched to using yajra datatables serverside I can't understand how do to integrate highcharts. Now to recall the table in the viewer I insert {{ $dataTable->table() }} with {{ $dataTable->scripts() }}, so I don't know where I have to go to insert highcharts and integrate it with the table, someone help me ?

cmplus
Posts: 2
Joined: Fri Sep 15, 2023 2:50 pm

Re: Laravel integration with Yajra

Sat Sep 16, 2023 12:19 pm

If the code I have now in the view file is like this, where do I get the table id from?

Code: Select all

@section('content')
    <div class="main-panel">
        <div class="content-wrapper">
            <div class="row">
                <div class="col-md-12 grid-margin stretch-card">
                    <div class="card">
                        <div class="card-body">
                            <p class="card-title">Tickets</p>
                            <div class="row">
                                <div class="col-md-12">
                                    {{ $dataTable->table() }}
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <footer>
            @include('layout.footer')
        </footer>
    </div>
@endsection
@push('scripts')
    {{ $dataTable->scripts() }}
@endpush

jakub.s
Posts: 968
Joined: Fri Dec 16, 2022 11:45 am

Re: Laravel integration with Yajra

Mon Sep 18, 2023 12:36 pm

Hi,

Welcome to our forum & thanks for the question!

I see that you've already posted this question on StackOverflow here: https://stackoverflow.com/questions/771 ... ntegration

We're working as a single support team across all channels (Forum, Freshdesk, StackOverflow, GitHub) so please try not to duplicate topics in the future. We try to answer all questions in under 24 hours from Monday to Friday.

You'll receive your answer on StackOverflow.

Best regards!
Jakub
Highcharts Developer

Return to “Highcharts Usage”