51 lines
2.3 KiB
PHP
51 lines
2.3 KiB
PHP
@extends('layouts.app')
|
|||
|
|
|
||
|
|
@section('title', 'Blog - JobifyGarden')
|
||
|
|
@section('description', 'Career advice, job search tips, and hiring insights from the JobifyGarden team.')
|
||
|
|
@section('canonical', route('blog.index'))
|
||
|
|
|
||
|
|
@section('content')
|
||
|
|
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12">
|
||
|
|
<div class="mb-10">
|
||
|
|
<h1 class="text-4xl font-bold text-gray-900">Blog</h1>
|
||
|
|
<p class="text-gray-600 mt-2">Career advice, job search tips, and hiring insights.</p>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
@if($articles->isEmpty())
|
||
|
|
<div class="bg-white rounded-lg shadow-sm border border-gray-200 p-12 text-center">
|
||
|
|
<p class="text-gray-500 text-lg">No articles published yet. Check back soon.</p>
|
||
|
|
</div>
|
||
|
|
@else
|
||
|
|
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
|
||
|
|
@foreach($articles as $article)
|
||
|
|
<article class="bg-white rounded-lg shadow-sm border border-gray-200 overflow-hidden hover:shadow-md transition-shadow duration-200 flex flex-col">
|
||
|
|
<div class="p-6 flex flex-col flex-1">
|
||
|
|
<div class="text-xs text-gray-500 mb-3">
|
||
|
|
{{ $article->published_at->format('M j, Y') }}
|
||
|
|
</div>
|
||
|
|
<h2 class="text-xl font-semibold text-gray-900 mb-3 leading-snug">
|
||
|
|
<a href="{{ route('blog.show', $article) }}" class="hover:text-emerald-600">
|
||
|
|
{{ $article->title }}
|
||
|
|
</a>
|
||
|
|
</h2>
|
||
|
|
@if($article->excerpt)
|
||
|
|
<p class="text-gray-600 text-sm flex-1 mb-4">{{ $article->excerpt }}</p>
|
||
|
|
@endif
|
||
|
|
<a href="{{ route('blog.show', $article) }}"
|
||
|
|
class="inline-flex items-center text-sm font-medium text-emerald-600 hover:text-emerald-700 mt-auto">
|
||
|
|
Read more
|
||
|
|
<svg class="ml-1 w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"/>
|
||
|
|
</svg>
|
||
|
|
</a>
|
||
|
|
</div>
|
||
|
|
</article>
|
||
|
|
@endforeach
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="mt-10">
|
||
|
|
{{ $articles->links() }}
|
||
|
|
</div>
|
||
|
|
@endif
|
||
|
|
</div>
|
||
|
|
@endsection
|