feat: implement full-stack awards module with Filament management, database support, and localization.

This commit is contained in:
Ümit Tunç
2026-05-27 06:32:31 +03:00
parent 05e8059b5d
commit 3c92a81cfe
14 changed files with 1127 additions and 0 deletions
@@ -0,0 +1,42 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('awards', function (Blueprint $table) {
$table->id();
$table->string('title')->nullable(); // Original/fallback title
$table->text('description')->nullable(); // Original/fallback description
$table->string('issuer')->nullable(); // Original/fallback issuer
$table->date('award_date')->nullable();
$table->string('image')->nullable();
$table->string('external_link')->nullable();
$table->boolean('is_featured')->default(false);
$table->boolean('is_active')->default(true);
$table->unsignedInteger('sort_order')->default(0);
$table->string('category', 64)->default('general');
$table->timestamps();
$table->softDeletes();
$table->index(['is_active', 'sort_order']);
$table->index('is_featured');
$table->index('award_date');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('awards');
}
};