@if(!empty($post->meta_keywords))
@endif
@php
$blogUrl = $post->canonical_url ?: route('blog.show', $post->seo_slug ?: $post->slug);
$headline = $post->title;
$description = strip_tags($post->excerpt);
$image = str_starts_with($post->cover_image, 'data:') ? $post->cover_image : asset($post->cover_image);
$datePublished = $post->published_at ? $post->published_at->toIso8601String() : $post->created_at->toIso8601String();
$dateModified = $post->updated_at ? $post->updated_at->toIso8601String() : $datePublished;
$authorType = 'Organization';
$authorName = $post->author_name ?: 'ISMS Global Team';
$authorUrl = 'https://www.ismsglobal.in/about-us';
$publisherName = 'ISMS Global';
$publisherLogo = 'https://www.ismsglobal.in/assets/images/logo.png';
$schemasList = $post->relationLoaded('schemas') ? $post->schemas : $post->schemas()->where('is_enabled', true)->get();
$dbBlogPosting = $schemasList->where('schema_type', 'BlogPosting')->first();
if ($dbBlogPosting) {
$dbData = $dbBlogPosting->schema_data;
$headline = $dbData['headline'] ?? $headline;
$description = $dbData['description'] ?? $description;
if (!empty($dbData['image'])) {
$image = $dbData['image'];
}
if (!empty($dbData['date_published'])) {
$datePublished = date('c', strtotime($dbData['date_published']));
}
if (!empty($dbData['date_modified'])) {
$dateModified = date('c', strtotime($dbData['date_modified']));
}
$authorType = $dbData['author_type'] ?? $authorType;
$authorName = $dbData['author_name'] ?? $authorName;
$authorUrl = $dbData['author_url'] ?? $authorUrl;
$publisherName = $dbData['publisher_name'] ?? $publisherName;
if (!empty($dbData['publisher_logo'])) {
$publisherLogo = $dbData['publisher_logo'];
}
}
$blogPostingSchema = [
"@context" => "https://schema.org",
"@type" => "BlogPosting",
"mainEntityOfPage" => [
"@type" => "WebPage",
"@id" => $blogUrl
],
"headline" => $headline,
"description" => $description,
"image" => [$image],
"datePublished" => $datePublished,
"dateModified" => $dateModified,
"author" => [
"@type" => $authorType,
"name" => $authorName
],
"publisher" => [
"@type" => "Organization",
"name" => $publisherName,
"logo" => [
"@type" => "ImageObject",
"url" => $publisherLogo
]
]
];
if (!empty($authorUrl)) {
$blogPostingSchema['author']['url'] = $authorUrl;
}
$breadcrumbSchema = [
"@context" => "https://schema.org",
"@type" => "BreadcrumbList",
"itemListElement" => [
[
"@type" => "ListItem",
"position" => 1,
"name" => "Home",
"item" => url('/')
],
[
"@type" => "ListItem",
"position" => 2,
"name" => "Blog",
"item" => route('blog.index')
]
]
];
if ($post->category) {
$breadcrumbSchema['itemListElement'][] = [
"@type" => "ListItem",
"position" => 3,
"name" => $post->category->name,
"item" => route('blog.index', ['category' => $post->category->slug])
];
}
$breadcrumbSchema['itemListElement'][] = [
"@type" => "ListItem",
"position" => $post->category ? 4 : 3,
"name" => $post->title,
"item" => $blogUrl
];
if (!empty($post->primary_topic)) {
$blogPostingSchema['about'] = [
"@type" => "Thing",
"name" => $post->primary_topic
];
}
if (!empty($post->related_topics)) {
$mentions = [];
foreach ($post->related_topics as $topic) {
if (!empty($topic)) {
$mentions[] = [
"@type" => "Thing",
"name" => $topic
];
}
}
if (!empty($mentions)) {
$blogPostingSchema['mentions'] = $mentions;
}
}
$renderedSchemas = [
$blogPostingSchema,
$breadcrumbSchema
];
foreach ($schemasList as $schema) {
if ($schema->schema_type === 'BlogPosting') {
continue;
}
$data = $schema->schema_data;
if ($schema->schema_type === 'FAQPage' && !empty($data['faqs'])) {
$faqElements = [];
foreach ($data['faqs'] as $faq) {
$faqElements[] = [
"@type" => "Question",
"name" => $faq['question'],
"acceptedAnswer" => [
"@type" => "Answer",
"text" => strip_tags($faq['answer'])
]
];
}
$renderedSchemas[] = [
"@context" => "https://schema.org",
"@type" => "FAQPage",
"mainEntity" => $faqElements
];
} elseif ($schema->schema_type === 'Custom JSON-LD') {
$customJson = json_decode($data['custom_json'] ?? '', true);
if ($customJson) {
$renderedSchemas[] = $customJson;
}
} else {
$structured = [
"@context" => "https://schema.org",
"@type" => $schema->schema_type,
];
foreach ($data as $key => $val) {
if ($key !== 'image_hidden' && $key !== 'publisher_logo_hidden' && !empty($val)) {
$structured[$key] = $val;
}
}
$renderedSchemas[] = $structured;
}
}
@endphp
@foreach($renderedSchemas as $schemaObj)
@endforeach
{{ $post->category ? $post->category->name : 'Uncategorized' }}
{{ $post->title }}
{!! $post->excerpt !!}
 ? $post->cover_image : asset($post->cover_image) }})
