@php use \koolreport\widgets\koolphp\Table; use \Constants\SharedConstants; use \App\Helpers\DBHelper; @endphp @extends('layouts.dashboard') @section('title', $reportName) @section('content') @php DBHelper::connectToDatabase(SharedConstants::CUSTOMER_DATA_SQL_CONNECTION, Session::get('dbName')); $d = DB::connection(SharedConstants::CUSTOMER_DATA_SQL_CONNECTION)->select(DB::raw($query)); @endphp

{{ ucwords($reportName) }}

{{ $reportCategory }} > {{ ucwords($reportName) }}
@php Table::create([ "dataSource"=>DB::connection(SharedConstants::CUSTOMER_DATA_SQL_CONNECTION)->select(DB::raw($query)), "columns"=>json_decode($reportColumnDefinition, true), "cssClass"=>array( "table"=>"table table-bordered" ) ]); @endphp
@endsection