fix notif
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
/**
|
||||
* سوییچ: خارج از ساعت کاری هم قیمت صفحه اصلی اپ نشان داده شود (بدون پیام «فروشگاه بسته است»).
|
||||
* معامله همچنان بسته میماند؛ فقط نمایش قیمت صفحه اصلی باز میشود.
|
||||
*/
|
||||
return new class extends Migration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
if (! DB::table('settings')->where('key', 'show_home_price_when_closed')->exists()) {
|
||||
DB::table('settings')->insert([
|
||||
'key' => 'show_home_price_when_closed',
|
||||
'value' => 'false',
|
||||
'title_fa' => 'نمایش قیمت صفحه اصلی خارج از ساعت کاری',
|
||||
'type' => 'switch',
|
||||
'can_edit' => 1,
|
||||
'is_active' => 1,
|
||||
'description' => 'روشن: وقتی فروشگاه خارج از ساعت کاری است، قیمت صفحه اصلی اپ همچنان نمایش داده میشود و پیام «فروشگاه بسته است» نشان داده نمیشود. خرید/فروش همچنان بسته میماند. خاموش: مثل قبل، خارج از ساعت پیام بسته بودن و قیمت صفر نشان داده میشود.',
|
||||
'created_at' => now(),
|
||||
'updated_at' => now(),
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
DB::table('settings')->where('key', 'show_home_price_when_closed')->delete();
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user