{{ $data }}
@if ($show == 'true')
{{ $title }}
@endif
@php parse_str($data, $output); @endphp
@foreach ($output['entities'] as $entityId)
@php
try {
$getTitle = DB::connection('mysql_site_' . session('serverID'))
->table('pages')
->where('id', '=', $entityId)
->where('site_id', '=', session('siteID'))
->get()
->first();
} catch (\Exception $e) {
$getTitle = null;
}
@endphp
@if ($getTitle)
-
{{ $getTitle->title }}
@endif
@endforeach