Added CRUD routes for benefits, success stories, and visa grants
Landing registration page completed except design
This commit is contained in:
@ -275,14 +275,14 @@ class CCMS
|
||||
{
|
||||
$isActive = request()->fullUrl() == $URL;
|
||||
$activeClass = $isActive ? 'active' : '';
|
||||
?>
|
||||
?>
|
||||
<li>
|
||||
<a class="nav-link menu-link <?php echo $activeClass; ?>" href="<?php echo $URL; ?>"><i
|
||||
class="ri-file-text-line "></i> <span data-key="t-landing">
|
||||
<?php echo $text; ?>
|
||||
</span></a>
|
||||
</li>
|
||||
<?php
|
||||
<?php
|
||||
}
|
||||
public static function getslider()
|
||||
{
|
||||
@ -309,7 +309,7 @@ class CCMS
|
||||
public static function showMenu($menulocation_alias)
|
||||
{
|
||||
$MenuItems = CCMS::getMenuItems($menulocation_alias);
|
||||
?>
|
||||
?>
|
||||
<ul class="navbar-nav d-flex align-items-center">
|
||||
<?php foreach ($MenuItems as $menuItem): ?>
|
||||
<?php $menuItem->alias = str_replace("-", "_", $menuItem->alias); ?>
|
||||
@ -330,7 +330,7 @@ class CCMS
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php
|
||||
<?php
|
||||
}
|
||||
public static function getMenuItems($menulocation_alias, $parentId = 0)
|
||||
{
|
||||
@ -739,9 +739,10 @@ class CCMS
|
||||
`name` varchar(255) NULL DEFAULT NULL,
|
||||
`email` varchar(255) NULL DEFAULT NULL,
|
||||
`phone` varchar(255) NULL DEFAULT NULL,
|
||||
`message` varchar(255) NULL DEFAULT NULL,
|
||||
`qualification` varchar(255) NULL DEFAULT NULL,
|
||||
`score` varchar(255) NULL DEFAULT NULL,
|
||||
`passed_year` varchar(255) NULL DEFAULT NULL,
|
||||
`status` int(11) NOT NULL DEFAULT 1,
|
||||
`is_read` boolean NOT NULL DEFAULT 0,
|
||||
`created_at` timestamp NULL DEFAULT NULL,
|
||||
`updated_at` timestamp NULL DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
@ -1463,6 +1464,56 @@ CREATE TABLE IF NOT EXISTS `tbl_visagrantposts` (
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||||
');
|
||||
|
||||
DB::statement('
|
||||
CREATE TABLE IF NOT EXISTS `tbl_success_stories` (
|
||||
`stories_id` int(11) AUTO_INCREMENT PRIMARY KEY,
|
||||
`display` varchar(255) NULL DEFAULT NULL,
|
||||
`title` varchar(250) NULL DEFAULT NULL,
|
||||
`text` text NULL DEFAULT NULL,
|
||||
`extra_content` LONGTEXT NULL DEFAULT NULL,
|
||||
`cover` varchar(255) NULL DEFAULT NULL,
|
||||
`display_order` int(11) NOT NULL DEFAULT 1,
|
||||
`status` int(11) NOT NULL DEFAULT 1,
|
||||
`createdby` int(11) DEFAULT NULL,
|
||||
`updatedby` int(11) DEFAULT NULL,
|
||||
`created_at` timestamp NULL DEFAULT NULL,
|
||||
`updated_at` timestamp NULL DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
|
||||
');
|
||||
|
||||
DB::statement('
|
||||
CREATE TABLE IF NOT EXISTS `tbl_benefits` (
|
||||
`benefit_id` int(11) AUTO_INCREMENT PRIMARY KEY,
|
||||
`display` varchar(255) NULL DEFAULT NULL,
|
||||
`title` varchar(250) NULL DEFAULT NULL,
|
||||
`text` text NULL DEFAULT NULL,
|
||||
`extra_content` LONGTEXT NULL DEFAULT NULL,
|
||||
`cover` varchar(255) NULL DEFAULT NULL,
|
||||
`display_order` int(11) NOT NULL DEFAULT 1,
|
||||
`status` int(11) NOT NULL DEFAULT 1,
|
||||
`createdby` int(11) DEFAULT NULL,
|
||||
`updatedby` int(11) DEFAULT NULL,
|
||||
`created_at` timestamp NULL DEFAULT NULL,
|
||||
`updated_at` timestamp NULL DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
|
||||
');
|
||||
|
||||
DB::statement('
|
||||
CREATE TABLE IF NOT EXISTS `tbl_visa_grants` (
|
||||
`visa_id` int(11) AUTO_INCREMENT PRIMARY KEY,
|
||||
`display` varchar(255) NULL DEFAULT NULL,
|
||||
`title` varchar(250) NULL DEFAULT NULL,
|
||||
`text` text NULL DEFAULT NULL,
|
||||
`extra_content` LONGTEXT NULL DEFAULT NULL,
|
||||
`cover` varchar(255) NULL DEFAULT NULL,
|
||||
`display_order` int(11) NOT NULL DEFAULT 1,
|
||||
`status` int(11) NOT NULL DEFAULT 1,
|
||||
`createdby` int(11) DEFAULT NULL,
|
||||
`updatedby` int(11) DEFAULT NULL,
|
||||
`created_at` timestamp NULL DEFAULT NULL,
|
||||
`updated_at` timestamp NULL DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
|
||||
');
|
||||
if (!(DB::table('users')->first())) {
|
||||
DB::statement("INSERT INTO `tbl_users` (`id`, `name`, `email`, `username`, `email_verified_at`, `status`, `password`, `is_admin`, `remember_token`, `created_at`, `updated_at`) VALUES
|
||||
(1, 'Prajwal Adhikari', 'prajwalbro@hotmail.com', 'prajwalbro@hotmail.com', '2024-04-18 09:59:01', 1, '$2y$10$3zlF9VeXexzWKRDPZuDio.W7RZIC3tU.cjwMoLzG8ki8bVwAQn1WW', 1, NULL, '2024-04-18 09:58:39', '2024-04-18 09:58:46');");
|
||||
@ -1471,7 +1522,7 @@ CREATE TABLE IF NOT EXISTS `tbl_visagrantposts` (
|
||||
if (!(DB::table('settings')->first())) {
|
||||
DB::statement("INSERT INTO `tbl_settings` (`title`, `description`, `status`) values ('Bibhuti LMS', '', '1');");
|
||||
}
|
||||
|
||||
|
||||
if (!Schema::hasColumn('testimonials', 'rating')) {
|
||||
Schema::table('testimonials', function (Blueprint $table) {
|
||||
$table->integer('rating')->nullable();
|
||||
|
Reference in New Issue
Block a user