colorful
This commit is contained in:
@@ -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('feedback_channels', function (Blueprint $table) {
|
||||
$table->string('color')->nullable()->after('icon');
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('feedback_channels', function (Blueprint $table) {
|
||||
$table->dropColumn('color');
|
||||
});
|
||||
}
|
||||
};
|
||||
@@ -49,11 +49,11 @@ class AfterSalesSeeder extends Seeder
|
||||
$depPhaply = Department::create(['name' => 'Phòng Pháp lý', 'manager_id' => null]);
|
||||
|
||||
$channels = [
|
||||
['name' => 'Email', 'slug' => 'email', 'icon' => 'heroicon-o-envelope'],
|
||||
['name' => 'Zalo', 'slug' => 'zalo', 'icon' => 'heroicon-o-chat-bubble-left'],
|
||||
['name' => 'Phone', 'slug' => 'phone', 'icon' => 'heroicon-o-phone'],
|
||||
['name' => 'Document', 'slug' => 'document', 'icon' => 'heroicon-o-document-text'],
|
||||
['name' => 'In Person', 'slug' => 'in-person', 'icon' => 'heroicon-o-user'],
|
||||
['name' => 'Email', 'slug' => 'email', 'icon' => 'heroicon-o-envelope', 'color' => '#3b82f6'],
|
||||
['name' => 'Zalo', 'slug' => 'zalo', 'icon' => 'heroicon-o-chat-bubble-left', 'color' => '#10b981'],
|
||||
['name' => 'Phone', 'slug' => 'phone', 'icon' => 'heroicon-o-phone', 'color' => '#f59e0b'],
|
||||
['name' => 'Document', 'slug' => 'document', 'icon' => 'heroicon-o-document-text', 'color' => '#8b5cf6'],
|
||||
['name' => 'In Person', 'slug' => 'in-person', 'icon' => 'heroicon-o-user', 'color' => '#ec4899'],
|
||||
];
|
||||
|
||||
foreach ($channels as $channel) {
|
||||
|
||||
Reference in New Issue
Block a user