Files
jobifygarden/resources/views/home.blade.php
T

273 lines
14 KiB
PHP
Raw Normal View History

2026-04-03 20:33:24 +03:00
@extends('layouts.app')
2026-04-04 02:14:57 +03:00
@section('title', 'JobifyGarden - Find Your Dream Job | ' . number_format($stats['active_jobs'] ?? 0) . '+ Jobs')
@section('description', 'Discover thousands of job opportunities from multiple sources. Browse remote jobs, full-time positions, and more. Your next career starts here.')
@section('canonical', route('home'))
@push('structured_data')
<script type="application/ld+json">
{
2026-04-04 12:40:25 +03:00
"{{ '@' }}context": "https://schema.org",
"{{ '@' }}type": "WebSite",
2026-04-04 02:14:57 +03:00
"name": "JobifyGarden",
"url": "{{ route('home') }}",
"potentialAction": {
2026-04-04 12:40:25 +03:00
"{{ '@' }}type": "SearchAction",
2026-04-04 02:14:57 +03:00
"target": "{{ route('jobs.index') }}?keywords={search_term_string}",
"query-input": "required name=search_term_string"
}
}
</script>
<script type="application/ld+json">
{
2026-04-04 12:40:25 +03:00
"{{ '@' }}context": "https://schema.org",
"{{ '@' }}type": "Organization",
2026-04-04 02:14:57 +03:00
"name": "JobifyGarden",
"url": "{{ url('/') }}",
"logo": "{{ asset('images/logo.png') }}",
"description": "Job aggregator platform helping job seekers find opportunities from multiple sources"
}
</script>
@endpush
2026-04-03 20:33:24 +03:00
@section('main-class', '')
@section('content')
2026-04-04 12:40:25 +03:00
<!-- Hero Section -->
<div class="bg-gradient-to-r from-emerald-600 to-emerald-500">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-16 sm:py-24">
2026-04-04 18:19:34 +03:00
<div class="text-center mb-10">
2026-04-04 12:40:25 +03:00
<h1 class="text-4xl sm:text-5xl lg:text-6xl font-bold text-white mb-6">
Find Your Dream Job
</h1>
2026-04-04 18:19:34 +03:00
<p class="text-xl text-emerald-50 max-w-2xl mx-auto">
2026-04-04 12:40:25 +03:00
Search through thousands of job listings from multiple sources. Your next career opportunity is just a search away.
</p>
2026-04-04 18:19:34 +03:00
</div>
2026-04-03 20:33:24 +03:00
2026-04-04 18:19:34 +03:00
<!-- Advanced Search Form -->
<div class="max-w-5xl mx-auto">
<form action="{{ route('jobs.index') }}" method="GET" class="bg-white rounded-xl shadow-2xl p-6 space-y-4">
<!-- Main Search Field -->
<div>
<input type="text"
name="keywords"
placeholder="Job title, keywords, or company..."
class="w-full px-4 py-4 text-lg rounded-lg border border-gray-300 focus:ring-2 focus:ring-emerald-500 focus:border-emerald-500 text-gray-900 placeholder-gray-500">
</div>
<!-- Filter Grid -->
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-3">
<!-- Category -->
<div>
<select name="category_id"
class="w-full px-4 py-3 rounded-lg border border-gray-300 focus:ring-2 focus:ring-emerald-500 focus:border-emerald-500 text-gray-700 bg-white">
<option value="">All Categories</option>
@foreach($categories as $category)
<option value="{{ $category->id }}">{{ $category->name }}</option>
@endforeach
</select>
2026-04-04 12:40:25 +03:00
</div>
2026-04-04 18:19:34 +03:00
<!-- Location -->
<div>
2026-04-04 12:40:25 +03:00
<input type="text"
name="location"
placeholder="Location"
2026-04-04 18:19:34 +03:00
class="w-full px-4 py-3 rounded-lg border border-gray-300 focus:ring-2 focus:ring-emerald-500 focus:border-emerald-500 text-gray-700 placeholder-gray-500">
2026-04-04 12:40:25 +03:00
</div>
2026-04-04 18:19:34 +03:00
<!-- Job Type -->
<div>
<select name="job_type"
class="w-full px-4 py-3 rounded-lg border border-gray-300 focus:ring-2 focus:ring-emerald-500 focus:border-emerald-500 text-gray-700 bg-white">
<option value="">All Job Types</option>
@foreach($jobTypes as $type)
<option value="{{ $type }}">{{ ucfirst(str_replace('_', ' ', $type)) }}</option>
@endforeach
</select>
</div>
<!-- Experience Level -->
<div>
<select name="experience_level"
class="w-full px-4 py-3 rounded-lg border border-gray-300 focus:ring-2 focus:ring-emerald-500 focus:border-emerald-500 text-gray-700 bg-white">
<option value="">All Experience Levels</option>
@foreach($experienceLevels as $level)
<option value="{{ $level }}">{{ ucfirst($level) }}</option>
@endforeach
</select>
</div>
</div>
<!-- Additional Filters Row -->
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-3">
<!-- Remote -->
<div>
<select name="remote"
class="w-full px-4 py-3 rounded-lg border border-gray-300 focus:ring-2 focus:ring-emerald-500 focus:border-emerald-500 text-gray-700 bg-white">
<option value="">Remote/On-site</option>
<option value="1">Remote Only</option>
<option value="0">On-site Only</option>
</select>
</div>
<!-- Posted Within -->
<div>
<select name="posted_within"
class="w-full px-4 py-3 rounded-lg border border-gray-300 focus:ring-2 focus:ring-emerald-500 focus:border-emerald-500 text-gray-700 bg-white">
<option value="">Any Time</option>
<option value="1">Last 24 hours</option>
<option value="7">Last 7 days</option>
<option value="30">Last 30 days</option>
</select>
</div>
<!-- Salary Min -->
<div>
<input type="number"
name="salary_min"
placeholder="Min Salary"
class="w-full px-4 py-3 rounded-lg border border-gray-300 focus:ring-2 focus:ring-emerald-500 focus:border-emerald-500 text-gray-700 placeholder-gray-500">
</div>
<!-- Salary Max -->
<div>
<input type="number"
name="salary_max"
placeholder="Max Salary"
class="w-full px-4 py-3 rounded-lg border border-gray-300 focus:ring-2 focus:ring-emerald-500 focus:border-emerald-500 text-gray-700 placeholder-gray-500">
</div>
</div>
<!-- Search Button -->
<div class="flex justify-center pt-2">
2026-04-04 12:40:25 +03:00
<button type="submit"
2026-04-04 18:19:34 +03:00
class="px-12 py-4 bg-emerald-600 hover:bg-emerald-700 text-white text-lg font-semibold rounded-lg transition-colors duration-200 shadow-lg hover:shadow-xl">
<span class="flex items-center">
<svg class="w-5 h-5 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path>
</svg>
Search Jobs
</span>
2026-04-04 12:40:25 +03:00
</button>
2026-04-04 18:19:34 +03:00
</div>
</form>
2026-04-03 20:33:24 +03:00
</div>
</div>
</div>
2026-04-04 12:40:25 +03:00
<!-- Stats Section -->
<div class="bg-white border-b border-gray-200">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
<div class="grid grid-cols-2 md:grid-cols-4 gap-6 text-center">
<div>
<div class="text-3xl font-bold text-emerald-600">{{ number_format($stats['active_jobs'] ?? 0) }}</div>
<div class="text-sm text-gray-600 mt-1">Active Jobs</div>
</div>
<div>
<div class="text-3xl font-bold text-emerald-600">{{ number_format($stats['remote_jobs'] ?? 0) }}</div>
<div class="text-sm text-gray-600 mt-1">Remote Jobs</div>
</div>
<div>
<div class="text-3xl font-bold text-emerald-600">{{ number_format($stats['recently_added'] ?? 0) }}</div>
<div class="text-sm text-gray-600 mt-1">Added This Week</div>
</div>
<div>
<div class="text-3xl font-bold text-emerald-600">{{ $categories->count() }}</div>
<div class="text-sm text-gray-600 mt-1">Categories</div>
</div>
2026-04-03 20:33:24 +03:00
</div>
</div>
</div>
2026-04-04 12:40:25 +03:00
<!-- Featured Jobs Section -->
<div class="bg-gray-50 py-12">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex justify-between items-center mb-8">
<h2 class="text-3xl font-bold text-gray-900">Featured Jobs</h2>
<a href="{{ route('jobs.index') }}" class="text-emerald-600 hover:text-emerald-700 font-medium">
View all jobs →
2026-04-03 20:33:24 +03:00
</a>
2026-04-04 12:40:25 +03:00
</div>
2026-04-03 20:33:24 +03:00
2026-04-04 12:40:25 +03:00
@if($featuredJobs->isNotEmpty())
<div class="grid gap-6 md:grid-cols-2">
@foreach($featuredJobs as $job)
<x-job-card :job="$job" />
@endforeach
</div>
@else
<div class="text-center py-12 bg-white rounded-lg border border-gray-200">
<svg class="mx-auto h-12 w-12 text-gray-400" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 13.255A23.931 23.931 0 0112 15c-3.183 0-6.22-.62-9-1.745M16 6V4a2 2 0 00-2-2h-4a2 2 0 00-2 2v2m4 6h.01M5 20h14a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"></path>
2026-04-03 20:33:24 +03:00
</svg>
2026-04-04 12:40:25 +03:00
<h3 class="mt-2 text-sm font-medium text-gray-900">No jobs available</h3>
<p class="mt-1 text-sm text-gray-500">Check back later for new opportunities.</p>
</div>
@endif
</div>
</div>
<!-- Recent Jobs Section -->
<div class="bg-white py-12">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<h2 class="text-3xl font-bold text-gray-900 mb-8">Recently Posted</h2>
@if($recentJobs->isNotEmpty())
<div class="grid gap-6 md:grid-cols-2 lg:grid-cols-3">
@foreach($recentJobs as $job)
<x-job-card :job="$job" />
@endforeach
</div>
@else
<div class="text-center py-12 bg-gray-50 rounded-lg border border-gray-200">
<p class="text-gray-500">No recent jobs posted.</p>
</div>
@endif
</div>
</div>
<!-- Categories Section -->
<div class="bg-gray-50 py-12">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<h2 class="text-3xl font-bold text-gray-900 mb-8">Browse by Category</h2>
@if($categories->isNotEmpty())
<div class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-4">
@foreach($categories as $category)
<a href="{{ route('jobs.category', $category->slug) }}"
class="bg-white p-4 rounded-lg border border-gray-200 hover:border-emerald-500 hover:shadow-md transition-all duration-200 text-center group">
<div class="text-2xl mb-2">{{ $category->icon ?? '📁' }}</div>
<div class="text-sm font-medium text-gray-900 group-hover:text-emerald-600">{{ $category->name }}</div>
<div class="text-xs text-gray-500 mt-1">{{ $category->jobs_count }} jobs</div>
</a>
@endforeach
</div>
@else
<p class="text-gray-500 text-center">No categories available yet.</p>
@endif
</div>
</div>
<!-- CTA Section -->
<div class="bg-emerald-600">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12">
<div class="text-center">
<h2 class="text-3xl font-bold text-white mb-4">Ready to Find Your Next Opportunity?</h2>
<p class="text-emerald-50 mb-8 max-w-2xl mx-auto">
Join thousands of job seekers who have found their dream careers through JobifyGarden.
</p>
<a href="{{ route('jobs.index') }}"
class="inline-flex items-center px-8 py-3 bg-white text-emerald-600 font-semibold rounded-lg hover:bg-emerald-50 transition-colors duration-200">
Browse All Jobs
<svg class="ml-2 w-5 h-5" 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"></path>
</svg>
</a>
</div>
2026-04-03 20:33:24 +03:00
</div>
</div>
@endsection