error fix
This commit is contained in:
@@ -33,6 +33,8 @@ class WebsiteController extends Controller
|
|||||||
$countries = Country::where('status', 1)->where('parent_id', null)->get();
|
$countries = Country::where('status', 1)->where('parent_id', null)->get();
|
||||||
$interviews = Service::where('status', 1)->where('parent_id', null)->get();
|
$interviews = Service::where('status', 1)->where('parent_id', null)->get();
|
||||||
$services = Service::where('status', 1)->where('parent_id', null)->get();
|
$services = Service::where('status', 1)->where('parent_id', null)->get();
|
||||||
|
$data['previousEvents'] = previousEvents(limit: null, order: 'asc');
|
||||||
|
$data['upcomingEvents'] = upcomingEvents(limit: null, order: 'asc');
|
||||||
$this->path = config('app.client');
|
$this->path = config('app.client');
|
||||||
|
|
||||||
view()->share([
|
view()->share([
|
||||||
@@ -42,6 +44,8 @@ class WebsiteController extends Controller
|
|||||||
'countries' => $countries,
|
'countries' => $countries,
|
||||||
'services' => $services,
|
'services' => $services,
|
||||||
'interviews' => $interviews,
|
'interviews' => $interviews,
|
||||||
|
'previousEvents' => $data['previousEvents'],
|
||||||
|
'upcomingEvents' => $data['upcomingEvents'],
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -52,8 +56,6 @@ class WebsiteController extends Controller
|
|||||||
$data['successGalleries'] = getGalleriesByCategory(limit: 3, order: 'asc', category: 'voice-of-success');
|
$data['successGalleries'] = getGalleriesByCategory(limit: 3, order: 'asc', category: 'voice-of-success');
|
||||||
$data['destinations'] = getDestinations(limit: null, order: 'asc');
|
$data['destinations'] = getDestinations(limit: null, order: 'asc');
|
||||||
$data['services'] = getServices(limit: null, order: 'asc');
|
$data['services'] = getServices(limit: null, order: 'asc');
|
||||||
$data['previousEvents'] = previousEvents(limit: null, order: 'asc');
|
|
||||||
$data['upcomingEvents'] = upcomingEvents(limit: null, order: 'asc');
|
|
||||||
$data['classes'] = getClasses(limit: null, order: 'asc');
|
$data['classes'] = getClasses(limit: null, order: 'asc');
|
||||||
$data['institutions'] = getInstitutions(limit: null, order: 'asc');
|
$data['institutions'] = getInstitutions(limit: null, order: 'asc');
|
||||||
$data['faqs'] = getFAQs(limit: null, order: 'desc');
|
$data['faqs'] = getFAQs(limit: null, order: 'desc');
|
||||||
|
Reference in New Issue
Block a user