Files
2025-07-24 16:18:27 +07:00

199 lines
6.6 KiB
PHP

<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
use Carbon\Carbon;
class MenuSeeder extends Seeder
{
public function run()
{
DB::table('menus')->insert([
[
'id' => 1,
'title' => 'Trang chủ',
'icon' => 'house',
'slug' => '/',
'route_name' => 'home',
'sort_by' => 1,
'is_active' => 1,
'_lft' => 1,
'_rgt' => 2,
'parent_id' => null,
'created_at' => '2025-04-28 01:55:41',
'updated_at' => '2025-04-28 02:02:59',
],
[
'id' => 2,
'title' => 'Đăng ký dịch vụ',
'icon' => 'shopping-cart',
'slug' => '/dang-ky-dich-vu',
'route_name' => null,
'sort_by' => 2,
'is_active' => 1,
'_lft' => 3,
'_rgt' => 10,
'parent_id' => null,
'created_at' => '2025-04-28 02:04:55',
'updated_at' => '2025-04-28 02:04:55',
],
[
'id' => 3,
'title' => 'Web Hosting',
'icon' => 'server',
'slug' => '/dich-vu/web-hosting',
'route_name' => null,
'sort_by' => 3,
'is_active' => 1,
'_lft' => 4,
'_rgt' => 5,
'parent_id' => 2,
'created_at' => '2025-04-28 02:05:51',
'updated_at' => '2025-05-06 09:51:16',
],
[
'id' => 5,
'title' => 'Dịch vụ của tôi',
'icon' => 'layers',
'slug' => '/dich-vu-cua-toi',
'route_name' => 'service.index',
'sort_by' => 1,
'is_active' => 1,
'_lft' => 11,
'_rgt' => 12,
'parent_id' => null,
'created_at' => '2025-04-28 02:11:23',
'updated_at' => '2025-05-05 01:21:50',
],
[
'id' => 6,
'title' => 'Quản lý thanh toán',
'icon' => 'credit-card',
'slug' => '/quan-ly-thanh-toan',
'route_name' => null,
'sort_by' => 1,
'is_active' => 1,
'_lft' => 13,
'_rgt' => 18,
'parent_id' => null,
'created_at' => '2025-04-28 02:11:51',
'updated_at' => '2025-05-05 01:23:38',
],
[
'id' => 7,
'title' => 'Hoá đơn',
'icon' => 'receipt-text',
'slug' => '/hoa-don',
'route_name' => 'invoice.index',
'sort_by' => 1,
'is_active' => 1,
'_lft' => 14,
'_rgt' => 15,
'parent_id' => 6,
'created_at' => '2025-04-28 02:12:30',
'updated_at' => '2025-05-23 08:36:35',
],
[
'id' => 8,
'title' => 'Nạp tiền',
'icon' => 'dollar-sign',
'slug' => '/nap-tien',
'route_name' => 'recharge.index',
'sort_by' => 1,
'is_active' => 1,
'_lft' => 19,
'_rgt' => 20,
'parent_id' => null,
'created_at' => '2025-04-28 02:13:47',
'updated_at' => '2025-05-05 01:26:21',
],
[
'id' => 9,
'title' => 'Hỗ trợ',
'icon' => 'inbox',
'slug' => '',
'route_name' => 'ticket',
'sort_by' => 1,
'is_active' => 1,
'_lft' => 21,
'_rgt' => 22,
'parent_id' => null,
'created_at' => '2025-04-28 02:14:10',
'updated_at' => '2025-05-05 01:41:02',
],
[
'id' => 10,
'title' => 'Lịch sử giao dịch',
'icon' => 'clipboard',
'slug' => '',
'route_name' => 'recharge.history',
'sort_by' => 1,
'is_active' => 1,
'_lft' => 23,
'_rgt' => 24,
'parent_id' => null,
'created_at' => '2025-04-28 02:14:46',
'updated_at' => '2025-05-05 01:27:15',
],
[
'id' => 11,
'title' => 'Kiểm tra tên miền',
'icon' => 'earth',
'slug' => '/kiem-tra-ten-mien',
'route_name' => null,
'sort_by' => 1,
'is_active' => 1,
'_lft' => 25,
'_rgt' => 26,
'parent_id' => null,
'created_at' => '2025-05-07 08:24:25',
'updated_at' => '2025-05-07 08:24:25',
],
[
'id' => 12,
'title' => 'Sản phẩm VPS',
'icon' => 'server',
'slug' => 'dich-vu/vps',
'route_name' => null,
'sort_by' => 1,
'is_active' => 1,
'_lft' => 6,
'_rgt' => 7,
'parent_id' => 2,
'created_at' => '2025-05-14 09:38:02',
'updated_at' => '2025-05-14 09:42:18',
],
[
'id' => 13,
'title' => 'VPS Cloud Windows',
'icon' => 'server',
'slug' => 'dich-vu/vps-cloud',
'route_name' => null,
'sort_by' => 2,
'is_active' => 1,
'_lft' => 8,
'_rgt' => 9,
'parent_id' => 2,
'created_at' => '2025-05-14 09:49:03',
'updated_at' => '2025-05-14 09:49:03',
],
[
'id' => 14,
'title' => 'Đơn hàng',
'icon' => 'receipt-text',
'slug' => '/danh-sach-don-hang',
'route_name' => 'order.index',
'sort_by' => 1,
'is_active' => 1,
'_lft' => 16,
'_rgt' => 17,
'parent_id' => 6,
'created_at' => '2025-05-23 08:33:07',
'updated_at' => '2025-05-23 08:36:45',
],
]);
}
}