phase 9
This commit is contained in:
@@ -2,6 +2,24 @@
|
||||
|
||||
@section('title', $job->title . ' at ' . $job->company . ' - JobifyGarden')
|
||||
@section('description', Str::limit(strip_tags($job->description), 155))
|
||||
@section('canonical', route('jobs.show', $job->id))
|
||||
|
||||
@push('structured_data')
|
||||
<script type="application/ld+json">
|
||||
{!! json_encode(app(\App\Services\SeoService::class)->generateJobStructuredData($job), JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT) !!}
|
||||
</script>
|
||||
|
||||
<script type="application/ld+json">
|
||||
{!! json_encode(app(\App\Services\SeoService::class)->generateBreadcrumbStructuredData([
|
||||
['name' => 'Home', 'url' => route('home')],
|
||||
['name' => 'Jobs', 'url' => route('jobs.index')],
|
||||
@if($job->category)
|
||||
['name' => $job->category->name, 'url' => route('jobs.category', $job->category->slug)],
|
||||
@endif
|
||||
['name' => $job->title, 'url' => route('jobs.show', $job->id)]
|
||||
]), JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT) !!}
|
||||
</script>
|
||||
@endpush
|
||||
|
||||
@section('content')
|
||||
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
|
||||
|
||||
Reference in New Issue
Block a user