mirror of
https://github.com/openclassify/openclassify.git
synced 2026-04-14 11:12:09 -05:00
- Complete rewrite using Laravel 12 framework - Modular architecture with nwidart/laravel-modules v11 - Modules: Category, Listing, Location, Profile - 8 top-level categories with 33 subcategories seeded - 6 sample listings seeded - 5 countries, 13 cities, districts seeded - Multi-language support: en, tr, ar, zh, es, fr, de, pt, ru, ja - Auth scaffolding via Laravel Breeze - Partner dashboard for user listing management - Tailwind CSS via CDN for styling - SQLite database for development - RTL support for Arabic locale Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
16 lines
758 B
PHP
16 lines
758 B
PHP
@extends('layouts.app')
|
|
@section('content')
|
|
<div class="container mx-auto px-4 py-8">
|
|
<h1 class="text-3xl font-bold mb-6">{{ __('messages.categories') }}</h1>
|
|
<div class="grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4">
|
|
@foreach($categories as $category)
|
|
<a href="{{ route('categories.show', $category) }}" class="bg-white rounded-lg shadow-md p-6 text-center hover:shadow-lg transition hover:bg-blue-50">
|
|
<div class="text-4xl mb-3">{{ $category->icon ?? '📦' }}</div>
|
|
<h3 class="font-semibold text-gray-900">{{ $category->name }}</h3>
|
|
<p class="text-gray-500 text-sm mt-1">{{ $category->children->count() }} subcategories</p>
|
|
</a>
|
|
@endforeach
|
|
</div>
|
|
</div>
|
|
@endsection
|