@if($post->category && $post->category->slug === 'study-abroad')
@endif
@if(!empty($post->advantages))
@endif
@if(!empty($post->popular_courses))
@endif
@if(!empty($post->cost_of_studying))
@endif
@if(!empty($post->custom_sections))
@foreach($post->custom_sections as $index => $sec)
@endforeach
@endif
@if(!empty($post->conclusion))
@endif
{{ $post->category->slug === 'study-abroad' ? 'Why Study Here?' : 'Overview' }}
@if(!empty($post->ai_search_summary))
Article Summary
{{ $post->ai_search_summary }}
@endif
{!! $post->content !!}
{{ $post->advantages_title ?? 'Top Advantages of Studying in the UK' }}
@if(!empty($post->advantages))
@foreach($post->advantages as $adv)
@endforeach
@endif
{{ $post->popular_courses_title ?? 'Popular Courses in UK' }}
Indian students can choose from a wide range of undergraduate and postgraduate
courses.
@if(!empty($post->popular_courses))
@endif
{{ $post->cost_of_studying_title ?? 'Cost of Studying in UK' }}
The cost varies depending on the university, course and city you choose.
| Expense Head |
Undergraduate (Annual) |
Postgraduate (Annual) |
@if(!empty($post->cost_of_studying))
@foreach($post->cost_of_studying as $row)
| {{ $row['head'] }} |
{{ $row['undergrad'] }} |
{{ $row['postgrad'] }} |
@endforeach
@endif
@if(!empty($post->conclusion))
Conclusion
{!! $post->conclusion !!}
@endif
@if(!empty($post->custom_sections))
@foreach($post->custom_sections as $index => $sec)
{{ $sec['title'] }}
{!! $sec['content'] !!}
@endforeach
@endif
@php
$faqSchema = $schemasList->where('schema_type', 'FAQPage')->first();
@endphp
@if($faqSchema && !empty($faqSchema->schema_data['faqs']))
Frequently Asked Questions
@foreach($faqSchema->schema_data['faqs'] as $faq)
{{ $faq['question'] }}
{!! $faq['answer'] !!}
@endforeach
@endif
@if(isset($previousPost) && $previousPost)
Previous Post
{{ $previousPost->title }}
@else
@endif
@if(isset($nextPost) && $nextPost)
Next Post
{{ $nextPost->title }}
@else
@endif
{{ $post->author_name }}
Official team of ISMS Global, sharing expert insights on study abroad
opportunities, admissions, scholarships, visas and global education.
Need Expert Guidance for Your Study Abroad Journey?
Our counsellors are here to help you choose the right
destination, university and course — absolutely free!
@include('partials.sticky_enquiry')
@include('partials.chatbot')