@extends('frontend.layout.masterlayout') @section('content')
@if (count($page_widgets) > 0) @foreach ($page_widgets as $page_widget) @php $widget_info = \App\Models\Widget::where('id', $page_widget->widget_id)->first(); $widget_title_slug = str_replace(' ', '-', $widget_info->title); $modelname = $widget_info->connected_with; $media_dirname = Str::lower($modelname); if ($modelname) { $get_core_modules = \App\Models\CoreModule::where('module_model', $modelname)->first(); $model_name = '\\App\\Models\\' . $modelname; $all_records = $model_name::orderBy('serialize_automatic', 'asc')->get(); } // $columns = \Schema::getColumnListing(Str::plural($media_dirname)); // foreach($columns as $col) // { // echo $col.'
'; // } @endphp @include('frontend.widgets.' . $primary_theme->slug . '.' . $widget_title_slug) @endforeach @else

Welcome To {{ $basedata->businesstitle }} - {{ $slug }}

Go Back
@endif
@endsection