feat: extend rate card profiles with brands, terms, and custom HTML, and remove search bar from search index view

This commit is contained in:
I-Fun
2026-04-05 18:28:48 +07:00
parent d6b10f725b
commit 1c2c10d253
22 changed files with 1024 additions and 388 deletions

View File

@@ -0,0 +1,29 @@
<?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::table('rate_card_profiles', function (Blueprint $table) {
$table->text('terms_and_conditions')->nullable();
$table->json('past_brands')->nullable();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('rate_card_profiles', function (Blueprint $table) {
$table->dropColumn(['terms_and_conditions', 'past_brands']);
});
}
};

View File

@@ -0,0 +1,22 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::table('rate_card_profiles', function (Blueprint $table) {
$table->text('contact_person_html')->nullable();
});
}
public function down(): void
{
Schema::table('rate_card_profiles', function (Blueprint $table) {
$table->dropColumn('contact_person_html');
});
}
};

View File

@@ -0,0 +1,22 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::table('rate_card_profiles', function (Blueprint $table) {
$table->string('brand_logo_size')->default('medium')->after('past_brands');
});
}
public function down(): void
{
Schema::table('rate_card_profiles', function (Blueprint $table) {
$table->dropColumn('brand_logo_size');
});
}
};