This commit is contained in:
tanch0 2024-06-18 11:31:51 +05:45
parent fcbaa0f679
commit 613dfd1834
116 changed files with 4829 additions and 1558 deletions

View File

@ -0,0 +1,195 @@
<?php
namespace App\Http\Controllers;
use App\Http\Controllers\Controller;
use App\Repositories\ArticleRepository;
use Illuminate\Http\Request;
use App\Models\Articles;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Validator;
use App\Service\CommonModelService;
use Illuminate\Support\Str;
use Illuminate\Support\Facades\Auth;
use Log;
use Exception;
class ArticlesController extends Controller
{
protected $modelService;
protected $articleRepository;
public function __construct(Articles $model, ArticleRepository $articleRepository)
{
$this->modelService = new CommonModelService($model);
$this->articleRepository = $articleRepository;
}
public function index(Request $request)
{
createActivityLog(ArticlesController::class, 'index', ' Articles index');
$data = Articles::where('status', '<>', -1)->orderBy('display_order')->get();
return view("crud.generated.articles.index", compact('data'));
}
public function create(Request $request)
{
createActivityLog(ArticlesController::class, 'create', ' Articles create');
$TableData = Articles::where('status', '<>', -1)->orderBy('display_order')->get();
return view("crud.generated.articles.create", compact('TableData'));
}
public function store(Request $request)
{
createActivityLog(ArticlesController::class, 'store', ' Articles store');
$validator = Validator::make($request->all(), [
//ADD REQUIRED FIELDS FOR VALIDATION
]);
if ($validator->fails()) {
return response()->json([
'error' => $validator->errors(),
], 500);
}
$request->mergeIfMissing([
'alias' => Str::slug($request->title),
]);
$request->request->add(['display_order' => getDisplayOrder('tbl_articles')]);
$requestData = $request->all();
array_walk_recursive($requestData, function (&$value) {
$value = str_replace(env('APP_URL') . '/', '', $value);
});
array_walk_recursive($requestData, function (&$value) {
$value = str_replace(env('APP_URL'), '', $value);
});
$requestData['createdBy'] = Auth::user()->id;
$requestData['updatedBy'] = Auth::user()->id;
$this->articleRepository->create($requestData);
if ($request->ajax()) {
return response()->json(['status' => true, 'message' => 'The Articles Created Successfully.'], 200);
}
return redirect()->route('articles.index')->with('success', 'The Articles created Successfully.');
}
public function sort(Request $request)
{
$idOrder = $request->input('id_order');
foreach ($idOrder as $index => $id) {
$companyArticle = Articles::find($id);
$companyArticle->display_order = $index + 1;
$companyArticle->save();
}
return response()->json(['status' => true, 'content' => 'The articles sorted successfully.'], 200);
}
public function updatealias(Request $request)
{
$articleId = $request->input('articleId');
$newAlias = $request->input('newAlias');
$companyArticle = Articles::find($articleId);
if (!$companyArticle) {
return response()->json(['status' => false, 'content' => 'Company article not found.'], 404);
}
$companyArticle->alias = $newAlias;
$companyArticle->save();
return response()->json(['status' => true, 'content' => 'Alias updated successfully.'], 200);
}
public function show(Request $request, $id)
{
createActivityLog(ArticlesController::class, 'show', ' Articles show');
$data = Articles::findOrFail($id);
return view("crud.generated.articles.show", compact('data'));
}
public function edit(Request $request, $id)
{
createActivityLog(ArticlesController::class, 'edit', ' Articles edit');
$TableData = Articles::where('status', '<>', -1)->orderBy('display_order')->get();
$data = Articles::findOrFail($id);
if ($request->ajax()) {
$html = view("crud.generated.articles.ajax.edit", compact('data'))->render();
return response()->json(['status' => true, 'content' => $html], 200);
}
return view("crud.generated.articles.edit", compact('data', 'TableData'));
}
public function update(Request $request, $id)
{
createActivityLog(ArticlesController::class, 'update', ' Articles update');
$validator = Validator::make($request->all(), [
//ADD VALIDATION FOR REQIRED FIELDS
]);
if ($validator->fails()) {
return response()->json([
'error' => $validator->errors(),
], 500);
}
$request->mergeIfMissing([
'alias' => Str::slug($request->title),
]);
$filterData = $request->except(['_method', '_token']);
array_walk_recursive($filterData, function (&$value) {
$value = str_replace(env('APP_URL') . '/', '', $value);
});
array_walk_recursive($filterData, function (&$value) {
$value = str_replace(env('APP_URL'), '', $value);
});
$this->articleRepository->update($id, $filterData);
if ($request->ajax()) {
return response()->json(['status' => true, 'message' => 'The Articles updated Successfully.'], 200);
}
// return redirect()->route('articles.index')->with('success','The Articles updated Successfully.');
return redirect()->route('articles.index')->with('success', 'The Articles updated successfully.');
}
public function destroy(Request $request, $id)
{
createActivityLog(ArticlesController::class, 'destroy', ' Articles destroy');
DB::beginTransaction();
try {
$OperationNumber = getOperationNumber();
$this->modelService->destroy($OperationNumber, $OperationNumber, $id);
} catch (Exception $e) {
DB::rollBack();
Log::info($e->getMessage());
createErrorLog(ArticlesController::class, 'destroy', $e->getMessage());
return response()->json(['status' => false, 'message' => $e->getMessage()], 500);
}
DB::commit();
return response()->json(['status' => true, 'message' => 'The Articles Deleted Successfully.'], 200);
}
public function toggle(Request $request, $id)
{
createActivityLog(ArticlesController::class, 'destroy', ' Articles destroy');
$data = Articles::findOrFail($id);
$requestData = ['status' => ($data->status == 1) ? 0 : 1];
DB::beginTransaction();
try {
$OperationNumber = getOperationNumber();
$this->modelService->update($OperationNumber, $OperationNumber, null, $requestData, $id);
} catch (Exception $e) {
DB::rollBack();
Log::info($e->getMessage());
createErrorLog(ArticlesController::class, 'destroy', $e->getMessage());
return response()->json(['status' => false, 'message' => $e->getMessage()], 500);
}
DB::commit();
return response()->json(['status' => true, 'message' => 'The Articles Deleted Successfully.'], 200);
}
}

View File

@ -7,10 +7,10 @@ use Illuminate\Http\Request;
use App\Models\Authors;
use App\Repositories\AuthorRepository;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Validator;
use App\Service\CommonModelService;
use Illuminate\Support\Str;
use Illuminate\Support\Facades\Auth;
use Log;
use Exception;

View File

@ -0,0 +1,189 @@
<?php
namespace App\Http\Controllers;
use App\Http\Controllers\Controller;
use App\Repositories\HoroscopeRepository;
use Illuminate\Http\Request;
use App\Models\Horoscopes;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Validator;
use App\Service\CommonModelService;
use Illuminate\Support\Str;
use Log;
use Exception;
class HoroscopesController extends Controller
{
protected $modelService;
protected $HoroscopesRepository;
public function __construct(Horoscopes $model, HoroscopeRepository $HoroscopesRepository)
{
$this->modelService = new CommonModelService($model);
$this->HoroscopesRepository = $HoroscopesRepository;
}
public function index(Request $request)
{
createActivityLog(HoroscopesController::class, 'index', ' Horoscopes index');
$data = Horoscopes::where('status', '<>', -1)->orderBy('display_order')->get();
return view("crud.generated.horoscope.index", compact('data'));
}
public function create(Request $request)
{
createActivityLog(HoroscopesController::class, 'create', ' Horoscopes create');
$TableData = Horoscopes::where('status', '<>', -1)->orderBy('display_order')->get();
return view("crud.generated.horoscope.create", compact('TableData'));
}
public function store(Request $request)
{
createActivityLog(HoroscopesController::class, 'store', ' Horoscopes store');
$validator = Validator::make($request->all(), [
//ADD REQUIRED FIELDS FOR VALIDATION
]);
if ($validator->fails()) {
return response()->json([
'error' => $validator->errors(),
], 500);
}
$request->mergeIfMissing([
'alias' => Str::slug($request->title),
]);
$request->request->add(['display_order' => getDisplayOrder('tbl_Horoscopes')]);
$requestData = $request->all();
array_walk_recursive($requestData, function (&$value) {
$value = str_replace(env('APP_URL') . '/', '', $value);
});
array_walk_recursive($requestData, function (&$value) {
$value = str_replace(env('APP_URL'), '', $value);
});
$requestData['updatedBy'] = auth()->user()->id;
$requestData['createdBy'] = auth()->user()->id;
$this->HoroscopesRepository->create($requestData);
if ($request->ajax()) {
return response()->json(['status' => true, 'message' => 'The Horoscopes Created Successfully.'], 200);
}
return redirect()->route('horoscope.index')->with('success', 'The Horoscopes created Successfully.');
}
public function sort(Request $request)
{
$idOrder = $request->input('id_order');
foreach ($idOrder as $index => $id) {
$companyArticle = Horoscopes::find($id);
$companyArticle->display_order = $index + 1;
$companyArticle->save();
}
return response()->json(['status' => true, 'content' => 'The articles sorted successfully.'], 200);
}
public function updatealias(Request $request)
{
$articleId = $request->input('articleId');
$newAlias = $request->input('newAlias');
$companyArticle = Horoscopes::find($articleId);
if (!$companyArticle) {
return response()->json(['status' => false, 'content' => 'Company article not found.'], 404);
}
$companyArticle->alias = $newAlias;
$companyArticle->save();
return response()->json(['status' => true, 'content' => 'Alias updated successfully.'], 200);
}
public function show(Request $request, $id)
{
createActivityLog(HoroscopesController::class, 'show', ' Horoscopes show');
$data = Horoscopes::findOrFail($id);
return view("crud.generated.Horoscopes.show", compact('data'));
}
public function edit(Request $request, $id)
{
createActivityLog(HoroscopesController::class, 'edit', ' Horoscopes edit');
$TableData = Horoscopes::where('status', '<>', -1)->orderBy('display_order')->get();
$data = Horoscopes::findOrFail($id);
if ($request->ajax()) {
$html = view("crud.generated.Horoscopes.ajax.edit", compact('data'))->render();
return response()->json(['status' => true, 'content' => $html], 200);
}
return view("crud.generated.horoscope.edit", compact('data', 'TableData'));
}
public function update(Request $request, $id)
{
createActivityLog(HoroscopesController::class, 'update', ' Horoscopes update');
$validator = Validator::make($request->all(), [
//ADD VALIDATION FOR REQIRED FIELDS
]);
if ($validator->fails()) {
return response()->json([
'error' => $validator->errors(),
], 500);
}
$request->mergeIfMissing([
'alias' => Str::slug($request->title),
]);
$filterData = $request->except(['_method', '_token']);
array_walk_recursive($filterData, function (&$value) {
$value = str_replace(env('APP_URL') . '/', '', $value);
});
array_walk_recursive($filterData, function (&$value) {
$value = str_replace(env('APP_URL'), '', $value);
});
$this->HoroscopesRepository->update($id, $filterData);
if ($request->ajax()) {
return response()->json(['status' => true, 'message' => 'The Horoscopes updated Successfully.'], 200);
}
// return redirect()->route('Horoscopes.index')->with('success','The Horoscopes updated Successfully.');
return redirect()->route('horoscope.index')->with('success', 'The Horoscopes updated successfully.');
}
public function destroy(Request $request, $id)
{
createActivityLog(HoroscopesController::class, 'destroy', ' Horoscopes destroy');
DB::beginTransaction();
try {
$OperationNumber = getOperationNumber();
$this->modelService->destroy($OperationNumber, $OperationNumber, $id);
} catch (Exception $e) {
DB::rollBack();
Log::info($e->getMessage());
createErrorLog(HoroscopesController::class, 'destroy', $e->getMessage());
return response()->json(['status' => false, 'message' => $e->getMessage()], 500);
}
DB::commit();
return response()->json(['status' => true, 'message' => 'The Horoscopes Deleted Successfully.'], 200);
}
public function toggle(Request $request, $id)
{
createActivityLog(HoroscopesController::class, 'destroy', ' Horoscopes destroy');
$data = Horoscopes::findOrFail($id);
$requestData = ['status' => ($data->status == 1) ? 0 : 1];
DB::beginTransaction();
try {
$OperationNumber = getOperationNumber();
$this->modelService->update($OperationNumber, $OperationNumber, null, $requestData, $id);
} catch (Exception $e) {
DB::rollBack();
Log::info($e->getMessage());
createErrorLog(HoroscopesController::class, 'destroy', $e->getMessage());
return response()->json(['status' => false, 'message' => $e->getMessage()], 500);
}
DB::commit();
return response()->json(['status' => true, 'message' => 'The Horoscopes Deleted Successfully.'], 200);
}
}

View File

@ -8,6 +8,7 @@ use App\Service\CommonModelService;
use Exception;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Str;
use Illuminate\Support\Facades\Validator;
use Log;
@ -23,7 +24,13 @@ class MenuitemsController extends Controller
public function initializeController()
{
$menuTypes = [
// ['display' => "Articles", 'value' => "tbl_articles"],
['display' => "Economies", 'value' => "tbl_economies"],
['display' => "News", 'value' => "tbl_news"],
['display' => "News Categories", 'value' => "tbl_newscategories"],
['display' => "News Type", 'value' => "tbl_news_type"],
['display' => "Provinces", 'value' => "tbl_provinces"],
['display' => "Articles", 'value' => "tbl_articles"],
['display' => "Teams", 'value' => "tbl_teams"],
['display' => "Custom", 'value' => ""],
@ -31,14 +38,27 @@ class MenuitemsController extends Controller
foreach ($menuTypes as &$menuType) {
switch ($menuType['value']) {
case 'tbl_articles':
$menuType['values'] = json_encode(DB::select("select article_id as value,title as display from " . $menuType['value'] . " where status=1 Order by title"));
case 'tbl_economies':
$menuType['values'] = json_encode(DB::select("select economy_id as value,title as display from " . $menuType['value'] . " where status=1 Order by title"));
break;
case 'tbl_news':
$menuType['values'] = json_encode(DB::select("select news_id as value,title as display from " . $menuType['value'] . " where status=1 Order by title"));
break;
case 'tbl_newscategories':
$menuType['values'] = json_encode(DB::select("select category_id as value,title as display from " . $menuType['value'] . " where status=1 Order by title"));
break;
case 'tbl_news_type':
$menuType['values'] = json_encode(DB::select("select news_type_id as value,title as display from " . $menuType['value'] . " where status=1 Order by title"));
break;
case 'tbl_provinces':
$menuType['values'] = json_encode(DB::select("select province_id as value,title as display from " . $menuType['value'] . " where status=1 Order by title"));
break;
case 'tbl_articles':
$menuType['values'] = json_encode(DB::select("select article_id as value,title as display from " . $menuType['value'] . " where status=1 Order by title"));
break;
case 'tbl_teams':
$menuType['values'] = json_encode(DB::select("select team_id as value,title as display from " . $menuType['value'] . " where status=1 Order by title"));
break;
default:
$menuType['values'] = "";
@ -83,7 +103,10 @@ class MenuitemsController extends Controller
'error' => $validator->errors(),
], 500);
}
$request->request->add(['alias' => slugify($request->title)]);
$request->mergeIfMissing([
'alias' => Str::slug($request->title),
]);
$request->request->add(['display_order' => getDisplayOrder('tbl_menuitems')]);
$requestData = $request->all();
array_walk_recursive($requestData, function (&$value) {
@ -165,6 +188,10 @@ class MenuitemsController extends Controller
'error' => $validator->errors(),
], 500);
}
$request->mergeIfMissing([
'alias' => Str::slug($request->title),
]);
$requestData = $request->all();
array_walk_recursive($requestData, function (&$value) {
$value = str_replace(env('APP_URL') . '/', '', $value);

View File

@ -51,7 +51,7 @@ class News_typeController extends Controller
], 500);
}
$request->mergeIfMissing([
'alias' => Str::slug($request->title),
'alias' => Str::slug($request->title_neplai),
]);
$request->request->add(['display_order' => getDisplayOrder('tbl_news_type')]);
$requestData = $request->all();
@ -138,7 +138,7 @@ class News_typeController extends Controller
], 500);
}
$request->mergeIfMissing([
'alias' => Str::slug($request->title),
'alias' => Str::slug($request->title_nepali),
]);
$filterData = $request->except(['_token', '_method']);
array_walk_recursive($filterData, function (&$value) {

View File

@ -53,7 +53,7 @@ class NewscategoriesController extends Controller
}
$request->mergeIfMissing([
'alias' => slugify($request->title),
'alias' => Str::slug($request->title),
]);
$request->request->add(['display_order' => getDisplayOrder('tbl_newscategories')]);

View File

@ -1,20 +1,27 @@
<?php
namespace App\Http\Controllers;
use App\Http\Controllers\Controller;
use App\Repositories\SettingRepository;
use Illuminate\Http\Request;
use App\Models\Settings;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Validator;
use App\Service\CommonModelService;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Str;
use Log;
use Exception;
class SettingsController extends Controller
{
protected $modelService;
public function __construct(Settings $model)
protected $settingRepository;
public function __construct(Settings $model, SettingRepository $settingRepository)
{
$this->modelService = new CommonModelService($model);
$this->settingRepository = $settingRepository;
}
public function index(Request $request)
{
@ -43,7 +50,9 @@
'error' => $validator->errors(),
],500);
}
$request->request->add(['alias' => slugify($request->title)]);
// $request->mergeIfMissing(['alias' => Str::slug($request->title)]);
$request->request->add(['display_order' => getDisplayOrder('tbl_settings')]);
$requestData=$request->all();
array_walk_recursive($requestData, function (&$value) {
@ -52,21 +61,16 @@
array_walk_recursive($requestData, function (&$value) {
$value = str_replace(env('APP_URL'), '', $value);
});
DB::beginTransaction();
try {
$operationNumber = getOperationNumber();
$this->modelService->create($operationNumber, $operationNumber, null, $requestData);
} catch (\Exception $e) {
DB::rollBack();
Log::info($e->getMessage());
createErrorLog(SettingsController::class, 'store', $e->getMessage());
return response()->json(['status' => false, 'message' => $e->getMessage()], 500);
}
DB::commit();
$requestData['createdby'] = Auth::user()->id;
$requestData['updatedby'] = Auth::user()->id;
$this->settingRepository->create($requestData);
if ($request->ajax()) {
return response()->json(['status' => true, 'message' => 'The Settings Created Successfully.'], 200);
}
return redirect()->route('settings.index')->with('success','The Settings created Successfully.');
return redirect()->back()->with('success','The Settings created Successfully.');
}
public function sort(Request $request)
@ -132,24 +136,23 @@
'error' => $validator->errors(),
],500);
}
$requestData=$request->all();
array_walk_recursive($requestData, function (&$value) {
// $request->mergeIfMissing([
// 'alias' => Str::slug($request->title),
// ]);
$filterData = $request->except('_method','_token');
array_walk_recursive($filterData, function (&$value) {
$value = str_replace(env('APP_URL').'/', '', $value);
});
array_walk_recursive($requestData, function (&$value) {
array_walk_recursive($filterData, function (&$value) {
$value = str_replace(env('APP_URL'), '', $value);
});
DB::beginTransaction();
try {
$OperationNumber = getOperationNumber();
$this->modelService->update($OperationNumber, $OperationNumber, null, $requestData, $request->input('setting_id'));
} catch (Exception $e) {
DB::rollBack();
Log::info($e->getMessage());
createErrorLog(SettingsController::class, 'update', $e->getMessage());
return response()->json(['status' => false, 'message' => $e->getMessage()], 500);
}
DB::commit();
$this->settingRepository->update($id, $filterData);
if ($request->ajax()) {
return response()->json(['status' => true, 'message' => 'The Settings updated Successfully.'], 200);
}

View File

@ -0,0 +1,197 @@
<?php
namespace App\Http\Controllers;
use App\Http\Controllers\Controller;
use App\Repositories\TeamsRepository;
use Illuminate\Http\Request;
use App\Models\Teams;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Validator;
use App\Service\CommonModelService;
use Illuminate\Support\Str;
use Illuminate\Support\Facades\Auth;
use Log;
use Exception;
class TeamsController extends Controller
{
protected $modelService;
protected $teamsRepository;
public function __construct(Teams $model, TeamsRepository $teamsRepository)
{
$this->modelService = new CommonModelService($model);
$this->teamsRepository = $teamsRepository;
}
public function index(Request $request)
{
createActivityLog(TeamsController::class, 'index', ' Teams index');
$data = Teams::where('status', '<>', -1)->orderBy('display_order')->get();
return view("crud.generated.teams.index", compact('data'));
}
public function create(Request $request)
{
createActivityLog(TeamsController::class, 'create', ' Teams create');
$TableData = Teams::where('status', '<>', -1)->orderBy('display_order')->get();
return view("crud.generated.teams.create", compact('TableData'));
}
public function store(Request $request)
{
createActivityLog(TeamsController::class, 'store', ' Teams store');
$validator = Validator::make($request->all(), [
//ADD REQUIRED FIELDS FOR VALIDATION
]);
if ($validator->fails()) {
return response()->json([
'error' => $validator->errors(),
], 500);
}
$request->mergeIfMissing([
'alias' => Str::slug($request->title)
]);
$request->request->add(['display_order' => getDisplayOrder('tbl_teams')]);
$requestData = $request->all();
array_walk_recursive($requestData, function (&$value) {
$value = str_replace(env('APP_URL') . '/', '', $value);
});
array_walk_recursive($requestData, function (&$value) {
$value = str_replace(env('APP_URL'), '', $value);
});
$requestData['createdBy'] = Auth::user()->id;
$requestData['updatedBy'] = Auth::user()->id;
$this->teamsRepository->create($requestData);
if ($request->ajax()) {
return response()->json(['status' => true, 'message' => 'The Teams Created Successfully.'], 200);
}
return redirect()->route('teams.index')->with('success', 'The Teams created Successfully.');
}
public function sort(Request $request)
{
$idOrder = $request->input('id_order');
foreach ($idOrder as $index => $id) {
$companyArticle = Teams::find($id);
$companyArticle->display_order = $index + 1;
$companyArticle->save();
}
return response()->json(['status' => true, 'content' => 'The articles sorted successfully.'], 200);
}
public function updatealias(Request $request)
{
$articleId = $request->input('articleId');
$newAlias = $request->input('newAlias');
$companyArticle = Teams::find($articleId);
if (!$companyArticle) {
return response()->json(['status' => false, 'content' => 'Company article not found.'], 404);
}
$companyArticle->alias = $newAlias;
$companyArticle->save();
return response()->json(['status' => true, 'content' => 'Alias updated successfully.'], 200);
}
public function show(Request $request, $id)
{
createActivityLog(TeamsController::class, 'show', ' Teams show');
$data = Teams::findOrFail($id);
return view("crud.generated.teams.show", compact('data'));
}
public function edit(Request $request, $id)
{
createActivityLog(TeamsController::class, 'edit', ' Teams edit');
$TableData = Teams::where('status', '<>', -1)->orderBy('display_order')->get();
$data = Teams::findOrFail($id);
if ($request->ajax()) {
$html = view("crud.generated.teams.ajax.edit", compact('data'))->render();
return response()->json(['status' => true, 'content' => $html], 200);
}
return view("crud.generated.teams.edit", compact('data', 'TableData'));
}
public function update(Request $request, $id)
{
createActivityLog(TeamsController::class, 'update', ' Teams update');
$validator = Validator::make($request->all(), [
//ADD VALIDATION FOR REQIRED FIELDS
]);
if ($validator->fails()) {
return response()->json([
'error' => $validator->errors(),
], 500);
}
$request->mergeIfMissing([
'alias' => Str::slug($request->title)
]);
$filterData = $request->except(['_token', '_method']);
array_walk_recursive($filterData, function (&$value) {
$value = str_replace(env('APP_URL') . '/', '', $value);
});
array_walk_recursive($filterData, function (&$value) {
$value = str_replace(env('APP_URL'), '', $value);
});
$this->teamsRepository->update($filterData, $id);
if ($request->ajax()) {
return response()->json(['status' => true, 'message' => 'The Teams updated Successfully.'], 200);
}
// return redirect()->route('teams.index')->with('success','The Teams updated Successfully.');
return redirect()->back()->with('success', 'The Teams updated successfully.');
}
public function destroy(Request $request, $id)
{
createActivityLog(TeamsController::class, 'destroy', ' Teams destroy');
DB::beginTransaction();
try {
$OperationNumber = getOperationNumber();
$this->modelService->destroy($OperationNumber, $OperationNumber, $id);
} catch (Exception $e) {
DB::rollBack();
Log::info($e->getMessage());
createErrorLog(TeamsController::class, 'destroy', $e->getMessage());
return response()->json(['status' => false, 'message' => $e->getMessage()], 500);
}
DB::commit();
return response()->json(['status' => true, 'message' => 'The Teams Deleted Successfully.'], 200);
}
public function toggle(Request $request, $id)
{
createActivityLog(TeamsController::class, 'destroy', ' Teams destroy');
$data = Teams::findOrFail($id);
$requestData = ['status' => ($data->status == 1) ? 0 : 1];
DB::beginTransaction();
try {
$OperationNumber = getOperationNumber();
$this->modelService->update($OperationNumber, $OperationNumber, null, $requestData, $id);
} catch (Exception $e) {
DB::rollBack();
Log::info($e->getMessage());
createErrorLog(TeamsController::class, 'destroy', $e->getMessage());
return response()->json(['status' => false, 'message' => $e->getMessage()], 500);
}
DB::commit();
return response()->json(['status' => true, 'message' => 'The Teams Deleted Successfully.'], 200);
}
}

View File

@ -0,0 +1,187 @@
<?php
namespace App\Http\Controllers;
use App\Http\Controllers\Controller;
use App\Repositories\VideoRepository;
use Illuminate\Http\Request;
use App\Models\Videos;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Validator;
use App\Service\CommonModelService;
use Illuminate\Support\Str;
use Illuminate\Support\Facades\Auth;
use Log;
use Exception;
class VideosController extends Controller
{
protected $modelService;
protected $videoRepository;
public function __construct(Videos $model, VideoRepository $videoRepository)
{
$this->modelService = new CommonModelService($model);
$this->videoRepository = $videoRepository;
}
public function index(Request $request)
{
createActivityLog(VideosController::class, 'index', ' Videos index');
$data = Videos::where('status', '<>', -1)->orderBy('display_order')->get();
return view("crud.generated.videos.index", compact('data'));
}
public function create(Request $request)
{
createActivityLog(VideosController::class, 'create', ' Videos create');
$TableData = Videos::where('status', '<>', -1)->orderBy('display_order')->get();
return view("crud.generated.videos.create", compact('TableData'));
}
public function store(Request $request)
{
createActivityLog(VideosController::class, 'store', ' Videos store');
$validator = Validator::make($request->all(), [
//ADD REQUIRED FIELDS FOR VALIDATION
]);
if ($validator->fails()) {
return response()->json([
'error' => $validator->errors(),
], 500);
}
$request->mergeIfMissing(['alias' => slugify($request->title)]);
$request->request->add(['display_order' => getDisplayOrder('tbl_videos')]);
$requestData = $request->all();
array_walk_recursive($requestData, function (&$value) {
$value = str_replace(env('APP_URL') . '/', '', $value);
});
array_walk_recursive($requestData, function (&$value) {
$value = str_replace(env('APP_URL'), '', $value);
});
$requestData['createdBy'] = Auth::user()->id;
$requestData['updatedBy'] = Auth::user()->id;
$this->videoRepository->create($requestData);
if ($request->ajax()) {
return response()->json(['status' => true, 'message' => 'The Videos Created Successfully.'], 200);
}
return redirect()->route('videos.index')->with('success', 'The Videos created Successfully.');
}
public function sort(Request $request)
{
$idOrder = $request->input('id_order');
foreach ($idOrder as $index => $id) {
$companyArticle = Videos::find($id);
$companyArticle->display_order = $index + 1;
$companyArticle->save();
}
return response()->json(['status' => true, 'content' => 'The articles sorted successfully.'], 200);
}
public function updatealias(Request $request)
{
$articleId = $request->input('articleId');
$newAlias = $request->input('newAlias');
$companyArticle = Videos::find($articleId);
if (!$companyArticle) {
return response()->json(['status' => false, 'content' => 'Company article not found.'], 404);
}
$companyArticle->alias = $newAlias;
$companyArticle->save();
return response()->json(['status' => true, 'content' => 'Alias updated successfully.'], 200);
}
public function show(Request $request, $id)
{
createActivityLog(VideosController::class, 'show', ' Videos show');
$data = Videos::findOrFail($id);
return view("crud.generated.videos.show", compact('data'));
}
public function edit(Request $request, $id)
{
createActivityLog(VideosController::class, 'edit', ' Videos edit');
$TableData = Videos::where('status', '<>', -1)->orderBy('display_order')->get();
$data = Videos::findOrFail($id);
if ($request->ajax()) {
$html = view("crud.generated.videos.ajax.edit", compact('data'))->render();
return response()->json(['status' => true, 'content' => $html], 200);
}
return view("crud.generated.videos.edit", compact('data', 'TableData'));
}
public function update(Request $request, $id)
{
createActivityLog(VideosController::class, 'update', ' Videos update');
$validator = Validator::make($request->all(), [
//ADD VALIDATION FOR REQIRED FIELDS
]);
if ($validator->fails()) {
return response()->json([
'error' => $validator->errors(),
], 500);
}
$request->mergeIfMissing(['alias' => slugify($request->title)]);
$filterData = $request->except(['_token', '_method']);
array_walk_recursive($filterData, function (&$value) {
$value = str_replace(env('APP_URL') . '/', '', $value);
});
array_walk_recursive($filterData, function (&$value) {
$value = str_replace(env('APP_URL'), '', $value);
});
$this->videoRepository->update($id, $filterData);
if ($request->ajax()) {
return response()->json(['status' => true, 'message' => 'The Videos updated Successfully.'], 200);
}
// return redirect()->route('videos.index')->with('success','The Videos updated Successfully.');
return redirect()->route('videos.index')->with('success', 'The Videos updated successfully.');
}
public function destroy(Request $request, $id)
{
createActivityLog(VideosController::class, 'destroy', ' Videos destroy');
DB::beginTransaction();
try {
$OperationNumber = getOperationNumber();
$this->modelService->destroy($OperationNumber, $OperationNumber, $id);
} catch (Exception $e) {
DB::rollBack();
Log::info($e->getMessage());
createErrorLog(VideosController::class, 'destroy', $e->getMessage());
return response()->json(['status' => false, 'message' => $e->getMessage()], 500);
}
DB::commit();
return response()->json(['status' => true, 'message' => 'The Videos Deleted Successfully.'], 200);
}
public function toggle(Request $request, $id)
{
createActivityLog(VideosController::class, 'destroy', ' Videos destroy');
$data = Videos::findOrFail($id);
$requestData = ['status' => ($data->status == 1) ? 0 : 1];
DB::beginTransaction();
try {
$OperationNumber = getOperationNumber();
$this->modelService->update($OperationNumber, $OperationNumber, null, $requestData, $id);
} catch (Exception $e) {
DB::rollBack();
Log::info($e->getMessage());
createErrorLog(VideosController::class, 'destroy', $e->getMessage());
return response()->json(['status' => false, 'message' => $e->getMessage()], 500);
}
DB::commit();
return response()->json(['status' => true, 'message' => 'The Videos Deleted Successfully.'], 200);
}
}

View File

@ -1,11 +1,22 @@
<?php
namespace App\Http\Controllers;
use App\Mail\sendEmail;
use App\Models\Articles;
use App\Models\Economies;
use App\Models\Horoscopes;
use App\Models\Menuitems;
use App\Models\News;
use App\Models\News_type;
use App\Models\Newscategories;
use App\Models\Provinces;
use Illuminate\Http\Request;
use App\Models\Teams;
use Illuminate\Support\Facades\Validator;
use Illuminate\Support\Facades\View;
use Illuminate\Support\Facades\Mail;
use App\Models\Videos;
class WebsiteController extends Controller
{
@ -14,10 +25,24 @@ class WebsiteController extends Controller
public function __construct()
{
$this->path = config('app.client_path');
$headerMenuItems = Menuitems::where(['parent_menu' => 0, "status" => 1, "menulocations_id" => 1])->with('children')->orderBy('display_order')->get();
// dd($headerMenuItems->toArray());
$footerMenuItems = Menuitems::where(['parent_menu' => 0, "status" => 1, "menulocations_id" => 2])->with('children')->orderBy('display_order')->get();
// dd($footerMenuItems->toArray());
$recentNews = News::where('status', 1)->inRandomOrder()->limit(4)->get();
View::share(
[
'headerMenuItems' => $headerMenuItems,
'footerMenuItems' => $footerMenuItems,
'recentNews' => $recentNews,
]
);
}
public function home(){
$data['featuredNews'] = News::where('featured_news',"True")->where('status',1)->first();
public function home()
{
$data['featuredNews'] = News::where('featured_news', "True")->where('status', 1)->first();
$data['provinces'] = Provinces::with('provinceNews')->limit(5)->get();
@ -26,9 +51,9 @@ class WebsiteController extends Controller
$data['politics'] = Newscategories::with('politicNews')->get();
// $data['economics'] = Newscategories::with('news')->inRandomOrder()->get();
$data['economics'] = Economies::with('news')
->orderBy('display_order')
->where('status',1)
->get();
->orderBy('display_order')
->where('status', 1)
->get();
$data['sports'] = Newscategories::with('sportNews')->get();
@ -36,23 +61,121 @@ class WebsiteController extends Controller
$data['technology'] = Newscategories::with('technologyNews')->get();
$data['entertainment'] = Newscategories::with('entertainmentNews')->get();
$data['branches'] = Newscategories::with('branchesNews')->get();
$data['videos'] = Videos::where('status', 1)->orderBy('display_order')->get();
// dd($data['entertainment']);
$data['horoscope'] = Horoscopes::where('status', 1)->orderBy('display_order')->get();
// dd($data['videos']);
$data['internationalNews'] = News_type::with('news')->get();
// dd($data['internationalNews']->toArray());
// dd($data['internationalNews']);
return view($this->path.'.home',$data);
return view($this->path . '.home', $data);
}
public function single(){
return view($this->path.'.single');
public function single($alias)
{
$categoryId = Newscategories::where('alias', $alias)->pluck('category_id')->first();
$categoryTitle = Newscategories::where('alias', $alias)->pluck('nepali_title')->first();
$data = News::where('newscategories_id', $categoryId)->where('status', 1)->orderBy('display_order')->paginate(9);
return view($this->path . '.single', compact('data', 'categoryTitle'));
}
public function newsDetail(){
return view($this->path.'.news-detail');
public function newsDetail($alias)
{
$news = News::where('alias', $alias)->where('status', 1)->first();
$recentNews = News::where('status', 1)->where('news_id', '!=', $news->news_id)->inRandomOrder()->limit(12)->latest()->get();
return view($this->path . '.news-detail', compact('news', 'recentNews'));
}
public function showHororscope()
{
$rashifal = Horoscopes::where('status', 1)->orderBy('display_order')->limit(12)->get();
return view($this->path . '.rashifal', compact('rashifal'));
}
public function showInternational($alias)
{
$categoryTitle = News_type::where('alias', $alias)->value('title_nepali');
$data = News::where('news_type_id', 1)
->where('status', 1)->orderBy('display_order')->paginate(9);
return view($this->path . '.single', compact('data', 'categoryTitle'));
}
public function showVideos()
{
dd('test');
}
public function showAboutus($alias)
{
$data['aboutus'] = Articles::where('alias', $alias)->where('status', 1)->first();
$data['teams'] = Teams::where('status', 1)->orderBy('display_order')->get();
return view($this->path . '.about-us', $data);
}
public function showArtilce($alias)
{
$data['article'] = Articles::with('childrens')->where('alias', $alias)->where('status', 1)->first();
return view($this->path . '.article', $data);
}
public function showContact()
{
return view($this->path . '.contact');
}
public function sendEmail(Request $request)
{
if ($request->input('accepted') == 'on') {
$requestData = $request->except(['_token', 'accepted']);
$validator = Validator::make($requestData, [
'title' => 'required|string|max:255',
'email' => 'required|email',
'phone_number' => 'required|regex:/\d{10}/',
'secondary_number' => 'nullable|regex:/\d{10}/',
'message' => 'required|string',
]);
if ($validator->fails()) {
return redirect()->back()->withErrors($validator)->withInput();
}
$validated = $validator->validated();
try {
Mail::to(SITEVARS->email)->send(new SendEmail($validated));
return response()->json(['success' => 'Email sent successfully']);
} catch (\Exception $e) {
return response()->json(['error' => 'Failed to send email'], 500);
}
} else {
return response()->json(['error' => 'Acceptance checkbox is required'], 400);
}
}
public function showProvinces($id)
{
$categoryTitle = Provinces::where('province_id', $id)->pluck('province_nepali_name')->first();
$data = News::where('provinces_id',$id)->where('status',1)->orderBy('display_order')->paginate(9);
return view($this->path . '.single', compact('data','categoryTitle'));
}
}
// public function single($alias)
// {
// $categoryId = Newscategories::where('alias', $alias)->pluck('category_id')->first();
// $categoryTitle = Newscategories::where('alias', $alias)->pluck('nepali_title')->first();
// $data = News::where('newscategories_id', $categoryId)->where('status', 1)->orderBy('display_order')->paginate(9);
// return view($this->path . '.single', compact('data', 'categoryTitle'));
// }

54
app/Mail/sendEmail.php Normal file
View File

@ -0,0 +1,54 @@
<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Mail\Mailables\Content;
use Illuminate\Mail\Mailables\Envelope;
use Illuminate\Queue\SerializesModels;
class sendEmail extends Mailable
{
use Queueable, SerializesModels;
public $data;
/**
* Create a new message instance.
*/
public function __construct($data)
{
$this->data = $data;
}
/**
* Get the message envelope.
*/
public function envelope(): Envelope
{
return new Envelope(
subject: 'Send Email',
);
}
/**
* Get the message content definition.
*/
public function content(): Content
{
return new Content(
view: 'hulaki_khabar.email.contact',
);
}
/**
* Get the attachments for the message.
*
* @return array<int, \Illuminate\Mail\Mailables\Attachment>
*/
public function attachments(): array
{
return [];
}
}

67
app/Models/Articles.php Normal file
View File

@ -0,0 +1,67 @@
<?php
namespace App\Models;
use App\Models\User;
use Illuminate\Database\Eloquent\Casts\Attribute;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use App\Traits\CreatedUpdatedBy;
class Articles extends Model
{
use HasFactory, CreatedUpdatedBy;
protected $primaryKey = 'article_id';
public $timestamps = true;
protected $fillable = [
'parent_article',
'title',
'subtitle',
'alias',
'text',
'cover_photo',
'display_order',
'status',
'seo_keywords',
'seo_title',
'seo_descriptions',
'og_tags',
'createdby',
'updatedby',
'created_at',
'updated_at',
];
protected $appends = ['status_name'];
protected function getStatusNameAttribute()
{
return $this->status == 1 ? '<span class="badge text-bg-success-soft"> Active </span>' : '<span class="badge text-bg-danger-soft">Inactive</span>';
}
protected function createdBy(): Attribute
{
return Attribute::make(
get: fn ($value) => User::find($value) ? User::find($value)->name : '',
);
}
protected function updatedBy(): Attribute
{
return Attribute::make(
get: fn ($value) => User::find($value) ? User::find($value)->name : '',
);
}
public function childrens()
{
return $this->hasMany(Articles::class, 'parent_article');
}
public function parent()
{
return $this->belongsTo(Articles::class, 'parent_article');
}
}

53
app/Models/Horoscopes.php Normal file
View File

@ -0,0 +1,53 @@
<?php
namespace App\Models;
use App\Models\User;
use Illuminate\Database\Eloquent\Casts\Attribute;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use App\Traits\CreatedUpdatedBy;
class Horoscopes extends Model
{
use HasFactory, CreatedUpdatedBy;
protected $table = 'horoscopes';
protected $primaryKey = 'horoscope_id';
public $timestamps = true;
protected $fillable = [
'title',
'title_nepali',
'alias',
'image',
'thumb',
'description',
'status',
'display_order',
'createdBy',
'updatedBy',
'created_at',
'updated_at',
];
protected $appends = ['status_name'];
protected function getStatusNameAttribute()
{
return $this->status == 1 ? '<span class="badge text-bg-success-soft"> Active </span>' : '<span class="badge text-bg-danger-soft">Inactive</span>';
}
protected function createdBy(): Attribute
{
return Attribute::make(
get: fn ($value) => User::find($value) ? User::find($value)->name : '',
);
}
protected function updatedBy(): Attribute
{
return Attribute::make(
get: fn ($value) => User::find($value) ? User::find($value)->name : '',
);
}
}

View File

@ -68,4 +68,5 @@ class Menuitems extends Model
->orderBy('display_order')
->with('children');
}
}

View File

@ -1,41 +1,42 @@
<?php
namespace App\Models;
use App\Models\User;
use Illuminate\Database\Eloquent\Casts\Attribute;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use App\Traits\CreatedUpdatedBy;
namespace App\Models;
class Sitemenus extends Model
{
use HasFactory, CreatedUpdatedBy;
use App\Models\User;
use Illuminate\Database\Eloquent\Casts\Attribute;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use App\Traits\CreatedUpdatedBy;
protected $primaryKey = 'menu_id';
public $timestamps = true;
protected $fillable =[
'parent_menu',
'menulocations_id',
'title',
'alias',
'type',
'ref',
'target',
'display_order',
'status',
'created_at',
'updated_at',
'createdby',
'updatedby',
class Sitemenus extends Model
{
use HasFactory, CreatedUpdatedBy;
];
protected $primaryKey = 'menu_id';
public $timestamps = true;
protected $fillable = [
'parent_menu',
'menulocations_id',
'title',
'alias',
'type',
'ref',
'target',
'display_order',
'status',
'created_at',
'updated_at',
'createdby',
'updatedby',
protected $appends = ['status_name'];
];
protected function getStatusNameAttribute()
{
return $this->status == 1 ? '<span class="badge text-bg-success-soft"> Active </span>' : '<span class="badge text-bg-danger-soft">Inactive</span>';
}
protected $appends = ['status_name'];
protected function getStatusNameAttribute()
{
return $this->status == 1 ? '<span class="badge text-bg-success-soft"> Active </span>' : '<span class="badge text-bg-danger-soft">Inactive</span>';
}
protected function createdBy(): Attribute
{
@ -50,4 +51,4 @@
get: fn ($value) => User::find($value) ? User::find($value)->name : '',
);
}
}
}

51
app/Models/Teams.php Normal file
View File

@ -0,0 +1,51 @@
<?php
namespace App\Models;
use App\Models\User;
use Illuminate\Database\Eloquent\Casts\Attribute;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use App\Traits\CreatedUpdatedBy;
class Teams extends Model
{
use HasFactory, CreatedUpdatedBy;
protected $primaryKey = 'team_id';
public $timestamps = true;
protected $fillable =[
'title',
'alias',
'photo',
'designation',
'description',
'display_order',
'status',
'createdby',
'updatedby',
'created_at',
'updated_at',
];
protected $appends = ['status_name'];
protected function getStatusNameAttribute()
{
return $this->status == 1 ? '<span class="badge text-bg-success-soft"> Active </span>' : '<span class="badge text-bg-danger-soft">Inactive</span>';
}
protected function createdBy(): Attribute
{
return Attribute::make(
get: fn ($value) => User::find($value) ? User::find($value)->name : '',
);
}
protected function updatedBy(): Attribute
{
return Attribute::make(
get: fn ($value) => User::find($value) ? User::find($value)->name : '',
);
}
}

51
app/Models/Videos.php Normal file
View File

@ -0,0 +1,51 @@
<?php
namespace App\Models;
use App\Models\User;
use Illuminate\Database\Eloquent\Casts\Attribute;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use App\Traits\CreatedUpdatedBy;
class Videos extends Model
{
use HasFactory, CreatedUpdatedBy;
protected $primaryKey = 'video_id';
public $timestamps = true;
protected $fillable = [
'title',
'video_url',
'image',
'alias',
'status',
'display_order',
'createdBy',
'updatedBy',
'created_at',
'updated_at',
];
protected $appends = ['status_name'];
protected function getStatusNameAttribute()
{
return $this->status == 1 ? '<span class="badge text-bg-success-soft"> Active </span>' : '<span class="badge text-bg-danger-soft">Inactive</span>';
}
protected function createdBy(): Attribute
{
return Attribute::make(
get: fn ($value) => User::find($value) ? User::find($value)->name : '',
);
}
protected function updatedBy(): Attribute
{
return Attribute::make(
get: fn ($value) => User::find($value) ? User::find($value)->name : '',
);
}
}

View File

@ -0,0 +1,35 @@
<?php
namespace App\Repositories;
use App\Models\Articles;
use App\Repositories\Interface\ArticleInterface;
class ArticleRepository implements ArticleInterface
{
public function getAll()
{
return Articles::where('status', '<>', -1)->orderBy('display_order')->get();
}
public function getArticleById($artilceId)
{
return Articles::findOrFail($artilceId);
}
public function delete($artilceId)
{
return Articles::destroy($artilceId);
}
public function create(array $provinceDetails)
{
return Articles::create($provinceDetails);
}
public function update($artilceId, array $newDetails)
{
return Articles::where('article_id', $artilceId)->update($newDetails);
}
}

View File

@ -0,0 +1,35 @@
<?php
namespace App\Repositories;
use App\Models\Horoscopes;
use App\Repositories\Interface\HoroscopeInterface;
class HoroscopeRepository implements HoroscopeInterface
{
public function getAll()
{
return Horoscopes::where('status', '<>', -1)->orderBy('display_order')->get();
}
public function getHoroscopeById($horoscopeId)
{
return Horoscopes::findOrFail($horoscopeId);
}
public function delete($horoscopeId)
{
return Horoscopes::destroy($horoscopeId);
}
public function create(array $provinceDetails)
{
return Horoscopes::create($provinceDetails);
}
public function update($horoscopeId, array $newDetails)
{
return Horoscopes::where('horoscope_id', $horoscopeId)->update($newDetails);
}
}

View File

@ -0,0 +1,12 @@
<?php
namespace App\Repositories\Interface;
interface ArticleInterface
{
public function getAll();
public function getArticleById($artilceId);
public function delete($artilceId);
public function create(array $artilceDetails);
public function update($artilceId, array $newDetails);
}

View File

@ -0,0 +1,12 @@
<?php
namespace App\Repositories\Interface;
interface HoroscopeInterface
{
public function getAll();
public function getHoroscopeById($horoscopeId);
public function delete($horoscopeId);
public function create(array $horoscopeDetails);
public function update($horoscopeId, array $newDetails);
}

View File

@ -0,0 +1,9 @@
<?php
namespace App\Repositories\Interface;
interface SettingInterface
{
public function create(array $settingDetails);
public function update($settingId, array $newDetails);
}

View File

@ -0,0 +1,12 @@
<?php
namespace App\Repositories\Interface;
interface TeamsInterface
{
public function getAll();
public function getTeamById($teamId);
public function delete($teamId);
public function create(array $teamsDetail);
public function update($teamId, array $newDetails);
}

View File

@ -0,0 +1,12 @@
<?php
namespace App\Repositories\Interface;
interface VideosInterface
{
public function getAll();
public function getVideoById($videoId);
public function delete($videoId);
public function create(array $videoDetails);
public function update($videoId, array $newDetails);
}

View File

@ -0,0 +1,19 @@
<?php
namespace App\Repositories;
use App\Models\Settings;
use App\Repositories\Interface\SettingInterface;
class SettingRepository implements SettingInterface
{
public function create(array $settingDetails)
{
Settings::create($settingDetails);
}
public function update($settingId, array $newDetails)
{
return Settings::where('setting_id', $settingId)->update($newDetails);
}
}

View File

@ -0,0 +1,33 @@
<?php
namespace App\Repositories;
use App\Models\Teams;
use App\Repositories\Interface\TeamsInterface;
class TeamsRepository implements TeamsInterface
{
public function getAll()
{
return Teams::where('status','<>', -1)->orderBy('display_order')->get();
}
public function getTeamById($teamId)
{
return Teams::findOrFail($teamId);
}
public function delete($teamId)
{
return Teams::destroy($teamId);
}
public function create(array $provinceDetails)
{
return Teams::create($provinceDetails);
}
public function update($teamId, array $newDetails){
return Teams::where('team_id', $teamId)->update($newDetails);
}
}

View File

@ -0,0 +1,34 @@
<?php
namespace App\Repositories;
use App\Models\Videos;
use App\Repositories\Interface\VideosInterface;
class VideoRepository implements VideosInterface
{
public function getAll()
{
return Videos::where('status','<>', -1)->orderBy('display_order')->get();
}
public function getVideoById($videoId)
{
return Videos::findOrFail($videoId);
}
public function delete($videoId)
{
return Videos::destroy($videoId);
}
public function create(array $provinceDetails)
{
return Videos::create($provinceDetails);
}
public function update($videoId, array $newDetails){
return Videos::where('video_id', $videoId)->update($newDetails);
}
}

View File

@ -0,0 +1,35 @@
<?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::create('videos', function (Blueprint $table) {
$table->id('video_id');
$table->string('title', 255)->nullable();
$table->string('video_url', 255)->nullable();
$table->string('image', 255)->nullable();
$table->string('alias', 255)->nullable();
$table->integer('status')->default(1);
$table->integer('display_order')->default(1);
$table->integer('createdBy')->nullable();
$table->integer('updatedBy')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('videos');
}
};

View File

@ -0,0 +1,35 @@
<?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::create('horoscopes', function (Blueprint $table) {
$table->id('horoscope_id');
$table->string('title', 255)->nullable();
$table->string('title_nepali', 255)->charset('utf8mb4')->collate('utf8mb4_unicode_ci')->nullable();
$table->string('alias', 255)->nullable();
$table->string('description', 255)->nullable();
$table->integer('status')->default(1);
$table->integer('display_order')->default(1);
$table->integer('createdBy')->nullable();
$table->integer('updatedBy')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('horoscopes');
}
};

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('horoscopes', function (Blueprint $table) {
$table->string('image')->nullable()->after('alias');
$table->string('thumb')->nullable()->after('image');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('horoscopes', function (Blueprint $table) {
$table->dropColumn(['image', 'thumb']);
});
}
};

View File

@ -0,0 +1,41 @@
<?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::create('articles', function (Blueprint $table) {
$table->id('article_id');
$table->integer('parent_article')->default(0);
$table->string('title', 250)->nullable();
$table->text('subtitle')->nullable();
$table->string('alias', 250)->nullable();
$table->text('text')->nullable();
$table->string('cover_photo', 500)->nullable();
$table->integer('display_order')->default(1);
$table->integer('status')->default(1);
$table->text('seo_keywords')->nullable();
$table->text('seo_title')->nullable();
$table->text('seo_descriptions')->nullable();
$table->text('og_tags')->nullable();
$table->integer('createdby')->nullable();
$table->integer('updatedby')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('articles');
}
};

View File

@ -0,0 +1,36 @@
<?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::create('teams', function (Blueprint $table) {
$table->id('team_id');
$table->string('title', 255)->nullable();
$table->string('alias', 255)->nullable();
$table->string('photo', 255)->nullable();
$table->string('designation', 255)->nullable();
$table->text('description')->nullable();
$table->integer('display_order')->nullable();
$table->integer('status')->nullable();
$table->integer('createdby')->nullable();
$table->integer('updatedby')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('teams');
}
};

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('settings', function (Blueprint $table) {
$table->string('recaptcha_secret_key')->nullable()->after('updatedby');
$table->string('recaptcha_site_key')->nullable()->after('recaptcha_secret_key');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('settings', function (Blueprint $table) {
$table->dropColumn(['recaptcha_secret_key', 'recaptcha_site_key']);
});
}
};

View File

@ -16,5 +16,7 @@ class DatabaseSeeder extends Seeder
$this->call(ProvinceSeeder::class);
$this->call(NewsTypeSeeder::class);
$this->call(NewsCategorySeeder::class);
$this->call(HoroscopeSeeder::class);
$this->call(WebsiteSettingSeeder::class);
}
}

View File

@ -0,0 +1,211 @@
<?php
namespace Database\Seeders;
use App\Models\Horoscopes;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
class HoroscopeSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
Horoscopes::create([
'horoscope_id' => 1,
'title'=> 'Aquarius',
'title_nepali'=> 'कुम्भ राशि',
'alias' => 'aquarius',
'image'=> '',
'thumb'=> '',
'description' => '',
'status' => 1,
'display_order'=>1,
'createdBy' => 1,
'updatedBy' =>1,
'created_at' => now(),
'updated_at' => now(),
]);
Horoscopes::create([
'horoscope_id' => 2,
'title'=> 'Aries',
'title_nepali'=> 'मेष राशि',
'alias' => 'aries',
'image'=> '',
'thumb'=> '',
'description' => '',
'status' => 1,
'display_order'=>2,
'createdBy' => 1,
'updatedBy' =>1,
'created_at' => now(),
'updated_at' => now(),
]);
Horoscopes::create([
'horoscope_id' => 3,
'title'=> 'Cancer',
'title_nepali'=> 'कर्कट राशि',
'alias' => 'cancer',
'image'=> '',
'thumb'=> '',
'description' => '',
'status' => 1,
'display_order'=>3,
'createdBy' => 1,
'updatedBy' =>1,
'created_at' => now(),
'updated_at' => now(),
]);
Horoscopes::create([
'horoscope_id' => 4,
'title'=> 'Capricon',
'title_nepali'=> 'मकर राशि',
'alias' => 'capricon',
'image'=> '',
'thumb'=> '',
'description' => '',
'status' => 1,
'display_order'=>4,
'createdBy' => 1,
'updatedBy' =>1,
'created_at' => now(),
'updated_at' => now(),
]);
Horoscopes::create([
'horoscope_id' => 5,
'title'=> 'Gemini',
'title_nepali'=> 'मिथुन राशि',
'alias' => 'gemini',
'image'=> '',
'thumb'=> '',
'description' => '',
'status' => 1,
'display_order'=>5,
'createdBy' => 1,
'updatedBy' =>1,
'created_at' => now(),
'updated_at' => now(),
]);
Horoscopes::create([
'horoscope_id' => 6,
'title'=> 'Leo',
'title_nepali'=> 'सिंह राशि',
'alias' => 'leo',
'image'=> '',
'thumb'=> '',
'description' => '',
'status' => 1,
'display_order'=>6,
'createdBy' => 1,
'updatedBy' =>1,
'created_at' => now(),
'updated_at' => now(),
]);
Horoscopes::create([
'horoscope_id' => 7,
'title'=> 'Libra',
'title_nepali'=> 'तुला राशि',
'alias' => 'libra',
'image'=> '',
'thumb'=> '',
'description' => '',
'status' => 1,
'display_order'=>7,
'createdBy' => 1,
'updatedBy' =>1,
'created_at' => now(),
'updated_at' => now(),
]);
Horoscopes::create([
'horoscope_id' => 8,
'title'=> 'Pisces',
'title_nepali'=> 'मीन राशि',
'alias' => 'pisces',
'image'=> '',
'thumb'=> '',
'description' => '',
'status' => 1,
'display_order'=>8,
'createdBy' => 1,
'updatedBy' =>1,
'created_at' => now(),
'updated_at' => now(),
]);
Horoscopes::create([
'horoscope_id' => 9,
'title'=> 'Sagittarius',
'title_nepali'=> 'धनु राशि',
'alias' => 'sagittarius',
'image'=> '',
'thumb'=> '',
'description' => '',
'status' => 1,
'display_order'=>9,
'createdBy' => 1,
'updatedBy' =>1,
'created_at' => now(),
'updated_at' => now(),
]);
Horoscopes::create([
'horoscope_id' => 10,
'title'=> 'Scorpio',
'title_nepali'=> 'वृश्चिक राशि',
'alias' => 'scorpio',
'image'=> '',
'thumb'=> '',
'description' => '',
'status' => 1,
'display_order'=>10,
'createdBy' => 1,
'updatedBy' =>1,
'created_at' => now(),
'updated_at' => now(),
]);
Horoscopes::create([
'horoscope_id' => 11,
'title'=> 'Taurus',
'title_nepali'=> 'वृष राशि',
'alias' => 'taurus',
'image'=> '',
'thumb'=> '',
'description' => '',
'status' => 1,
'display_order'=>11,
'createdBy' => 1,
'updatedBy' =>1,
'created_at' => now(),
'updated_at' => now(),
]);
Horoscopes::create([
'horoscope_id' => 12,
'title'=> 'Virgo',
'title_nepali'=> 'कन्या राशि',
'alias' => 'virgo',
'image'=> '',
'thumb'=> '',
'description' => '',
'status' => 1,
'display_order'=>12,
'createdBy' => 1,
'updatedBy' =>1,
'created_at' => now(),
'updated_at' => now(),
]);
}
}

View File

@ -0,0 +1,44 @@
<?php
namespace Database\Seeders;
use App\Models\Settings;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
class WebsiteSettingSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
Settings::create([
'title' => 'Hulaki_Khabar',
'description' => 'हुलाकी खबर समाजमा सकारात्मक प्रभाव गर्ने लक्ष्यमा समाजिक न्याय र पारदर्शितामा प्रोत्साहित गर्दछ। हुलाकी खबरले नेपाली बोल्ने समुदायलाई समाचारमा संचित, शिक्षित, र जोडित गर्दै महत्वपूर्ण भूमिका खेल्दछ, राष्ट्रिय र अन्तर्राष्ट्रिय समाचारमा सक्रिय योगदान गर्दै डिजिटल पत्रकारितामा एक प्रमुख भूमिका खेल्दछ।',
'url1' => 'www.hulakikhabar.com',
'url2' => '',
'email' => 'abc@example.com',
'location' => 'काठमाण्डौ , नेपाल',
'phone' => '९८००००००००',
'secondary_phone' => '०१--',
'google_map' => '',
'fb' => 'https://www.facebook.com',
'insta' => 'https://www.facebook.com/',
'twitter' => 'https://www.facebook.com/',
'tiktok' => 'https://www.facebook.com/',
'youtube' => 'https://www.facebook.com/',
'working_days' => '',
'working_hours' => '',
'leave_days' => '',
'primary_logo' => '',
'secondary_logo' => '',
'thumb' => '',
'icon' => '',
'display_order' => 1,
'status' => 1,
]);
}
}

View File

@ -3407,7 +3407,7 @@ Widget Sidebar CSS
background-position: center center !important;
}
.widget-area .widget_latest_news_thumb .item .thumb .fullimage.bg1 {
/* .widget-area .widget_latest_news_thumb .item .thumb .fullimage.bg1 {
background-image: url(../img/politics-news/pachhillo.jpg);
}
@ -3445,7 +3445,7 @@ Widget Sidebar CSS
.widget-area .widget_latest_news_thumb .item .thumb .fullimage.bg10 {
background-image: url(https://templates.envytheme.com/depan/default/assets/img/latest-news/latest-news-10.jpg);
}
} */
.widget-area .widget_latest_news_thumb .item .info {
overflow: hidden;

View File

@ -1 +1 @@
(function($){"use strict";$.ajaxChimp={responses:{"We have sent you a confirmation email":0,"Please enter a value":1,"An email address must contain a single @":2,"The domain portion of the email address is invalid (the portion after the @: )":3,"The username portion of the email address is invalid (the portion before the @: )":4,"This email address looks fake or invalid. Please enter a real email address":5},translations:{en:null},init:function(selector,options){$(selector).ajaxChimp(options)}};$.fn.ajaxChimp=function(options){$(this).each(function(i,elem){var form=$(elem);var email=form.find("input[type=email]");var label=form.find("label[for="+email.attr("id")+"]");var settings=$.extend({url:form.attr("action"),language:"en"},options);var url=settings.url.replace("/post?","/post-json?").concat("&c=?");form.attr("novalidate","true");email.attr("name","EMAIL");form.submit(function(){var msg;function successCallback(resp){if(resp.result==="success"){msg="We have sent you a confirmation email";label.removeClass("error").addClass("valid");email.removeClass("error").addClass("valid")}else{email.removeClass("valid").addClass("error");label.removeClass("valid").addClass("error");var index=-1;try{var parts=resp.msg.split(" - ",2);if(parts[1]===undefined){msg=resp.msg}else{var i=parseInt(parts[0],10);if(i.toString()===parts[0]){index=parts[0];msg=parts[1]}else{index=-1;msg=resp.msg}}}catch(e){index=-1;msg=resp.msg}}if(settings.language!=="en"&&$.ajaxChimp.responses[msg]!==undefined&&$.ajaxChimp.translations&&$.ajaxChimp.translations[settings.language]&&$.ajaxChimp.translations[settings.language][$.ajaxChimp.responses[msg]]){msg=$.ajaxChimp.translations[settings.language][$.ajaxChimp.responses[msg]]}label.html(msg);label.show(2e3);if(settings.callback){settings.callback(resp)}}var data={};var dataArray=form.serializeArray();$.each(dataArray,function(index,item){data[item.name]=item.value});$.ajax({url:url,data:data,success:successCallback,dataType:"jsonp",error:function(resp,text){console.log("mailchimp ajax submit error: "+text)}});var submitMsg="Submitting...";if(settings.language!=="en"&&$.ajaxChimp.translations&&$.ajaxChimp.translations[settings.language]&&$.ajaxChimp.translations[settings.language]["submit"]){submitMsg=$.ajaxChimp.translations[settings.language]["submit"]}label.html(submitMsg).show(2e3);return false})});return this}})(jQuery);
(function ($) { "use strict"; $.ajaxChimp = { responses: { "We have sent you a confirmation email": 0, "Please enter a value": 1, "An email address must contain a single @": 2, "The domain portion of the email address is invalid (the portion after the @: )": 3, "The username portion of the email address is invalid (the portion before the @: )": 4, "This email address looks fake or invalid. Please enter a real email address": 5 }, translations: { en: null }, init: function (selector, options) { $(selector).ajaxChimp(options) } }; $.fn.ajaxChimp = function (options) { $(this).each(function (i, elem) { var form = $(elem); var email = form.find("input[type=email]"); var label = form.find("label[for=" + email.attr("id") + "]"); var settings = $.extend({ url: form.attr("action"), language: "en" }, options); var url = settings.url.replace("/post?", "/post-json?").concat("&c=?"); form.attr("novalidate", "true"); email.attr("name", "EMAIL"); form.submit(function () { var msg; function successCallback(resp) { if (resp.result === "success") { msg = "We have sent you a confirmation email"; label.removeClass("error").addClass("valid"); email.removeClass("error").addClass("valid") } else { email.removeClass("valid").addClass("error"); label.removeClass("valid").addClass("error"); var index = -1; try { var parts = resp.msg.split(" - ", 2); if (parts[1] === undefined) { msg = resp.msg } else { var i = parseInt(parts[0], 10); if (i.toString() === parts[0]) { index = parts[0]; msg = parts[1] } else { index = -1; msg = resp.msg } } } catch (e) { index = -1; msg = resp.msg } } if (settings.language !== "en" && $.ajaxChimp.responses[msg] !== undefined && $.ajaxChimp.translations && $.ajaxChimp.translations[settings.language] && $.ajaxChimp.translations[settings.language][$.ajaxChimp.responses[msg]]) { msg = $.ajaxChimp.translations[settings.language][$.ajaxChimp.responses[msg]] } label.html(msg); label.show(2e3); if (settings.callback) { settings.callback(resp) } } var data = {}; var dataArray = form.serializeArray(); $.each(dataArray, function (index, item) { data[item.name] = item.value }); $.ajax({ url: url, data: data, success: successCallback, dataType: "jsonp", error: function (resp, text) { console.log("mailchimp ajax submit error: " + text) } }); var submitMsg = "Submitting..."; if (settings.language !== "en" && $.ajaxChimp.translations && $.ajaxChimp.translations[settings.language] && $.ajaxChimp.translations[settings.language]["submit"]) { submitMsg = $.ajaxChimp.translations[settings.language]["submit"] } label.html(submitMsg).show(2e3); return false }) }); return this } })(jQuery);

View File

@ -88,6 +88,10 @@
{{ CCMS::createMenuLink('Authors', route('authors.index')) }}
{{ CCMS::createMenuLink('Advertisement', route('advertisement.index')) }}
{{ CCMS::createMenuLink('Economy', route('economies.index')) }}
{{ CCMS::createMenuLink('Videos', route('videos.index')) }}
{{ CCMS::createMenuLink('Horoscope', route('horoscope.index')) }}
{{ CCMS::createMenuLink('Artilces', route('articles.index')) }}
{{ CCMS::createMenuLink('Teams', route('teams.index')) }}
</div>

View File

@ -0,0 +1,39 @@
@extends('backend.template')
@section('content')
<div class='card'>
<div class='card-header d-flex justify-content-between align-items-center'>
<h2 class="">{{ label('Add Article') }}</h2>
<?php createButton('btn-primary btn-cancel', '', 'Cancel', route('articles.index')); ?>
</div>
<div class='card-body'>
<form action="{{ route('articles.store') }}" id="storeCustomForm" method="POST">
@csrf
<div class="row">
<div class="col-lg-6">
{{ createCustomSelect('tbl_articles', 'title', 'article_id', '', 'Parent Article', 'parent_article', 'form-control select2', 'status<>-1') }}
</div>
<div class="col-lg-6">{{ createText('title', 'title', 'Title') }}
</div>
<div class="col-lg-6">{{ createText('subtitle', 'subtitle', 'Subtitle') }}
</div>
<div class="col-lg-12 pb-2">{{ createTextarea('text', 'text ckeditor-classic', 'Text') }}
</div>
<div class="col-lg-12 pb-2">{{ createImageInput('cover_photo', 'Cover Photo') }}
</div>
<div class="col-lg-12 pb-2">{{ createPlainTextArea('seo_keywords', 'seo_keywords ', 'Seo Keywords') }}
</div>
<div class="col-lg-6">{{ createText('seo_title', 'seo_title', 'Seo Title') }}
</div>
<div class="col-lg-12 pb-2">
{{ createPlainTextArea('seo_descriptions', 'seo_descriptions ', 'Seo Descriptions') }}
</div>
<div class="col-lg-12 pb-2">{{ createPlainTextArea('og_tags', 'og_tags ', 'Og Tags') }}
</div> <br>
<div class="col-md-12"><?php createButton('btn-primary btn-store', '', 'Submit'); ?>
<?php createButton('btn-primary btn-cancel', '', 'Cancel', route('articles.index')); ?>
</div>
</form>
</div>
</div>
@endsection

View File

@ -0,0 +1,40 @@
@extends('backend.template')
@section('content')
<div class='card'>
<div class='card-header d-flex justify-content-between align-items-center'>
<h2 class="">{{ label('Edit Article') }}</h2>
<?php createButton('btn-primary btn-cancel', '', 'Cancel', route('articles.index')); ?>
</div>
<div class='card-body'>
<form action="{{ route('articles.update', [$data->article_id]) }}" id="updateCustomForm" method="POST">
@csrf <input type=hidden name='article_id' value='{{ $data->article_id }}' />
<div class="row">
<div class="col-lg-6">
{{ createCustomSelect('tbl_articles', 'title', 'article_id', $data->parent_article, 'Parent Article', 'parent_article', 'form-control select2', 'status<>-1') }}
</div>
<div class="col-lg-6">{{ createText('title', 'title', 'Title', '', $data->title) }}
</div>
<div class="col-lg-6">{{ createText('subtitle', 'subtitle', 'Subtitle', '', $data->subtitle) }}
</div>
<div class="col-lg-12 pb-2">{{ createTextarea('text', 'text ckeditor-classic', 'Text', $data->text) }}
</div>
<div class="col-lg-12 pb-2">{{ createImageInput('cover_photo', 'Cover Photo', '', $data->cover_photo) }}
</div>
<div class="col-lg-12 pb-2">
{{ createPlainTextArea('seo_keywords', '', 'Seo Keywords', $data->seo_keywords) }}
</div>
<div class="col-lg-6">{{ createText('seo_title', 'seo_title', 'Seo Title', '', $data->seo_title) }}
</div>
<div class="col-lg-12 pb-2">
{{ createPlainTextArea('seo_descriptions', '', 'Seo Descriptions', $data->seo_descriptions) }}
</div>
<div class="col-lg-12 pb-2">{{ createPlainTextArea('og_tags', '', 'Og Tags', $data->og_tags) }}
</div>
<div class="col-md-12"><?php createButton('btn-primary btn-update', '', 'Submit'); ?>
<?php createButton('btn-primary btn-cancel', '', 'Cancel', route('articles.index')); ?>
</div>
</form>
</div>
</div>
@endsection

View File

@ -0,0 +1,250 @@
@extends('backend.template')
@section('content')
<div class="card">
<div class="card-header d-flex justify-content-between align-items-center">
<h2>{{ label('Articles List') }}</h2>
<a href="{{ route('articles.create') }}" class="btn btn-primary"><span>{{ label('Create New') }}</span></a>
</div>
<div class="card-body">
<table class="table dataTable" id="tbl_articles" data-url="{{ route('articles.sort') }}">
<thead class="table-light">
<tr>
<th class="tb-col"><span class="overline-title">{{ label('Sn.') }}</span></th>
<th class="tb-col"><span class="overline-title">{{ label('Parent') }}</span></th>
<th class="tb-col"><span class="overline-title">{{ label('title') }}</span></th>
<th class="tb-col"><span class="overline-title">{{ label('subtitle') }}</span></th>
<th class="tb-col"><span class="overline-title">{{ label('alias') }}</span></th>
<th class="tb-col"><span class="overline-title">{{ label('cover_photo') }}</span></th>
<th class="tb-col" data-sortable="false"><span class="overline-title">{{ label('Action') }}</span>
</th>
</tr>
</thead>
<tbody>
@php
$i = 1;
@endphp
@foreach ($data as $item)
<tr data-id="{{ $item->article_id }}" data-display_order="{{ $item->display_order }}"
class="draggable-row <?php echo $item->status == 0 ? 'bg-light bg-danger' : ''; ?>">
<td class="tb-col">{{ $i++ }}</td>
<td class="tb-col">
{!! getFieldData('tbl_articles', 'title', 'article_id', $item->parent_article) !!}
</td>
<td class="tb-col">{{ $item->title }}</td>
<td class="tb-col">{{ $item->subtitle }}</td>
<td class="tb-col">
<div class="alias-wrapper" data-id="{{ $item->article_id }}">
<span class="alias">{{ $item->alias }}</span>
<input type="text" class="alias-input d-none" value="{{ $item->alias }}"
id="alias_{{ $item->article_id }}" />
</div>
<span class="badge badge-soft-primary change-alias-badge">change alias</span>
</td>
<td class="tb-col">{{ showImageThumb($item->cover_photo) }}</td>
<td class="tb-col">
<div class="dropdown d-inline-block">
<button class="btn btn-soft-secondary btn-sm dropdown" type="button"
data-bs-toggle="dropdown" aria-expanded="false">
<i class="ri-more-fill align-middle"></i>
</button>
<ul class="dropdown-menu dropdown-menu-end">
<li><a href="{{ route('articles.show', [$item->article_id]) }}"
class="dropdown-item"><i
class="ri-eye-fill align-bottom me-2 text-muted"></i>
{{ label('View') }}</a></li>
<li><a href="{{ route('articles.edit', [$item->article_id]) }}"
class="dropdown-item edit-item-btn"><i
class="ri-pencil-fill align-bottom me-2 text-muted"></i>
{{ label('Edit') }}</a></li>
<li>
<a href="{{ route('articles.toggle', [$item->article_id]) }}"
class="dropdown-item toggle-item-btn" onclick="confirmToggle(this.href)">
<i class="ri-article-fill align-bottom me-2 text-muted"></i>
{{ $item->status == 1 ? label('Unpublish') : label('Publish') }}
</a>
</li>
<li>
<a href="{{ route('articles.destroy', [$item->article_id]) }}"
class="dropdown-item remove-item-btn" onclick="confirmDelete(this.href)">
<i class="ri-delete-bin-fill align-bottom me-2 text-muted"></i>
{{ label('Delete') }}
</a>
</li>
</ul>
</div>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
@endsection
@push('css')
<link rel="stylesheet" href="https://cdn.datatables.net/1.13.5/css/dataTables.bootstrap4.min.css">
<link rel="stylesheet" href="https://cdn.datatables.net/rowreorder/1.4.0/css/rowReorder.dataTables.min.css">
@endpush
@push('js')
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.68/pdfmake.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.68/vfs_fonts.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="https://cdn.datatables.net/1.13.5/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/buttons/2.4.1/js/buttons.html5.min.js"></script>
<script src="https://cdn.datatables.net/rowreorder/1.4.0/js/dataTables.rowReorder.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<script>
$(document).ready(function(e) {
$('.change-alias-badge').on('click', function() {
var aliasWrapper = $(this).prev('.alias-wrapper');
var aliasSpan = aliasWrapper.find('.alias');
var aliasInput = aliasWrapper.find('.alias-input');
var isEditing = $(this).hasClass('editing');
aliasInput.toggleClass("d-none");
if (isEditing) {
// Update alias text and switch to non-editing state
var newAlias = aliasInput.val();
aliasSpan.text(newAlias);
aliasSpan.show();
aliasInput.hide();
$(this).removeClass('editing').text('Change Alias');
var articleId = $(aliasWrapper).data('id');
var ajaxUrl = "{{ route('articles.updatealias') }}";
var data = {
articleId: articleId,
newAlias: newAlias
};
$.ajax({
url: ajaxUrl,
type: 'POST',
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
},
data: data,
success: function(response) {
console.log(response);
},
error: function(xhr, status, error) {
console.error(error);
}
});
} else {
// Switch to editing state
aliasSpan.hide();
aliasInput.show().focus();
$(this).addClass('editing').text('Save Alias');
}
});
var mytable = $(".dataTable").DataTable({
ordering: true,
rowReorder: {
//selector: 'tr'
},
});
var isRowReorderComplete = false;
mytable.on('row-reorder', function(e, diff, edit) {
isRowReorderComplete = true;
});
mytable.on('draw', function() {
if (isRowReorderComplete) {
var url = mytable.table().node().getAttribute('data-url');
var ids = mytable.rows().nodes().map(function(node) {
return $(node).data('id');
}).toArray();
console.log(ids);
$.ajax({
url: url,
type: "POST",
headers: {
"X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr('content')
},
data: {
id_order: ids
},
success: function(response) {
console.log(response);
},
error: function(xhr, status, error) {
console.error(error);
}
});
isRowReorderComplete = false;
}
});
});
function confirmDelete(url) {
event.preventDefault();
Swal.fire({
title: 'Are you sure?',
text: 'You will not be able to recover this item!',
icon: 'warning',
showCancelButton: true,
confirmButtonText: 'Delete',
cancelButtonText: 'Cancel',
reverseButtons: true
}).then((result) => {
if (result.isConfirmed) {
$.ajax({
url: url,
type: 'DELETE',
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
},
success: function(response) {
Swal.fire('Deleted!', 'The item has been deleted.', 'success');
location.reload();
},
error: function(xhr, status, error) {
Swal.fire('Error!', 'An error occurred while deleting the item.', 'error');
}
});
}
});
}
function confirmToggle(url) {
event.preventDefault();
Swal.fire({
title: 'Are you sure?',
text: 'Publish Status of Item will be changed!! if Unpublished, links will be dead!',
icon: 'warning',
showCancelButton: true,
confirmButtonText: 'Proceed',
cancelButtonText: 'Cancel',
reverseButtons: true
}).then((result) => {
if (result.isConfirmed) {
$.ajax({
url: url,
type: 'GET',
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
},
success: function(response) {
Swal.fire('Updated!', 'Publishing Status has been updated.', 'success');
location.reload();
},
error: function(xhr, status, error) {
Swal.fire('Error!', 'An error occurred.', 'error');
}
});
}
});
}
</script>
@endpush

View File

@ -0,0 +1,43 @@
@extends('backend.template')
@section('content')
<div class='card'>
<div class='card-header d-flex justify-content-between align-items-center'>
<h2><?php echo label('View Details'); ?></h2>
<?php createButton('btn-primary btn-cancel', '', 'Back to List', route('articles.index')); ?>
</div>
<div class='card-body'>
<p><b>Parent Article :&nbsp;&nbsp;&nbsp;&nbsp;</b> <span>{{ $data->parent_article }}</span></p>
<p><b>Title :&nbsp;&nbsp;&nbsp;&nbsp;</b> <span>{{ $data->title }}</span></p>
<p><b>Subtitle :&nbsp;&nbsp;&nbsp;&nbsp;</b> <span>{{ $data->subtitle }}</span></p>
<p><b>Alias :&nbsp;&nbsp;&nbsp;&nbsp;</b> <span>{{ $data->alias }}</span></p>
<p><b>Text :&nbsp;&nbsp;&nbsp;&nbsp;</b> <span>{{ $data->text }}</span></p>
<p><b>Cover Photo :&nbsp;&nbsp;&nbsp;&nbsp;</b> <span>{{ $data->cover_photo }}</span></p>
<p><b>Display Order :&nbsp;&nbsp;&nbsp;&nbsp;</b> <span>{{ $data->display_order }}</span></p>
<p><b>Status :&nbsp;&nbsp;&nbsp;&nbsp;</b> <span
class="{{ $data->status == 1 ? 'text-success' : 'text-danger' }}">{{ $data->status == 1 ? 'Active' : 'Inactive' }}</span>
</p>
<p><b>Seo Keywords :&nbsp;&nbsp;&nbsp;&nbsp;</b> <span>{{ $data->seo_keywords }}</span></p>
<p><b>Seo Title :&nbsp;&nbsp;&nbsp;&nbsp;</b> <span>{{ $data->seo_title }}</span></p>
<p><b>Seo Descriptions :&nbsp;&nbsp;&nbsp;&nbsp;</b> <span>{{ $data->seo_descriptions }}</span></p>
<p><b>Og Tags :&nbsp;&nbsp;&nbsp;&nbsp;</b> <span>{{ $data->og_tags }}</span></p>
<p><b>Createdby :&nbsp;&nbsp;&nbsp;&nbsp;</b> <span>{{ $data->createdby }}</span></p>
<p><b>Updatedby :&nbsp;&nbsp;&nbsp;&nbsp;</b> <span>{{ $data->updatedby }}</span></p>
<div class="d-flex justify-content-between">
<div>
<p><b>Created On :</b>&nbsp;&nbsp;&nbsp;<span>{{ $data->created_at }}</span></p>
<p><b>Created By :</b>&nbsp;&nbsp;&nbsp;<span>{{ $data->createdBy }}</span></p>
</div>
<div>
<p><b>Updated On :</b>&nbsp;&nbsp;&nbsp;<span>{{ $data->updated_at }}</span></p>
<p><b>Updated By :</b>&nbsp;&nbsp;&nbsp;<span>{{ $data->updatedBy }}</span></p>
</div>
</div>
</div>
</div>
@endSection

View File

@ -0,0 +1,30 @@
@extends('backend.template')
@section('content')
<div class='card'>
<div class='card-header d-flex justify-content-between align-items-center'>
<h2 class="">{{ label('Add Horoscope') }}</h2>
<?php createButton('btn-primary btn-cancel', '', 'Cancel', route('horoscope.index')); ?>
</div>
<div class='card-body'>
<form action="{{ route('horoscope.store') }}" id="storeCustomForm" method="POST">
@csrf
<div class="row">
<div class="col-lg-6">{{ createText('title', 'title', 'Title') }}
</div>
<div class="col-lg-6">{{ createText('title_nepali', 'title_nepali', 'Title Nepali') }}
</div>
<div class="col-lg-6">{{ createImageInput('thumb', 'Thumb') }}
</div>
<div class="col-lg-6">{{ createImageInput('image', 'Image') }}
</div>
<div class="col-lg-12 pb-2">
{{ createTextarea('description', 'description ckeditor-classic', 'Description') }}
</div>
<div class="col-md-12"><?php createButton('btn-primary btn-store', '', 'Submit'); ?>
<?php createButton('btn-primary btn-cancel', '', 'Cancel', route('horoscope.index')); ?>
</div>
</form>
</div>
</div>
@endsection

View File

@ -0,0 +1,33 @@
@extends('backend.template')
@section('content')
<div class='card'>
<div class='card-header d-flex justify-content-between align-items-center'>
<h2 class="">{{ label('Edit Horoscope') }}</h2>
<?php createButton('btn-primary btn-cancel', '', 'Cancel', route('horoscope.index')); ?>
</div>
<div class='card-body'>
<form action="{{ route('horoscope.update', [$data->horoscope_id]) }}" id="updateCustomForm" method="POST">
@csrf <input type=hidden name='horoscope_id' value='{{ $data->horoscope_id }}' />
<div class="row">
<div class="col-lg-6">{{ createText('title', 'title', 'Title', '', $data->title) }}
</div>
<div class="col-lg-6">
{{ createText('title_nepali', 'title_nepali', 'Title Nepali', '', $data->title_nepali) }}
</div>
<div class="col-lg-12 pb-2">
{{ createTextarea('description', 'description ckeditor-classic', 'Description', $data->description) }}
</div>
<div class="col-lg-6 pb-2">
{{ createImageInput('thumb', 'Thumb','',$data->thumb) }}
</div>
<div class="col-lg-6 pb-5">
{{ createImageInput('image', 'Image','',$data->image) }}
</div>
<div class="col-md-12"><?php createButton('btn-primary btn-update', '', 'Submit'); ?>
<?php createButton('btn-primary btn-cancel', '', 'Cancel', route('horoscope.index')); ?>
</div>
</form>
</div>
</div>
@endsection

View File

@ -0,0 +1,248 @@
@extends('backend.template')
@section('content')
<div class="card">
<div class="card-header d-flex justify-content-between align-items-center">
<h2>{{ label('Horoscope List') }}</h2>
<a href="{{ route('horoscope.create') }}" class="btn btn-primary"><span>{{ label('Create New') }}</span></a>
</div>
<div class="card-body">
<table class="table dataTable" id="tbl_horoscope" data-url="{{ route('horoscope.sort') }}">
<thead class="table-light">
<tr>
<th class="tb-col"><span class="overline-title">{{ label('Sn.') }}</span></th>
<th class="tb-col"><span class="overline-title">{{ label('title') }}</span></th>
<th class="tb-col"><span class="overline-title">{{ label('title_nepali') }}</span></th>
<th class="tb-col"><span class="overline-title">{{ label('alias') }}</span></th>
<th class="tb-col"><span class="overline-title">{{ label('createdBy') }}</span></th>
<th class="tb-col"><span class="overline-title">{{ label('updatedBy') }}</span></th>
<th class="tb-col" data-sortable="false"><span class="overline-title">{{ label('Action') }}</span>
</th>
</tr>
</thead>
<tbody>
@php
$i = 1;
@endphp
@foreach ($data as $item)
<tr data-id="{{ $item->horoscope_id }}" data-display_order="{{ $item->display_order }}"
class="draggable-row <?php echo $item->status == 0 ? 'bg-light bg-danger' : ''; ?>">
<td class="tb-col">{{ $i++ }}</td>
<td class="tb-col">{{ $item->title }}</td>
<td class="tb-col">{{ $item->title_nepali }}</td>
<td class="tb-col">
<div class="alias-wrapper" data-id="{{ $item->horoscope_id }}">
<span class="alias">{{ $item->alias }}</span>
<input type="text" class="alias-input d-none" value="{{ $item->alias }}"
id="alias_{{ $item->horoscope_id }}" />
</div>
<span class="badge badge-soft-primary change-alias-badge">change alias</span>
</td>
<td class="tb-col">{{ $item->createdBy }}</td>
<td class="tb-col">{{ $item->updatedBy }}</td>
<td class="tb-col">
<div class="dropdown d-inline-block">
<button class="btn btn-soft-secondary btn-sm dropdown" type="button"
data-bs-toggle="dropdown" aria-expanded="false">
<i class="ri-more-fill align-middle"></i>
</button>
<ul class="dropdown-menu dropdown-menu-end">
<li><a href="{{ route('horoscope.show', [$item->horoscope_id]) }}"
class="dropdown-item"><i
class="ri-eye-fill align-bottom me-2 text-muted"></i>
{{ label('View') }}</a></li>
<li><a href="{{ route('horoscope.edit', [$item->horoscope_id]) }}"
class="dropdown-item edit-item-btn"><i
class="ri-pencil-fill align-bottom me-2 text-muted"></i>
{{ label('Edit') }}</a></li>
<li>
<a href="{{ route('horoscope.toggle', [$item->horoscope_id]) }}"
class="dropdown-item toggle-item-btn" onclick="confirmToggle(this.href)">
<i class="ri-article-fill align-bottom me-2 text-muted"></i>
{{ $item->status == 1 ? label('Unpublish') : label('Publish') }}
</a>
</li>
<li>
<a href="{{ route('horoscope.destroy', [$item->horoscope_id]) }}"
class="dropdown-item remove-item-btn" onclick="confirmDelete(this.href)">
<i class="ri-delete-bin-fill align-bottom me-2 text-muted"></i>
{{ label('Delete') }}
</a>
</li>
</ul>
</div>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
@endsection
@push('css')
<link rel="stylesheet" href="https://cdn.datatables.net/1.13.5/css/dataTables.bootstrap4.min.css">
<link rel="stylesheet" href="https://cdn.datatables.net/rowreorder/1.4.0/css/rowReorder.dataTables.min.css">
@endpush
@push('js')
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.68/pdfmake.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.68/vfs_fonts.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="https://cdn.datatables.net/1.13.5/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/buttons/2.4.1/js/buttons.html5.min.js"></script>
<script src="https://cdn.datatables.net/rowreorder/1.4.0/js/dataTables.rowReorder.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<script>
$(document).ready(function(e) {
$('.change-alias-badge').on('click', function() {
var aliasWrapper = $(this).prev('.alias-wrapper');
var aliasSpan = aliasWrapper.find('.alias');
var aliasInput = aliasWrapper.find('.alias-input');
var isEditing = $(this).hasClass('editing');
aliasInput.toggleClass("d-none");
if (isEditing) {
// Update alias text and switch to non-editing state
var newAlias = aliasInput.val();
aliasSpan.text(newAlias);
aliasSpan.show();
aliasInput.hide();
$(this).removeClass('editing').text('Change Alias');
var articleId = $(aliasWrapper).data('id');
var ajaxUrl = "{{ route('horoscope.updatealias') }}";
var data = {
articleId: articleId,
newAlias: newAlias
};
$.ajax({
url: ajaxUrl,
type: 'POST',
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
},
data: data,
success: function(response) {
console.log(response);
},
error: function(xhr, status, error) {
console.error(error);
}
});
} else {
// Switch to editing state
aliasSpan.hide();
aliasInput.show().focus();
$(this).addClass('editing').text('Save Alias');
}
});
var mytable = $(".dataTable").DataTable({
ordering: true,
rowReorder: {
//selector: 'tr'
},
});
var isRowReorderComplete = false;
mytable.on('row-reorder', function(e, diff, edit) {
isRowReorderComplete = true;
});
mytable.on('draw', function() {
if (isRowReorderComplete) {
var url = mytable.table().node().getAttribute('data-url');
var ids = mytable.rows().nodes().map(function(node) {
return $(node).data('id');
}).toArray();
console.log(ids);
$.ajax({
url: url,
type: "POST",
headers: {
"X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr('content')
},
data: {
id_order: ids
},
success: function(response) {
console.log(response);
},
error: function(xhr, status, error) {
console.error(error);
}
});
isRowReorderComplete = false;
}
});
});
function confirmDelete(url) {
event.preventDefault();
Swal.fire({
title: 'Are you sure?',
text: 'You will not be able to recover this item!',
icon: 'warning',
showCancelButton: true,
confirmButtonText: 'Delete',
cancelButtonText: 'Cancel',
reverseButtons: true
}).then((result) => {
if (result.isConfirmed) {
$.ajax({
url: url,
type: 'DELETE',
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
},
success: function(response) {
Swal.fire('Deleted!', 'The item has been deleted.', 'success');
location.reload();
},
error: function(xhr, status, error) {
Swal.fire('Error!', 'An error occurred while deleting the item.', 'error');
}
});
}
});
}
function confirmToggle(url) {
event.preventDefault();
Swal.fire({
title: 'Are you sure?',
text: 'Publish Status of Item will be changed!! if Unpublished, links will be dead!',
icon: 'warning',
showCancelButton: true,
confirmButtonText: 'Proceed',
cancelButtonText: 'Cancel',
reverseButtons: true
}).then((result) => {
if (result.isConfirmed) {
$.ajax({
url: url,
type: 'GET',
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
},
success: function(response) {
Swal.fire('Updated!', 'Publishing Status has been updated.', 'success');
location.reload();
},
error: function(xhr, status, error) {
Swal.fire('Error!', 'An error occurred.', 'error');
}
});
}
});
}
</script>
@endpush

View File

@ -0,0 +1,29 @@
@extends('backend.template')
@section('content')
<div class='card'>
<div class='card-header d-flex justify-content-between align-items-center'>
<h2><?php echo label('View Details'); ?></h2>
<?php createButton("btn-primary btn-cancel","","Back to List",route('horoscope.index')); ?>
</div>
<div class='card-body'>
<p><b>Title :&nbsp;&nbsp;&nbsp;&nbsp;</b> <span>{{$data->title}}</span></p><p><b>Title Nepali :&nbsp;&nbsp;&nbsp;&nbsp;</b> <span>{{$data->title_nepali}}</span></p><p><b>Alias :&nbsp;&nbsp;&nbsp;&nbsp;</b> <span>{{$data->alias}}</span></p><p><b>Description :&nbsp;&nbsp;&nbsp;&nbsp;</b> <span>{{$data->description}}</span></p><p><b>Status :&nbsp;&nbsp;&nbsp;&nbsp;</b> <span
class="{{$data->status == 1 ? 'text-success' : 'text-danger'}}">{{$data->status == 1 ? 'Active' : 'Inactive'}}</span></p><p><b>Display Order :&nbsp;&nbsp;&nbsp;&nbsp;</b> <span>{{$data->display_order}}</span></p><div class="d-flex justify-content-between">
<div>
<p><b>Created On :</b>&nbsp;&nbsp;&nbsp;<span>{{$data->created_at}}</span></p>
<p><b>Created By :</b>&nbsp;&nbsp;&nbsp;<span>{{$data->createdBy}}</span></p>
</div>
<div>
<p><b>Updated On :</b>&nbsp;&nbsp;&nbsp;<span>{{$data->updated_at}}</span></p>
<p><b>Updated By :</b>&nbsp;&nbsp;&nbsp;<span>{{$data->updatedBy}}</span></p>
</div>
</div>
</div>
</div>
@endSection

View File

@ -1,245 +1,251 @@
@extends('backend.template')
@section('content')
<!-- start page title -->
<div class="row">
<!-- start page title -->
<div class="row">
<div class="col-12">
<div class="page-title-box d-sm-flex align-items-center justify-content-between">
<h4 class="mb-sm-0">Website Settings</h4>
<div class="col-12">
<div class="page-title-box d-sm-flex align-items-center justify-content-between">
<h4 class="mb-sm-0">Website Settings</h4>
<div class="page-title-right">
<ol class="breadcrumb m-0">
<li class="breadcrumb-item"><a href="javascript: void(0);">Dashboards</a></li>
<li class="breadcrumb-item active">Website Settings</li>
</ol>
</div>
<div class="page-title-right">
<ol class="breadcrumb m-0">
<li class="breadcrumb-item"><a href="javascript: void(0);">Dashboards</a></li>
<li class="breadcrumb-item active">Website Settings</li>
</ol>
</div>
</div>
</div>
</div>
<!-- end page title -->
<!-- New Design -->
<form action="{{ route('settings.update', [$data->setting_id]) }}" id="updateCustomForm" method="POST">
@csrf <input type=hidden name='setting_id' value='{{ $data->setting_id }}' />
<div class="chat-wrapper d-lg-flex mx-n4 mt-n4 gap-1 p-1">
<div class="file-manager-sidebar">
<div class="d-flex flex-column h-100 p-3">
<div class="nav nav-pills flex-column nav-pills-tab custom-verti-nav-pills text-center" role="tablist"
aria-orientation="vertical">
<a class="nav-link active show" id="settings" data-bs-toggle="pill" href="#custom-v-pills-home"
role="tab" aria-controls="custom-v-pills-home" aria-selected="true">
<i class="ri-home-4-line d-block fs-20 mb-1"></i> Settings
</a>
<a class="nav-link" id="address" data-bs-toggle="pill" href="#custom-v-pills-address" role="tab"
aria-controls="custom-v-pills-address" aria-selected="false">
<i class="ri-map-pin-2-line d-block fs-20 mb-1"></i> Address
</a>
<a class="nav-link" id="logo" data-bs-toggle="pill" href="#custom-v-pills-logo" role="tab"
aria-controls="custom-v-pills-logo" aria-selected="false">
<i class="ri-image-2-line d-block fs-20 mb-1"></i> Logo/Images
</a>
<a class="nav-link" id="socialmedia" data-bs-toggle="pill" href="#custom-v-pills-social" role="tab"
aria-controls="custom-v-pills-social" aria-selected="false">
<i class="ri-apps-2-line d-block fs-20 mb-1"></i> Social Media
</a>
<a class="nav-link" id="seo" data-bs-toggle="pill" href="#custom-v-pills-seo" role="tab"
aria-controls="custom-v-pills-seo" aria-selected="false">
<i class="ri-global-line d-block fs-20 mb-1"></i> SEO
</a>
<a class="nav-link" id="seo" data-bs-toggle="pill" href="#custom-v-pills-security" role="tab"
aria-controls="custom-v-pills-seo" aria-selected="false">
<i class="ri-global-line d-block fs-20 mb-1"></i> Security
</a>
</div>
</div>
</div>
<div class="file-manager-content w-100 p-3 py-0">
<div class="mx-n3 file-manager-content-scroll px-4 pt-4" data-simplebar>
<div>
<div class="d-flex align-items-center border-bottom border-bottom-dashed mb-3">
<h5 class="flex-grow-1 fs-16 mb-0" id="filetype-title"></h5>
<div class="flex-shrink-0">
<?php createButton('btn-primary btn-update', '', 'Submit'); ?>
<?php createButton('btn-danger btn-cancel', '', 'Cancel', route('settings.index')); ?>
</div>
</div>
<div class="tab-content text-muted mt-lg-0 mt-3">
<div class="tab-pane fade active show" id="custom-v-pills-home" role="tabpanel"
aria-labelledby="custom-v-pills-home-tab">
</div>
</div>
<!-- end page title -->
<!-- New Design -->
<div>
{{ createText('title', 'title', 'Page Title', '', $data->title) }}
<h5 class="fs-14 text-muted mb-3 mt-2">Parmalink: <a href="<?php echo env('APP_URL'); ?>"
target="_blank"><?php echo env('APP_URL'); ?></a> </h5>
</div>
<div class="col-lg-12 pb-2">
{{ createPlainTextarea('description', 'description', 'Description', $data->description) }}
</div>
<div class="row">
<div class="col-lg-6">
{{ createText('working_days', 'working_days', 'Working days', '', $data->working_days) }}
</div>
<div class="col-lg-6">
{{ createText('working_hours', 'working_hours', 'Working Hours', '', $data->working_hours) }}
</div>
</div>
<div class="col-lg-6">
{{ createText('leave_days', 'leave_days', 'Leave Days', '', $data->leave_days) }}
</div>
<div class="col-lg-12 pb-2">
{{ createPlainTextarea('content1', 'content1', 'Content1', $data->content1) }}
</div>
<div class="col-lg-12 pb-2">
{{ createPlainTextarea('content2', 'content2', 'Content2', $data->content2) }}
</div>
<div class="col-lg-12 pb-2">
{{ createPlainTextarea('content3', 'content3', 'Content3', $data->content3) }}
</div>
<div class="col-lg-12">
{{ createText('copyright_text', 'copyright_text', 'Copyright', '', $data->copyright_text) }}
</div>
<form action="{{ route('settings.update', [$data->setting_id]) }}" id="updateCustomForm" method="POST">
@csrf <input type=hidden name='setting_id' value='{{ $data->setting_id }}' />
<div class="chat-wrapper d-lg-flex mx-n4 mt-n4 gap-1 p-1">
<div class="file-manager-sidebar">
<div class="d-flex flex-column h-100 p-3">
</div>
<!--end tab-pane-->
<div class="tab-pane fade" id="custom-v-pills-address" role="tabpanel"
aria-labelledby="custom-v-pills-address-tab">
<div class="d-flex mb-4">
<div class="row">
<div class="col-lg-6">{{ createText('url1', 'url1', 'Url 1', '', $data->url1) }}
</div>
<div class="col-lg-6">{{ createText('url2', 'url2', 'Url 2', '', $data->url2) }}
</div>
<div class="col-lg-6">{{ createText('email', 'email', 'Email', '', $data->email) }}
</div>
<div class="col-lg-6">{{ createText('phone', 'phone', 'Phone', '', $data->phone) }}
</div>
<div class="col-lg-6">
{{ createText('secondary_phone', 'secondary_phone', 'Secondary Phone', '', $data->secondary_phone) }}
</div>
<div class="col-lg-6">
{{ createText('location', 'location', 'Office Location', '', $data->location) }}
</div>
<div class="col-lg-12 pb-2">
{{ createPlainTextArea('google_map', '', 'Google Map', $data->google_map) }}
</div>
</div>
</div>
</div>
<!--end tab-pane-->
<div class="tab-pane fade" id="custom-v-pills-logo" role="tabpanel"
aria-labelledby="custom-v-pills-logo-tab">
<div class="d-flex mb-4">
<div class="row">
<div class="col-lg-12 border-bottom border-bottom-dashed pb-2">
<div class="card card-height-100 border-primary bg-opacity-10 pb-2 shadow">
{{ createImageInput('primary_logo', 'Primary Logo', '', $data->primary_logo) }}
</div>
<div class="nav nav-pills flex-column nav-pills-tab custom-verti-nav-pills text-center" role="tablist"
aria-orientation="vertical">
<a class="nav-link active show" id="settings" data-bs-toggle="pill" href="#custom-v-pills-home"
role="tab" aria-controls="custom-v-pills-home" aria-selected="true">
<i class="ri-home-4-line d-block fs-20 mb-1"></i> Settings
</a>
<a class="nav-link" id="address" data-bs-toggle="pill" href="#custom-v-pills-address"
role="tab" aria-controls="custom-v-pills-address" aria-selected="false">
<i class="ri-map-pin-2-line d-block fs-20 mb-1"></i> Address
</a>
<a class="nav-link" id="logo" data-bs-toggle="pill" href="#custom-v-pills-logo" role="tab"
aria-controls="custom-v-pills-logo" aria-selected="false">
<i class="ri-image-2-line d-block fs-20 mb-1"></i> Logo/Images
</a>
<a class="nav-link" id="socialmedia" data-bs-toggle="pill" href="#custom-v-pills-social"
role="tab" aria-controls="custom-v-pills-social" aria-selected="false">
<i class="ri-apps-2-line d-block fs-20 mb-1"></i> Social Media
</a>
<a class="nav-link" id="seo" data-bs-toggle="pill" href="#custom-v-pills-seo" role="tab"
aria-controls="custom-v-pills-seo" aria-selected="false">
<i class="ri-global-line d-block fs-20 mb-1"></i> SEO
</a>
<a class="nav-link" id="seo" data-bs-toggle="pill" href="#custom-v-pills-security"
role="tab" aria-controls="custom-v-pills-seo" aria-selected="false">
<i class="ri-global-line d-block fs-20 mb-1"></i> Security
</a>
</div>
<div class="col-lg-12 border-bottom border-bottom-dashed pb-2">
<div class="card card-height-100 border-primary bg-opacity-10 pb-2 shadow">
{{ createImageInput('secondary_logo', 'Secondary Logo', '', $data->secondary_logo) }}
</div>
</div>
</div>
<div class="file-manager-content w-100 p-3 py-0">
<div class="mx-n3 file-manager-content-scroll px-4 pt-4" data-simplebar>
<div>
<div class="d-flex align-items-center border-bottom border-bottom-dashed mb-3">
<h5 class="flex-grow-1 fs-16 mb-0" id="filetype-title"></h5>
<div class="flex-shrink-0">
<?php createButton('btn-primary btn-update', '', 'Submit'); ?>
<?php createButton('btn-danger btn-cancel', '', 'Cancel', route('settings.index')); ?>
</div>
</div>
<div class="tab-content text-muted mt-lg-0 mt-3">
<div class="tab-pane fade active show" id="custom-v-pills-home" role="tabpanel"
aria-labelledby="custom-v-pills-home-tab">
<div>
{{ createText('title', 'title', 'Page Title', '', $data->title) }}
<h5 class="fs-14 text-muted mb-3 mt-2">Parmalink: <a href="<?php echo env('APP_URL'); ?>"
target="_blank"><?php echo env('APP_URL'); ?></a> </h5>
</div>
<div class="col-lg-12 pb-2">
{{ createPlainTextarea('description', 'description', 'Description', $data->description) }}
</div>
<div class="row">
<div class="col-lg-6">
{{ createText('working_days', 'working_days', 'Working days', '', $data->working_days) }}
</div>
<div class="col-lg-6">
{{ createText('working_hours', 'working_hours', 'Working Hours', '', $data->working_hours) }}
</div>
</div>
<div class="col-lg-6">
{{ createText('leave_days', 'leave_days', 'Leave Days', '', $data->leave_days) }}
</div>
<div class="col-lg-12 pb-2">
{{ createPlainTextarea('content1', 'content1', 'Content1', $data->content1) }}
</div>
<div class="col-lg-12 pb-2">
{{ createPlainTextarea('content2', 'content2', 'Content2', $data->content2) }}
</div>
<div class="col-lg-12 pb-2">
{{ createPlainTextarea('content3', 'content3', 'Content3', $data->content3) }}
</div>
<div class="col-lg-12">
{{ createText('copyright_text', 'copyright_text', 'Copyright', '', $data->copyright_text) }}
</div>
</div>
<!--end tab-pane-->
<div class="tab-pane fade" id="custom-v-pills-address" role="tabpanel"
aria-labelledby="custom-v-pills-address-tab">
<div class="d-flex mb-4">
<div class="row">
<div class="col-lg-6">{{ createText('url1', 'url1', 'Url 1', '', $data->url1) }}
</div>
<div class="col-lg-6">{{ createText('url2', 'url2', 'Url 2', '', $data->url2) }}
</div>
<div class="col-lg-6">{{ createText('email', 'email', 'Email', '', $data->email) }}
</div>
<div class="col-lg-6">
{{ createText('phone', 'phone', 'Phone', '', $data->phone) }}
</div>
<div class="col-lg-6">
{{ createText('secondary_phone', 'secondary_phone', 'Secondary Phone', '', $data->secondary_phone) }}
</div>
<div class="col-lg-6">
{{ createText('location', 'location', 'Office Location', '', $data->location) }}
</div>
<div class="col-lg-12 pb-2">
{{ createPlainTextArea('google_map', '', 'Google Map', $data->google_map) }}
</div>
</div>
</div>
</div>
<!--end tab-pane-->
<div class="tab-pane fade" id="custom-v-pills-logo" role="tabpanel"
aria-labelledby="custom-v-pills-logo-tab">
<div class="d-flex mb-4">
<div class="row">
<div class="col-lg-12 border-bottom border-bottom-dashed pb-2">
<div class="card card-height-100 border-primary bg-opacity-10 pb-2 shadow">
{{ createImageInput('primary_logo', 'Primary Logo', '', $data->primary_logo) }}
</div>
</div>
<div class="col-lg-12 border-bottom border-bottom-dashed pb-2">
<div class="card card-height-100 border-primary bg-opacity-10 pb-2 shadow">
{{ createImageInput('secondary_logo', 'Secondary Logo', '', $data->secondary_logo) }}
</div>
</div>
<div class="col-lg-12 border-bottom border-bottom-dashed pb-2">
<div class="card card-height-100 border-primary bg-opacity-10 pb-2 shadow">
{{ createImageInput('thumb', 'Thumb', '', $data->thumb) }}
</div>
</div>
<div class="col-lg-12 border-bottom border-bottom-dashed pb-2">
<div class="card card-height-100 border-primary bg-opacity-10 pb-2 shadow">
{{ createImageInput('icon', 'Icon', '', $data->icon) }}
</div>
</div>
<div class="col-lg-12 border-bottom border-bottom-dashed pb-2">
<div class="card card-height-100 border-primary bg-opacity-10 pb-2 shadow">
{{ createImageInput('og_image', 'Og Image', '', $data->og_image) }}
</div>
</div>
<div class="col-lg-12 border-bottom border-bottom-dashed pb-2">
<div class="card card-height-100 border-primary bg-opacity-10 pb-2 shadow">
{{ createImageInput('no_image', 'No Image', '', $data->no_image) }}
</div>
</div>
</div>
</div>
</div>
<!--end tab-pane-->
<div class="tab-pane fade" id="custom-v-pills-social" role="tabpanel"
aria-labelledby="custom-v-pills-social-tab">
<div class="row">
<div class="col-lg-4">{{ createText('fb', 'fb', 'Facebook', '', $data->fb) }}
</div>
<div class="col-lg-4">
{{ createText('insta', 'insta', 'Instagram', '', $data->insta) }}
</div>
<div class="col-lg-4">
{{ createText('twitter', 'twitter', 'Twitter', '', $data->twitter) }}
</div>
<div class="col-lg-4">
{{ createText('tiktok', 'tiktok', 'Tiktok', '', $data->tiktok) }}
</div>
<div class="col-lg-4">
{{ createText('youtube', 'youtube', 'Youtube', '', $data->youtube) }}
</div>
</div>
</div>
<!--end tab-pane-->
<div class="tab-pane fade" id="custom-v-pills-seo" role="tabpanel"
aria-labelledby="custom-v-pills-seo-tab">
<div class="col-lg-12 pb-2">
{{ createPlainTextArea('seo_description', '', 'Seo Description', $data->seo_description) }}
</div>
<div class="col-lg-12 pb-2">
{{ createPlainTextArea('seo_keywords', '', 'Seo Keywords', $data->seo_keywords) }}
</div>
<div class="col-lg-12 pb-2">
{{ createPlainTextArea('og_tags', '', 'Og Tags', $data->og_tags) }}
</div>
</div>
<!--end tab-pane-->
<!--end tab-pane-->
<div class="tab-pane fade" id="custom-v-pills-security" role="tabpanel"
aria-labelledby="custom-v-pills-security-tab">
<div class="col-lg-12 text-danger pb-2">
First of all, add Site at V2 Bibhuti Solutions.
</div>
<div class="col-lg-12 pb-2">
{{ createPlainTextArea('recaptcha_site_key', '', 'RECAPTCHA_SITE_KEY', $data->recaptcha_site_key) }}
</div>
<div class="col-lg-12 pb-2">
{{ createPlainTextArea('recaptcha_secret_key', '', 'RECAPTCHA_SECRET_KEY', $data->recaptcha_secret_key) }}
</div>
</div>
<!--end tab-pane-->
</div>
</div>
<div class="col-lg-12 border-bottom border-bottom-dashed pb-2">
<div class="card card-height-100 border-primary bg-opacity-10 pb-2 shadow">
{{ createImageInput('thumb', 'Thumb', '', $data->thumb) }}
</div>
</div>
<div class="col-lg-12 border-bottom border-bottom-dashed pb-2">
<div class="card card-height-100 border-primary bg-opacity-10 pb-2 shadow">
{{ createImageInput('icon', 'Icon', '', $data->icon) }}
</div>
</div>
<div class="col-lg-12 border-bottom border-bottom-dashed pb-2">
<div class="card card-height-100 border-primary bg-opacity-10 pb-2 shadow">
{{ createImageInput('og_image', 'Og Image', '', $data->og_image) }}
</div>
</div>
<div class="col-lg-12 border-bottom border-bottom-dashed pb-2">
<div class="card card-height-100 border-primary bg-opacity-10 pb-2 shadow">
{{ createImageInput('no_image', 'No Image', '', $data->no_image) }}
</div>
</div>
</div>
</div>
</div>
<!--end tab-pane-->
<div class="tab-pane fade" id="custom-v-pills-social" role="tabpanel"
aria-labelledby="custom-v-pills-social-tab">
<div class="row">
<div class="col-lg-4">{{ createText('fb', 'fb', 'Facebook', '', $data->fb) }}
</div>
<div class="col-lg-4"> {{ createText('insta', 'insta', 'Instagram', '', $data->insta) }}
</div>
<div class="col-lg-4"> {{ createText('twitter', 'twitter', 'Twitter', '', $data->twitter) }}
</div>
<div class="col-lg-4"> {{ createText('tiktok', 'tiktok', 'Tiktok', '', $data->tiktok) }}
</div>
<div class="col-lg-4"> {{ createText('youtube', 'youtube', 'Youtube', '', $data->youtube) }}
</div>
</div>
</div>
<!--end tab-pane-->
<div class="tab-pane fade" id="custom-v-pills-seo" role="tabpanel"
aria-labelledby="custom-v-pills-seo-tab">
<div class="col-lg-12 pb-2">
{{ createPlainTextArea('seo_description', '', 'Seo Description', $data->seo_description) }}
</div>
<div class="col-lg-12 pb-2">
{{ createPlainTextArea('seo_keywords', '', 'Seo Keywords', $data->seo_keywords) }}
</div>
<div class="col-lg-12 pb-2">{{ createPlainTextArea('og_tags', '', 'Og Tags', $data->og_tags) }}
</div>
</div>
<!--end tab-pane-->
<!--end tab-pane-->
<div class="tab-pane fade" id="custom-v-pills-security" role="tabpanel"
aria-labelledby="custom-v-pills-security-tab">
<div class="col-lg-12 text-danger pb-2">
First of all, add Site at V2 Bibhuti Solutions.
</div>
<div class="col-lg-12 pb-2">
{{ createPlainTextArea('recaptcha_site_key', '', 'RECAPTCHA_SITE_KEY', $data->recaptcha_site_key) }}
</div>
<div class="col-lg-12 pb-2">
{{ createPlainTextArea('recaptcha_secret_key', '', 'RECAPTCHA_SECRET_KEY', $data->recaptcha_secret_key) }}
</div>
</div>
<!--end tab-pane-->
</div>
</div>
</div>
</div>
</div>
</form>
</form>
<!-- /New Design -->
<!-- /New Design -->
@endsection

View File

@ -1,263 +1,263 @@
@extends('backend.template')
@section('content')
<div class="card">
<div class="card-header d-flex justify-content-between align-items-center">
<h2>{{ label("Settings List") }}</h2>
<a href="{{ route('settings.create') }}" class="btn btn-primary"><span>{{label("Create New")}}</span></a>
</div>
<div class="card-body">
<table class="table dataTable" id="tbl_settings" data-url="{{ route('settings.sort') }}">
<thead class="table-light">
<tr>
<th class="tb-col"><span class="overline-title">{{label("Sn.")}}</span></th>
<th class="tb-col"><span class="overline-title">{{ label("title") }}</span></th>
<th class="tb-col"><span class="overline-title">{{ label("url1") }}</span></th>
<th class="tb-col"><span class="overline-title">{{ label("url2") }}</span></th>
<th class="tb-col"><span class="overline-title">{{ label("email") }}</span></th>
<th class="tb-col"><span class="overline-title">{{ label("phone") }}</span></th>
<th class="tb-col"><span class="overline-title">{{ label("secondary_phone") }}</span></th>
<th class="tb-col"><span class="overline-title">{{ label("fb") }}</span></th>
<th class="tb-col"><span class="overline-title">{{ label("insta") }}</span></th>
<th class="tb-col"><span class="overline-title">{{ label("twitter") }}</span></th>
<th class="tb-col"><span class="overline-title">{{ label("tiktok") }}</span></th>
<th class="tb-col"><span class="overline-title">{{ label("primary_logo") }}</span></th>
<th class="tb-col"><span class="overline-title">{{ label("secondary_logo") }}</span></th>
<th class="tb-col"><span class="overline-title">{{ label("thumb") }}</span></th>
<th class="tb-col"><span class="overline-title">{{ label("icon") }}</span></th>
<th class="tb-col"><span class="overline-title">{{ label("og_image") }}</span></th>
<th class="tb-col"><span class="overline-title">{{ label("no_image") }}</span></th>
<th class="tb-col"><span class="overline-title">{{ label("copyright_text") }}</span></th>
<th class="tb-col"><span class="overline-title">{{ label("content1") }}</span></th>
<th class="tb-col"><span class="overline-title">{{ label("content2") }}</span></th>
<th class="tb-col"><span class="overline-title">{{ label("content3") }}</span></th>
<th class="tb-col" data-sortable="false"><span
class="overline-title">{{ label("Action") }}</span>
</th>
</tr>
</thead>
<tbody>
@php
$i = 1;
@endphp
@foreach ($data as $item)
<div class="card">
<div class="card-header d-flex justify-content-between align-items-center">
<h2>{{ label('Settings List') }}</h2>
<a href="{{ route('settings.create') }}" class="btn btn-primary"><span>{{ label('Create New') }}</span></a>
</div>
<div class="card-body">
<table class="table dataTable" id="tbl_settings" data-url="{{ route('settings.sort') }}">
<thead class="table-light">
<tr>
<th class="tb-col"><span class="overline-title">{{ label('Sn.') }}</span></th>
<th class="tb-col"><span class="overline-title">{{ label('title') }}</span></th>
<th class="tb-col"><span class="overline-title">{{ label('url1') }}</span></th>
<th class="tb-col"><span class="overline-title">{{ label('url2') }}</span></th>
<th class="tb-col"><span class="overline-title">{{ label('email') }}</span></th>
<th class="tb-col"><span class="overline-title">{{ label('phone') }}</span></th>
<th class="tb-col"><span class="overline-title">{{ label('secondary_phone') }}</span></th>
<th class="tb-col"><span class="overline-title">{{ label('fb') }}</span></th>
<th class="tb-col"><span class="overline-title">{{ label('insta') }}</span></th>
<th class="tb-col"><span class="overline-title">{{ label('twitter') }}</span></th>
<th class="tb-col"><span class="overline-title">{{ label('tiktok') }}</span></th>
<th class="tb-col"><span class="overline-title">{{ label('primary_logo') }}</span></th>
<th class="tb-col"><span class="overline-title">{{ label('secondary_logo') }}</span></th>
<th class="tb-col"><span class="overline-title">{{ label('thumb') }}</span></th>
<th class="tb-col"><span class="overline-title">{{ label('icon') }}</span></th>
<th class="tb-col"><span class="overline-title">{{ label('og_image') }}</span></th>
<th class="tb-col"><span class="overline-title">{{ label('no_image') }}</span></th>
<th class="tb-col"><span class="overline-title">{{ label('copyright_text') }}</span></th>
<th class="tb-col"><span class="overline-title">{{ label('content1') }}</span></th>
<th class="tb-col"><span class="overline-title">{{ label('content2') }}</span></th>
<th class="tb-col"><span class="overline-title">{{ label('content3') }}</span></th>
<th class="tb-col" data-sortable="false"><span class="overline-title">{{ label('Action') }}</span>
</th>
</tr>
</thead>
<tbody>
@php
$i = 1;
@endphp
@foreach ($data as $item)
<tr data-id="{{ $item->setting_id }}" data-display_order="{{ $item->display_order }}"
class="draggable-row <?php echo $item->status == 0 ? 'bg-light bg-danger' : ''; ?>">
<td class="tb-col">{{ $i++ }}</td>
<td class="tb-col">{{ $item->title }}</td>
<td class="tb-col">{{ $item->url1 }}</td>
<td class="tb-col">{{ $item->url2 }}</td>
<td class="tb-col">{{ $item->email }}</td>
<td class="tb-col">{{ $item->phone }}</td>
<td class="tb-col">{{ $item->secondary_phone }}</td>
<td class="tb-col">{{ $item->fb }}</td>
<td class="tb-col">{{ $item->insta }}</td>
<td class="tb-col">{{ $item->twitter }}</td>
<td class="tb-col">{{ $item->tiktok }}</td>
<td class="tb-col">{{ showImageThumb($item->primary_logo) }}</td>
<td class="tb-col">{{ showImageThumb($item->secondary_logo) }}</td>
<td class="tb-col">{{ showImageThumb($item->thumb) }}</td>
<td class="tb-col">{{ showImageThumb($item->icon) }}</td>
<td class="tb-col">{{ showImageThumb($item->og_image) }}</td>
<td class="tb-col">{{ showImageThumb($item->no_image) }}</td>
<td class="tb-col">{{ $item->copyright_text }}</td>
<td class="tb-col">{{ $item->content1 }}</td>
<td class="tb-col">{{ $item->content2 }}</td>
<td class="tb-col">{{ $item->content3 }}</td>
<td class="tb-col">
<div class="dropdown d-inline-block">
<button class="btn btn-soft-secondary btn-sm dropdown" type="button"
data-bs-toggle="dropdown" aria-expanded="false">
<i class="ri-more-fill align-middle"></i>
</button>
<ul class="dropdown-menu dropdown-menu-end">
<li><a href="{{ route('settings.show', [$item->setting_id]) }}"
class="dropdown-item"><i
class="ri-eye-fill align-bottom me-2 text-muted"></i>
{{ label('View') }}</a></li>
<li><a href="{{ route('settings.edit', [$item->setting_id]) }}"
class="dropdown-item edit-item-btn"><i
class="ri-pencil-fill align-bottom me-2 text-muted"></i>
{{ label('Edit') }}</a></li>
<li>
<a href="{{ route('settings.destroy', [$item->setting_id]) }}"
class="dropdown-item remove-item-btn" onclick="confirmDelete(this.href)">
<i class="ri-delete-bin-fill align-bottom me-2 text-muted"></i>
{{ label('Delete') }}
</a>
<tr data-id="{{$item->setting_id}}" data-display_order="{{$item->display_order}}" class="draggable-row <?php echo ($item->status==0)?"bg-light bg-danger":""; ?>">
<td class="tb-col">{{ $i++ }}</td><td class="tb-col">{{ $item->title }}</td>
<td class="tb-col">{{ $item->url1 }}</td>
<td class="tb-col">{{ $item->url2 }}</td>
<td class="tb-col">{{ $item->email }}</td>
<td class="tb-col">{{ $item->phone }}</td>
<td class="tb-col">{{ $item->secondary_phone }}</td>
<td class="tb-col">{{ $item->fb }}</td>
<td class="tb-col">{{ $item->insta }}</td>
<td class="tb-col">{{ $item->twitter }}</td>
<td class="tb-col">{{ $item->tiktok }}</td>
<td class="tb-col">{{ showImageThumb($item->primary_logo) }}</td>
<td class="tb-col">{{ showImageThumb($item->secondary_logo) }}</td>
<td class="tb-col">{{ showImageThumb($item->thumb) }}</td>
<td class="tb-col">{{ showImageThumb($item->icon) }}</td>
<td class="tb-col">{{ showImageThumb($item->og_image) }}</td>
<td class="tb-col">{{ showImageThumb($item->no_image) }}</td>
<td class="tb-col">{{ $item->copyright_text }}</td>
<td class="tb-col">{{ $item->content1 }}</td>
<td class="tb-col">{{ $item->content2 }}</td>
<td class="tb-col">{{ $item->content3 }}</td>
<td class="tb-col">
<div class="dropdown d-inline-block">
<button class="btn btn-soft-secondary btn-sm dropdown" type="button" data-bs-toggle="dropdown" aria-expanded="false">
<i class="ri-more-fill align-middle"></i>
</button>
<ul class="dropdown-menu dropdown-menu-end">
<li><a href="{{route('settings.show',[$item->setting_id])}}" class="dropdown-item"><i class="ri-eye-fill align-bottom me-2 text-muted"></i> {{label("View")}}</a></li>
<li><a href="{{route('settings.edit',[$item->setting_id])}}" class="dropdown-item edit-item-btn"><i class="ri-pencil-fill align-bottom me-2 text-muted"></i> {{label("Edit")}}</a></li>
<li>
<a href="{{route('settings.toggle',[$item->setting_id])}}" class="dropdown-item toggle-item-btn" onclick="confirmToggle(this.href)">
<i class="ri-article-fill align-bottom me-2 text-muted"></i> {{ ($item->status==1)?label('Unpublish'):label('Publish') }}
</a>
</li>
<li>
<a href="{{route('settings.destroy',[$item->setting_id])}}" class="dropdown-item remove-item-btn" onclick="confirmDelete(this.href)">
<i class="ri-delete-bin-fill align-bottom me-2 text-muted"></i> {{ label('Delete') }}
</a>
</li>
</ul>
</div>
</li>
</ul>
</div>
</td>
</tr>
</td>
</tr>
@endforeach
@endforeach
</tbody>
</table>
</tbody>
</table>
</div>
</div>
</div>
</div>
@endsection
@endsection
@push("css")
<link rel="stylesheet" href="https://cdn.datatables.net/1.13.5/css/dataTables.bootstrap4.min.css">
<link rel="stylesheet" href="https://cdn.datatables.net/rowreorder/1.4.0/css/rowReorder.dataTables.min.css">
@push('css')
<link rel="stylesheet" href="https://cdn.datatables.net/1.13.5/css/dataTables.bootstrap4.min.css">
<link rel="stylesheet" href="https://cdn.datatables.net/rowreorder/1.4.0/css/rowReorder.dataTables.min.css">
@endpush
@push("js")
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.68/pdfmake.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.68/vfs_fonts.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="https://cdn.datatables.net/1.13.5/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/buttons/2.4.1/js/buttons.html5.min.js"></script>
<script src="https://cdn.datatables.net/rowreorder/1.4.0/js/dataTables.rowReorder.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
@push('js')
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.68/pdfmake.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.68/vfs_fonts.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="https://cdn.datatables.net/1.13.5/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/buttons/2.4.1/js/buttons.html5.min.js"></script>
<script src="https://cdn.datatables.net/rowreorder/1.4.0/js/dataTables.rowReorder.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<script>
$(document).ready(function(e) {
$('.change-alias-badge').on('click', function() {
var aliasWrapper = $(this).prev('.alias-wrapper');
var aliasSpan = aliasWrapper.find('.alias');
var aliasInput = aliasWrapper.find('.alias-input');
var isEditing = $(this).hasClass('editing');
aliasInput.toggleClass("d-none");
if (isEditing) {
// Update alias text and switch to non-editing state
var newAlias = aliasInput.val();
aliasSpan.text(newAlias);
aliasSpan.show();
aliasInput.hide();
$(this).removeClass('editing').text('Change Alias');
var articleId = $(aliasWrapper).data('id');
var ajaxUrl = "{{ route('settings.updatealias') }}";
var data = {
articleId: articleId,
newAlias: newAlias
};
<script>
$(document).ready(function(e) {
$('.change-alias-badge').on('click', function() {
var aliasWrapper = $(this).prev('.alias-wrapper');
var aliasSpan = aliasWrapper.find('.alias');
var aliasInput = aliasWrapper.find('.alias-input');
var isEditing = $(this).hasClass('editing');
aliasInput.toggleClass("d-none");
if (isEditing) {
// Update alias text and switch to non-editing state
var newAlias = aliasInput.val();
aliasSpan.text(newAlias);
aliasSpan.show();
aliasInput.hide();
$(this).removeClass('editing').text('Change Alias');
var articleId = $(aliasWrapper).data('id');
var ajaxUrl = "{{ route('settings.updatealias') }}";
var data = {
articleId: articleId,
newAlias: newAlias
};
$.ajax({
url: ajaxUrl,
type: 'POST',
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
},
data: data,
success: function(response) {
console.log(response);
},
error: function(xhr, status, error) {
console.error(error);
$.ajax({
url: ajaxUrl,
type: 'POST',
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
},
data: data,
success: function(response) {
console.log(response);
},
error: function(xhr, status, error) {
console.error(error);
}
});
} else {
// Switch to editing state
aliasSpan.hide();
aliasInput.show().focus();
$(this).addClass('editing').text('Save Alias');
}
});
} else {
// Switch to editing state
aliasSpan.hide();
aliasInput.show().focus();
$(this).addClass('editing').text('Save Alias');
}
});
var mytable = $(".dataTable").DataTable({
ordering: true,
rowReorder: {
//selector: 'tr'
},
});
var isRowReorderComplete = false;
mytable.on('row-reorder', function(e, diff, edit) {
isRowReorderComplete = true;
});
mytable.on('draw', function() {
if (isRowReorderComplete) {
var url = mytable.table().node().getAttribute('data-url');
var ids = mytable.rows().nodes().map(function(node) {
return $(node).data('id');
}).toArray();
console.log(ids);
$.ajax({
url: url,
type: "POST",
headers: {
"X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr('content')
var mytable = $(".dataTable").DataTable({
ordering: true,
rowReorder: {
//selector: 'tr'
},
data: {
id_order: ids
},
success: function(response) {
console.log(response);
},
error: function(xhr, status, error) {
console.error(error);
});
var isRowReorderComplete = false;
mytable.on('row-reorder', function(e, diff, edit) {
isRowReorderComplete = true;
});
mytable.on('draw', function() {
if (isRowReorderComplete) {
var url = mytable.table().node().getAttribute('data-url');
var ids = mytable.rows().nodes().map(function(node) {
return $(node).data('id');
}).toArray();
console.log(ids);
$.ajax({
url: url,
type: "POST",
headers: {
"X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr('content')
},
data: {
id_order: ids
},
success: function(response) {
console.log(response);
},
error: function(xhr, status, error) {
console.error(error);
}
});
isRowReorderComplete = false;
}
});
isRowReorderComplete=false;
}
});
});
function confirmDelete(url) {
event.preventDefault();
Swal.fire({
title: 'Are you sure?',
text: 'You will not be able to recover this item!',
icon: 'warning',
showCancelButton: true,
confirmButtonText: 'Delete',
cancelButtonText: 'Cancel',
reverseButtons: true
}).then((result) => {
if (result.isConfirmed) {
$.ajax({
url: url,
type: 'DELETE',
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
},
success: function(response) {
Swal.fire('Deleted!', 'The item has been deleted.', 'success');
location.reload();
},
error: function(xhr, status, error) {
Swal.fire('Error!', 'An error occurred while deleting the item.', 'error');
});
function confirmDelete(url) {
event.preventDefault();
Swal.fire({
title: 'Are you sure?',
text: 'You will not be able to recover this item!',
icon: 'warning',
showCancelButton: true,
confirmButtonText: 'Delete',
cancelButtonText: 'Cancel',
reverseButtons: true
}).then((result) => {
if (result.isConfirmed) {
$.ajax({
url: url,
type: 'DELETE',
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
},
success: function(response) {
Swal.fire('Deleted!', 'The item has been deleted.', 'success');
location.reload();
},
error: function(xhr, status, error) {
Swal.fire('Error!', 'An error occurred while deleting the item.', 'error');
}
});
}
});
}
});
}
function confirmToggle(url) {
event.preventDefault();
Swal.fire({
title: 'Are you sure?',
text: 'Publish Status of Item will be changed!! if Unpublished, links will be dead!',
icon: 'warning',
showCancelButton: true,
confirmButtonText: 'Proceed',
cancelButtonText: 'Cancel',
reverseButtons: true
}).then((result) => {
if (result.isConfirmed) {
$.ajax({
url: url,
type: 'GET',
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
},
success: function(response) {
Swal.fire('Updated!', 'Publishing Status has been updated.', 'success');
location.reload();
},
error: function(xhr, status, error) {
Swal.fire('Error!', 'An error occurred.', 'error');
function confirmToggle(url) {
event.preventDefault();
Swal.fire({
title: 'Are you sure?',
text: 'Publish Status of Item will be changed!! if Unpublished, links will be dead!',
icon: 'warning',
showCancelButton: true,
confirmButtonText: 'Proceed',
cancelButtonText: 'Cancel',
reverseButtons: true
}).then((result) => {
if (result.isConfirmed) {
$.ajax({
url: url,
type: 'GET',
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
},
success: function(response) {
Swal.fire('Updated!', 'Publishing Status has been updated.', 'success');
location.reload();
},
error: function(xhr, status, error) {
Swal.fire('Error!', 'An error occurred.', 'error');
}
});
}
});
}
});
}
</script>
</script>
@endpush

View File

@ -0,0 +1,28 @@
@extends('backend.template')
@section('content')
<div class='card'>
<div class='card-header d-flex justify-content-between align-items-center'>
<h2 class="">{{ label('Add Team') }}</h2>
<?php createButton('btn-primary btn-cancel', '', 'Cancel', route('teams.index')); ?>
</div>
<div class='card-body'>
<form action="{{ route('teams.store') }}" id="storeCustomForm" method="POST">
@csrf
<div class="row">
<div class="col-lg-6">{{ createText('title', 'title', 'Title') }}
</div>
<div class="col-lg-12 pb-2">{{ createImageInput('photo', 'Photo') }}
</div>
<div class="col-lg-6">{{ createText('designation', 'designation', 'Designation') }}
</div>
<div class="col-lg-12 pb-2">
{{ createTextarea('description', 'description ckeditor-classic', 'Description') }}
</div> <br>
<div class="col-md-12"><?php createButton('btn-primary btn-store', '', 'Submit'); ?>
<?php createButton('btn-primary btn-cancel', '', 'Cancel', route('teams.index')); ?>
</div>
</form>
</div>
</div>
@endsection

View File

@ -0,0 +1,28 @@
@extends('backend.template')
@section('content')
<div class='card'>
<div class='card-header d-flex justify-content-between align-items-center'>
<h2 class="">{{ label('Edit Team') }}</h2>
<?php createButton('btn-primary btn-cancel', '', 'Cancel', route('teams.index')); ?>
</div>
<div class='card-body'>
<form action="{{ route('teams.update', [$data->team_id]) }}" id="updateCustomForm" method="POST">
@csrf <input type=hidden name='team_id' value='{{ $data->team_id }}' />
<div class="row">
<div class="col-lg-6">{{ createText('title', 'title', 'Title', '', $data->title) }}
</div>
<div class="col-lg-12 pb-2">{{ createImageInput('photo', 'Photo', '', $data->photo) }}
</div>
<div class="col-lg-6">{{ createText('designation', 'designation', 'Designation', '', $data->designation) }}
</div>
<div class="col-lg-12 pb-2">
{{ createTextarea('description', 'description ckeditor-classic', 'Description', $data->description) }}
</div>
<div class="col-md-12"><?php createButton('btn-primary btn-update', '', 'Submit'); ?>
<?php createButton('btn-primary btn-cancel', '', 'Cancel', route('teams.index')); ?>
</div>
</form>
</div>
</div>
@endsection

View File

@ -0,0 +1,245 @@
@extends('backend.template')
@section('content')
<div class="card">
<div class="card-header d-flex justify-content-between align-items-center">
<h2>{{ label('Teams List') }}</h2>
<a href="{{ route('teams.create') }}" class="btn btn-primary"><span>{{ label('Create New') }}</span></a>
</div>
<div class="card-body">
<table class="table dataTable" id="tbl_teams" data-url="{{ route('teams.sort') }}">
<thead class="table-light">
<tr>
<th class="tb-col"><span class="overline-title">{{ label('Sn.') }}</span></th>
<th class="tb-col"><span class="overline-title">{{ label('title') }}</span></th>
<th class="tb-col"><span class="overline-title">{{ label('alias') }}</span></th>
<th class="tb-col"><span class="overline-title">{{ label('photo') }}</span></th>
<th class="tb-col"><span class="overline-title">{{ label('designation') }}</span></th>
<th class="tb-col" data-sortable="false"><span class="overline-title">{{ label('Action') }}</span>
</th>
</tr>
</thead>
<tbody>
@php
$i = 1;
@endphp
@foreach ($data as $item)
<tr data-id="{{ $item->team_id }}" data-display_order="{{ $item->display_order }}"
class="draggable-row <?php echo $item->status == 0 ? 'bg-light bg-danger' : ''; ?>">
<td class="tb-col">{{ $i++ }}</td>
<td class="tb-col">{{ $item->title }}</td>
<td class="tb-col">
<div class="alias-wrapper" data-id="{{ $item->team_id }}">
<span class="alias">{{ $item->alias }}</span>
<input type="text" class="alias-input d-none" value="{{ $item->alias }}"
id="alias_{{ $item->team_id }}" />
</div>
<span class="badge badge-soft-primary change-alias-badge">change alias</span>
</td>
<td class="tb-col">{{ showImageThumb($item->photo) }}</td>
<td class="tb-col">{{ $item->designation }}</td>
<td class="tb-col">
<div class="dropdown d-inline-block">
<button class="btn btn-soft-secondary btn-sm dropdown" type="button"
data-bs-toggle="dropdown" aria-expanded="false">
<i class="ri-more-fill align-middle"></i>
</button>
<ul class="dropdown-menu dropdown-menu-end">
<li><a href="{{ route('teams.show', [$item->team_id]) }}" class="dropdown-item"><i
class="ri-eye-fill align-bottom me-2 text-muted"></i>
{{ label('View') }}</a></li>
<li><a href="{{ route('teams.edit', [$item->team_id]) }}"
class="dropdown-item edit-item-btn"><i
class="ri-pencil-fill align-bottom me-2 text-muted"></i>
{{ label('Edit') }}</a></li>
<li>
<a href="{{ route('teams.toggle', [$item->team_id]) }}"
class="dropdown-item toggle-item-btn" onclick="confirmToggle(this.href)">
<i class="ri-article-fill align-bottom me-2 text-muted"></i>
{{ $item->status == 1 ? label('Unpublish') : label('Publish') }}
</a>
</li>
<li>
<a href="{{ route('teams.destroy', [$item->team_id]) }}"
class="dropdown-item remove-item-btn" onclick="confirmDelete(this.href)">
<i class="ri-delete-bin-fill align-bottom me-2 text-muted"></i>
{{ label('Delete') }}
</a>
</li>
</ul>
</div>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
@endsection
@push('css')
<link rel="stylesheet" href="https://cdn.datatables.net/1.13.5/css/dataTables.bootstrap4.min.css">
<link rel="stylesheet" href="https://cdn.datatables.net/rowreorder/1.4.0/css/rowReorder.dataTables.min.css">
@endpush
@push('js')
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.68/pdfmake.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.68/vfs_fonts.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="https://cdn.datatables.net/1.13.5/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/buttons/2.4.1/js/buttons.html5.min.js"></script>
<script src="https://cdn.datatables.net/rowreorder/1.4.0/js/dataTables.rowReorder.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<script>
$(document).ready(function(e) {
$('.change-alias-badge').on('click', function() {
var aliasWrapper = $(this).prev('.alias-wrapper');
var aliasSpan = aliasWrapper.find('.alias');
var aliasInput = aliasWrapper.find('.alias-input');
var isEditing = $(this).hasClass('editing');
aliasInput.toggleClass("d-none");
if (isEditing) {
// Update alias text and switch to non-editing state
var newAlias = aliasInput.val();
aliasSpan.text(newAlias);
aliasSpan.show();
aliasInput.hide();
$(this).removeClass('editing').text('Change Alias');
var articleId = $(aliasWrapper).data('id');
var ajaxUrl = "{{ route('teams.updatealias') }}";
var data = {
articleId: articleId,
newAlias: newAlias
};
$.ajax({
url: ajaxUrl,
type: 'POST',
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
},
data: data,
success: function(response) {
console.log(response);
},
error: function(xhr, status, error) {
console.error(error);
}
});
} else {
// Switch to editing state
aliasSpan.hide();
aliasInput.show().focus();
$(this).addClass('editing').text('Save Alias');
}
});
var mytable = $(".dataTable").DataTable({
ordering: true,
rowReorder: {
//selector: 'tr'
},
});
var isRowReorderComplete = false;
mytable.on('row-reorder', function(e, diff, edit) {
isRowReorderComplete = true;
});
mytable.on('draw', function() {
if (isRowReorderComplete) {
var url = mytable.table().node().getAttribute('data-url');
var ids = mytable.rows().nodes().map(function(node) {
return $(node).data('id');
}).toArray();
console.log(ids);
$.ajax({
url: url,
type: "POST",
headers: {
"X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr('content')
},
data: {
id_order: ids
},
success: function(response) {
console.log(response);
},
error: function(xhr, status, error) {
console.error(error);
}
});
isRowReorderComplete = false;
}
});
});
function confirmDelete(url) {
event.preventDefault();
Swal.fire({
title: 'Are you sure?',
text: 'You will not be able to recover this item!',
icon: 'warning',
showCancelButton: true,
confirmButtonText: 'Delete',
cancelButtonText: 'Cancel',
reverseButtons: true
}).then((result) => {
if (result.isConfirmed) {
$.ajax({
url: url,
type: 'DELETE',
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
},
success: function(response) {
Swal.fire('Deleted!', 'The item has been deleted.', 'success');
location.reload();
},
error: function(xhr, status, error) {
Swal.fire('Error!', 'An error occurred while deleting the item.', 'error');
}
});
}
});
}
function confirmToggle(url) {
event.preventDefault();
Swal.fire({
title: 'Are you sure?',
text: 'Publish Status of Item will be changed!! if Unpublished, links will be dead!',
icon: 'warning',
showCancelButton: true,
confirmButtonText: 'Proceed',
cancelButtonText: 'Cancel',
reverseButtons: true
}).then((result) => {
if (result.isConfirmed) {
$.ajax({
url: url,
type: 'GET',
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
},
success: function(response) {
Swal.fire('Updated!', 'Publishing Status has been updated.', 'success');
location.reload();
},
error: function(xhr, status, error) {
Swal.fire('Error!', 'An error occurred.', 'error');
}
});
}
});
}
</script>
@endpush

View File

@ -0,0 +1,29 @@
@extends('backend.template')
@section('content')
<div class='card'>
<div class='card-header d-flex justify-content-between align-items-center'>
<h2><?php echo label('View Details'); ?></h2>
<?php createButton("btn-primary btn-cancel","","Back to List",route('teams.index')); ?>
</div>
<div class='card-body'>
<p><b>Title :&nbsp;&nbsp;&nbsp;&nbsp;</b> <span>{{$data->title}}</span></p><p><b>Alias :&nbsp;&nbsp;&nbsp;&nbsp;</b> <span>{{$data->alias}}</span></p><p><b>Photo :&nbsp;&nbsp;&nbsp;&nbsp;</b> <span>{{$data->photo}}</span></p><p><b>Designation :&nbsp;&nbsp;&nbsp;&nbsp;</b> <span>{{$data->designation}}</span></p><p><b>Description :&nbsp;&nbsp;&nbsp;&nbsp;</b> <span>{{$data->description}}</span></p><p><b>Display Order :&nbsp;&nbsp;&nbsp;&nbsp;</b> <span>{{$data->display_order}}</span></p><p><b>Status :&nbsp;&nbsp;&nbsp;&nbsp;</b> <span
class="{{$data->status == 1 ? 'text-success' : 'text-danger'}}">{{$data->status == 1 ? 'Active' : 'Inactive'}}</span></p><p><b>Createdby :&nbsp;&nbsp;&nbsp;&nbsp;</b> <span>{{$data->createdby}}</span></p><p><b>Updatedby :&nbsp;&nbsp;&nbsp;&nbsp;</b> <span>{{$data->updatedby}}</span></p><div class="d-flex justify-content-between">
<div>
<p><b>Created On :</b>&nbsp;&nbsp;&nbsp;<span>{{$data->created_at}}</span></p>
<p><b>Created By :</b>&nbsp;&nbsp;&nbsp;<span>{{$data->createdBy}}</span></p>
</div>
<div>
<p><b>Updated On :</b>&nbsp;&nbsp;&nbsp;<span>{{$data->updated_at}}</span></p>
<p><b>Updated By :</b>&nbsp;&nbsp;&nbsp;<span>{{$data->updatedBy}}</span></p>
</div>
</div>
</div>
</div>
@endSection

View File

@ -0,0 +1,25 @@
@extends('backend.template')
@section('content')
<div class='card'>
<div class='card-header d-flex justify-content-between align-items-center'>
<h2 class="">{{ label('Add Videos') }}</h2>
<?php createButton('btn-primary btn-cancel', '', 'Cancel', route('videos.index')); ?>
</div>
<div class='card-body'>
<form action="{{ route('videos.store') }}" id="storeCustomForm" method="POST">
@csrf
<div class="row">
<div class="col-lg-6">{{ createText('title', 'title', 'Title') }}
</div>
<div class="col-lg-6">{{ createText('video_url', 'video_url', 'Video Url') }}
</div>
<div class="col-lg-12 pb-2">{{ createImageInput('image', 'Image') }}
</div>
<div class="col-md-12"><?php createButton('btn-primary btn-store', '', 'Submit'); ?>
<?php createButton('btn-primary btn-cancel', '', 'Cancel', route('videos.index')); ?>
</div>
</form>
</div>
</div>
@endsection

View File

@ -0,0 +1,25 @@
@extends('backend.template')
@section('content')
<div class='card'>
<div class='card-header d-flex justify-content-between align-items-center'>
<h2 class="">{{ label('Edit Videos') }}</h2>
<?php createButton('btn-primary btn-cancel', '', 'Cancel', route('videos.index')); ?>
</div>
<div class='card-body'>
<form action="{{ route('videos.update', [$data->video_id]) }}" id="updateCustomForm" method="POST">
@csrf <input type=hidden name='video_id' value='{{ $data->video_id }}' />
<div class="row">
<div class="col-lg-6">{{ createText('title', 'title', 'Title', '', $data->title) }}
</div>
<div class="col-lg-6">{{ createText('video_url', 'video_url', 'Video Url', '', $data->video_url) }}
</div>
<div class="col-lg-12 pb-2">{{ createImageInput('image', 'Image', '', $data->image) }}
</div>
<div class="col-md-12"><?php createButton('btn-primary btn-update', '', 'Submit'); ?>
<?php createButton('btn-primary btn-cancel', '', 'Cancel', route('videos.index')); ?>
</div>
</form>
</div>
</div>
@endsection

View File

@ -0,0 +1,241 @@
@extends('backend.template')
@section('content')
<div class="card">
<div class="card-header d-flex justify-content-between align-items-center">
<h2>{{ label("Videos List") }}</h2>
<a href="{{ route('videos.create') }}" class="btn btn-primary"><span>{{label("Create New")}}</span></a>
</div>
<div class="card-body">
<table class="table dataTable" id="tbl_videos" data-url="{{ route('videos.sort') }}">
<thead class="table-light">
<tr>
<th class="tb-col"><span class="overline-title">{{label("Sn.")}}</span></th>
<th class="tb-col"><span class="overline-title">{{ label("title") }}</span></th>
<th class="tb-col"><span class="overline-title">{{ label("video_url") }}</span></th>
<th class="tb-col"><span class="overline-title">{{ label("image") }}</span></th>
<th class="tb-col"><span class="overline-title">{{ label("alias") }}</span></th>
<th class="tb-col"><span class="overline-title">{{ label("createdBy") }}</span></th>
<th class="tb-col"><span class="overline-title">{{ label("updatedBy") }}</span></th>
<th class="tb-col" data-sortable="false"><span
class="overline-title">{{ label("Action") }}</span>
</th>
</tr>
</thead>
<tbody>
@php
$i = 1;
@endphp
@foreach ($data as $item)
<tr data-id="{{$item->video_id}}" data-display_order="{{$item->display_order}}" class="draggable-row <?php echo ($item->status==0)?"bg-light bg-danger":""; ?>">
<td class="tb-col">{{ $i++ }}</td><td class="tb-col">{{ $item->title }}</td>
<td class="tb-col">{{ $item->video_url }}</td>
<td class="tb-col">{{ showImageThumb($item->image) }}</td>
<td class="tb-col">
<div class="alias-wrapper" data-id="{{$item->video_id}}">
<span class="alias">{{ $item->alias }}</span>
<input type="text" class="alias-input d-none" value="{{ $item->alias }}" id="alias_{{$item->video_id}}" />
</div>
<span class="badge badge-soft-primary change-alias-badge">change alias</span>
</td>
<td class="tb-col">{{ $item->createdBy }}</td>
<td class="tb-col">{{ $item->updatedBy }}</td>
<td class="tb-col">
<div class="dropdown d-inline-block">
<button class="btn btn-soft-secondary btn-sm dropdown" type="button" data-bs-toggle="dropdown" aria-expanded="false">
<i class="ri-more-fill align-middle"></i>
</button>
<ul class="dropdown-menu dropdown-menu-end">
<li><a href="{{route('videos.show',[$item->video_id])}}" class="dropdown-item"><i class="ri-eye-fill align-bottom me-2 text-muted"></i> {{label("View")}}</a></li>
<li><a href="{{route('videos.edit',[$item->video_id])}}" class="dropdown-item edit-item-btn"><i class="ri-pencil-fill align-bottom me-2 text-muted"></i> {{label("Edit")}}</a></li>
<li>
<a href="{{route('videos.toggle',[$item->video_id])}}" class="dropdown-item toggle-item-btn" onclick="confirmToggle(this.href)">
<i class="ri-article-fill align-bottom me-2 text-muted"></i> {{ ($item->status==1)?label('Unpublish'):label('Publish') }}
</a>
</li>
<li>
<a href="{{route('videos.destroy',[$item->video_id])}}" class="dropdown-item remove-item-btn" onclick="confirmDelete(this.href)">
<i class="ri-delete-bin-fill align-bottom me-2 text-muted"></i> {{ label('Delete') }}
</a>
</li>
</ul>
</div>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
@endsection
@push("css")
<link rel="stylesheet" href="https://cdn.datatables.net/1.13.5/css/dataTables.bootstrap4.min.css">
<link rel="stylesheet" href="https://cdn.datatables.net/rowreorder/1.4.0/css/rowReorder.dataTables.min.css">
@endpush
@push("js")
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.68/pdfmake.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.68/vfs_fonts.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="https://cdn.datatables.net/1.13.5/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/buttons/2.4.1/js/buttons.html5.min.js"></script>
<script src="https://cdn.datatables.net/rowreorder/1.4.0/js/dataTables.rowReorder.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<script>
$(document).ready(function(e) {
$('.change-alias-badge').on('click', function() {
var aliasWrapper = $(this).prev('.alias-wrapper');
var aliasSpan = aliasWrapper.find('.alias');
var aliasInput = aliasWrapper.find('.alias-input');
var isEditing = $(this).hasClass('editing');
aliasInput.toggleClass("d-none");
if (isEditing) {
// Update alias text and switch to non-editing state
var newAlias = aliasInput.val();
aliasSpan.text(newAlias);
aliasSpan.show();
aliasInput.hide();
$(this).removeClass('editing').text('Change Alias');
var articleId = $(aliasWrapper).data('id');
var ajaxUrl = "{{ route('videos.updatealias') }}";
var data = {
articleId: articleId,
newAlias: newAlias
};
$.ajax({
url: ajaxUrl,
type: 'POST',
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
},
data: data,
success: function(response) {
console.log(response);
},
error: function(xhr, status, error) {
console.error(error);
}
});
} else {
// Switch to editing state
aliasSpan.hide();
aliasInput.show().focus();
$(this).addClass('editing').text('Save Alias');
}
});
var mytable = $(".dataTable").DataTable({
ordering: true,
rowReorder: {
//selector: 'tr'
},
});
var isRowReorderComplete = false;
mytable.on('row-reorder', function(e, diff, edit) {
isRowReorderComplete = true;
});
mytable.on('draw', function() {
if (isRowReorderComplete) {
var url = mytable.table().node().getAttribute('data-url');
var ids = mytable.rows().nodes().map(function(node) {
return $(node).data('id');
}).toArray();
console.log(ids);
$.ajax({
url: url,
type: "POST",
headers: {
"X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr('content')
},
data: {
id_order: ids
},
success: function(response) {
console.log(response);
},
error: function(xhr, status, error) {
console.error(error);
}
});
isRowReorderComplete=false;
}
});
});
function confirmDelete(url) {
event.preventDefault();
Swal.fire({
title: 'Are you sure?',
text: 'You will not be able to recover this item!',
icon: 'warning',
showCancelButton: true,
confirmButtonText: 'Delete',
cancelButtonText: 'Cancel',
reverseButtons: true
}).then((result) => {
if (result.isConfirmed) {
$.ajax({
url: url,
type: 'DELETE',
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
},
success: function(response) {
Swal.fire('Deleted!', 'The item has been deleted.', 'success');
location.reload();
},
error: function(xhr, status, error) {
Swal.fire('Error!', 'An error occurred while deleting the item.', 'error');
}
});
}
});
}
function confirmToggle(url) {
event.preventDefault();
Swal.fire({
title: 'Are you sure?',
text: 'Publish Status of Item will be changed!! if Unpublished, links will be dead!',
icon: 'warning',
showCancelButton: true,
confirmButtonText: 'Proceed',
cancelButtonText: 'Cancel',
reverseButtons: true
}).then((result) => {
if (result.isConfirmed) {
$.ajax({
url: url,
type: 'GET',
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
},
success: function(response) {
Swal.fire('Updated!', 'Publishing Status has been updated.', 'success');
location.reload();
},
error: function(xhr, status, error) {
Swal.fire('Error!', 'An error occurred.', 'error');
}
});
}
});
}
</script>
@endpush

View File

@ -0,0 +1,29 @@
@extends('backend.template')
@section('content')
<div class='card'>
<div class='card-header d-flex justify-content-between align-items-center'>
<h2><?php echo label('View Details'); ?></h2>
<?php createButton("btn-primary btn-cancel","","Back to List",route('videos.index')); ?>
</div>
<div class='card-body'>
<p><b>Title :&nbsp;&nbsp;&nbsp;&nbsp;</b> <span>{{$data->title}}</span></p><p><b>Video Url :&nbsp;&nbsp;&nbsp;&nbsp;</b> <span>{{$data->video_url}}</span></p><p><b>Image :&nbsp;&nbsp;&nbsp;&nbsp;</b> <span>{{$data->image}}</span></p><p><b>Alias :&nbsp;&nbsp;&nbsp;&nbsp;</b> <span>{{$data->alias}}</span></p><p><b>Status :&nbsp;&nbsp;&nbsp;&nbsp;</b> <span
class="{{$data->status == 1 ? 'text-success' : 'text-danger'}}">{{$data->status == 1 ? 'Active' : 'Inactive'}}</span></p><p><b>Display Order :&nbsp;&nbsp;&nbsp;&nbsp;</b> <span>{{$data->display_order}}</span></p><div class="d-flex justify-content-between">
<div>
<p><b>Created On :</b>&nbsp;&nbsp;&nbsp;<span>{{$data->created_at}}</span></p>
<p><b>Created By :</b>&nbsp;&nbsp;&nbsp;<span>{{$data->createdBy}}</span></p>
</div>
<div>
<p><b>Updated On :</b>&nbsp;&nbsp;&nbsp;<span>{{$data->updated_at}}</span></p>
<p><b>Updated By :</b>&nbsp;&nbsp;&nbsp;<span>{{$data->updatedBy}}</span></p>
</div>
</div>
</div>
</div>
@endSection

View File

@ -0,0 +1,55 @@
@extends('hulaki_khabar.layout.layout')
@section('content')
<!-- Start Page Banner -->
<div class="page-title-area">
<div class="container">
<div class="page-title-content">
<h2>हाम्रो बारे</h2>
<ul>
<li><a href="index.php">होमपेज</a></li>
<li>हाम्रो बारे</li>
</ul>
</div>
</div>
</div>
<!-- End Page Banner -->
<!-- Start About Area -->
<section class="about-area ptb-50">
<div class="container">
<div class="about-image">
<img src="{{ $aboutus->cover_photo }}" alt="image">
</div>
<div class="about-content">
<h3>{{ $aboutus->subtitle }}</h3>
<p>{!! $aboutus->text !!}</p>
</div>
</div>
</section>
<!-- End About Area -->
<!-- Start Team Area -->
<section class="team-area" id="team">
<div class="container">
<div class="row">
@foreach ($teams as $item)
<div class="col-lg-3 col-md-3">
<div class="single-team-box">
<div class="image">
<img src="{{ $item->photo }}" alt="image">
</div>
<div class="content">
<h3>{{ $item->title }}</h3>
<span>{{ $item->designation }} </span>
</div>
</div>
</div>
@endforeach
</div>
</div>
</section>
<!-- End Team Area -->
@endsection

View File

@ -0,0 +1,36 @@
@extends('hulaki_khabar.layout.layout')
@section('content')
<div class="page-title-area">
<div class="container">
<div class="page-title-content">
<h2>{{$article->title}}</h2>
<ul>
<li><a href="index.html">Home</a></li>
<li>{{$article->title}}</li>
</ul>
</div>
</div>
</div>
<!-- End Page Banner -->
<!-- Start Terms of service Area -->
<section class="terms-of-service-area ptb-50">
<div class="container">
<div class="faq-accordion">
<ul class="accordion">
@foreach ($article->childrens as $item)
<li class="accordion-item">
<a class="accordion-title @if($loop->first)active @endif" href="javascript:void(0)">
<i class='bx bx-plus'></i>
{{ $item->title }}
</a>
<p class="accordion-content @if($loop->first)show @endif">
{!! $item->text !!}
</p>
</li>
@endforeach
</ul>
</div>
</div>
</section>
@endsection

View File

@ -0,0 +1,187 @@
@extends('hulaki_khabar.layout.layout')
@section('content')
<!-- Start Page Banner -->
<div class="page-title-area">
<div class="container">
<div class="page-title-content">
<h2>सम्पर्क</h2>
<ul>
<li><a href="index.html">होमपेज </a></li>
<li>सम्पर्क</li>
</ul>
</div>
</div>
</div>
<!-- End Page Banner -->
<!-- Start Contact Area -->
<section class="contact-area ptb-50">
<div class="container">
<div class="row">
<div class="col-lg-8">
<section class="widget widget_stay_connected">
<div class="contact-form">
<div class="title">
<h4>तयार हुनुहुन्छ</h4>
<p>आवश्यक क्षेत्रहरूमा * चिन्ह लगाइएका छन् </p>
</div>
<form action="{{ route('sendEmail') }}" id="sendEmail" method="post">
<div class="row">
@csrf
@if($errors->any())
@foreach($errors->all() as $error)
<div class="alert alert-danger">{{ $error }}</div>
@endforeach
@endif
<div class="col-lg-6 col-md-6">
<div class="form-group">
<input type="text" name="title" class="form-control" id="title"
required data-error="Please enter your name" placeholder="नाम*">
<div class="help-block with-errors"></div>
</div>
</div>
<div class="col-lg-6 col-md-6">
<div class="form-group">
<input type="email" name="email" class="form-control" id="email"
required data-error="Please enter your email" placeholder="ईमेल*">
<div class="help-block with-errors"></div>
</div>
</div>
<div class="col-lg-6 col-md-6">
<div class="form-group">
<input type="text" name="phone_number" class="form-control" id="phone_number"
required data-error="Please enter your phone number" placeholder="फोन*">
<div class="help-block with-errors"></div>
</div>
</div>
<div class="col-lg-6 col-md-6">
<div class="form-group">
<input type="text" name="secondary_number" class="form-control"
id="secondary_number" required data-error="Please enter your phone number"
placeholder="आपतकालिन फोन*">
<div class="help-block with-errors"></div>
</div>
</div>
<div class="col-lg-12 col-md-12">
<div class="form-group">
<textarea name="message" id="message" class="form-control" cols="30" rows="2" required
data-error="Please enter your message" placeholder="सन्देस"></textarea>
<div class="help-block with-errors"></div>
</div>
</div>
<div class="col-lg-12">
<div class="form-check">
<input type="checkbox" class="form-check-input" id="checkme" name="accepted">
<label class="form-check-label" for="accepted">
सेवा सर्तहरू गोपनीयता नीति स्वीकार गर्नुहोस्।
</label>
</div>
</div>
<div class="col-lg-12 col-md-12">
<button type="submit" class="default-btn"> सन्देस पठाउनुहोस </button>
<div id="msgSubmit" class="h3 text-center hidden"></div>
<div class="clearfix"></div>
</div>
</div>
</form>
</div>
</section>
</div>
<div class="col-lg-4">
<section class="widget widget_stay_connected">
<div class="contact-form">
<div class="title">
<h4>
कार्यालय जान चाहानुहुन्छ ?
</h4>
</div>
<div class="container">
<div class="row">
<div class="col-lg-12">
<div>
<ul class="contact-info">
<li>
<h6><svg xmlns="http://www.w3.org/2000/svg" width="16"
height="16" fill="currentColor" class="bi bi-geo-alt-fill"
viewBox="0 0 16 16">
<path
d="M8 16s6-5.686 6-10A6 6 0 0 0 2 6c0 4.314 6 10 6 10m0-7a3 3 0 1 1 0-6 3 3 0 0 1 0 6" />
</svg><b> स्थान :</b></h6>
<span><?php echo SITEVARS->location ?></span>
</li><br>
<li>
<h6><svg xmlns="http://www.w3.org/2000/svg" width="16"
height="16" fill="currentColor" class="bi bi-telephone"
viewBox="0 0 16 16">
<path
d="M3.654 1.328a.678.678 0 0 0-1.015-.063L1.605 2.3c-.483.484-.661 1.169-.45 1.77a17.6 17.6 0 0 0 4.168 6.608 17.6 17.6 0 0 0 6.608 4.168c.601.211 1.286.033 1.77-.45l1.034-1.034a.678.678 0 0 0-.063-1.015l-2.307-1.794a.68.68 0 0 0-.58-.122l-2.19.547a1.75 1.75 0 0 1-1.657-.459L5.482 8.062a1.75 1.75 0 0 1-.46-1.657l.548-2.19a.68.68 0 0 0-.122-.58zM1.884.511a1.745 1.745 0 0 1 2.612.163L6.29 2.98c.329.423.445.974.315 1.494l-.547 2.19a.68.68 0 0 0 .178.643l2.457 2.457a.68.68 0 0 0 .644.178l2.189-.547a1.75 1.75 0 0 1 1.494.315l2.306 1.794c.829.645.905 1.87.163 2.611l-1.034 1.034c-.74.74-1.846 1.065-2.877.702a18.6 18.6 0 0 1-7.01-4.42 18.6 18.6 0 0 1-4.42-7.009c-.362-1.03-.037-2.137.703-2.877z" />
</svg><b> फोन :</b></h6>
<a href="tel:9800000000 "><?php echo SITEVARS->phone ?> </a><br>
<a href="tel:01-000-000"><?php echo SITEVARS->secondary_phone ?></a>
</li><br>
<li>
<h6><svg xmlns="http://www.w3.org/2000/svg" width="16"
height="16" fill="currentColor" class="bi bi-envelope"
viewBox="0 0 16 16">
<path
d="M0 4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2zm2-1a1 1 0 0 0-1 1v.217l7 4.2 7-4.2V4a1 1 0 0 0-1-1zm13 2.383-4.708 2.825L15 11.105zm-.034 6.876-5.64-3.471L8 9.583l-1.326-.795-5.64 3.47A1 1 0 0 0 2 13h12a1 1 0 0 0 .966-.741M1 11.105l4.708-2.897L1 5.383z" />
</svg><b> ईमेल :</b></h6>
<a href="mailto:abc@example.com "><?php echo SITEVARS->email ?></a><br>
</li>
</ul>
</div>
</div>
</div>
</div>
</section>
</div>
</div>
</div>
</section>
<div style="margin-bottom: -1%">
<iframe
src=""
width="2000" height="400" style="border:0;" allowfullscreen="" loading="lazy"
referrerpolicy="no-referrer-when-downgrade"></iframe>
</div>
<!-- End Contact Area -->
@endsection
@push('js')
<script>
$(document).ready(function() {
$('#sendEmail').on('submit', function(e) {
e.preventDefault();
var form = $(this);
var formData = new FormData(this);
$.ajax({
url: "{{ route('sendEmail') }}",
type: "POST",
data: formData,
cache: false,
contentType: false,
processData: false,
success: function(response) {
if (response.success) {
$('#msgSubmit').html('<div class="alert alert-success">' + response
.success + '</div>').fadeIn();
form.trigger('reset');
setTimeout(function() {
$('#msgSubmit').fadeOut();
}, 2000);
}
},
error: function(xhr, status, error) {
var errorMessage = xhr.status + ': ' + xhr.statusText;
$('#msgSubmit').html('<div class="alert alert-danger">Error - ' +
errorMessage + '</div>').fadeIn();
setTimeout(function() {
$('#msgSubmit').fadeOut();
}, 2000);
}
});
});
});
</script>
@endpush

View File

@ -0,0 +1,110 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
margin: 0;
padding: 0;
}
.container {
width: 100%;
max-width: 600px;
margin: 0 auto;
background-color: #ffffff;
padding: 20px;
border: 1px solid #dddddd;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.header {
text-align: center;
padding: 10px 0;
border-bottom: 1px solid #dddddd;
}
.header h1 {
margin: 0;
color: #333333;
}
.content {
padding: 20px;
}
.content h2 {
color: #333333;
}
.content p {
color: #555555;
line-height: 1.6;
}
.content .field {
margin-bottom: 15px;
}
.content .field label {
display: block;
font-weight: bold;
margin-bottom: 5px;
}
.content .field span {
display: block;
padding: 10px;
background-color: #f9f9f9;
border: 1px solid #dddddd;
}
.footer {
text-align: center;
padding: 10px;
border-top: 1px solid #dddddd;
color: #777777;
font-size: 12px;
}
</style>
</head>
<body>
<div class="container">
<div class="header">
<h1>Contact Form Submission</h1>
</div>
<div class="content">
<h2>Submission Details</h2>
<div class="field">
<label for="title">Title:</label>
<span id="title">{{ $data['title'] }}</span>
</div>
<div class="field">
<label for="email">Email:</label>
<span id="email">{{ $data['email'] }}</span>
</div>
<div class="field">
<label for="phone_number">Phone Number:</label>
<span id="phone_number">{{ $data['phone_number'] }}</span>
</div>
@if (!empty($data['secondary_number']))
<div class="field">
<label for="secondary_number">Secondary Number:</label>
<span id="secondary_number">{{ $data['secondary_number'] }}</span>
</div>
@endif
<div class="field">
<label for="message">Message:</label>
<span id="message">{{ $data['message'] }}</span>
</div>
</div>
<div class="footer">
&copy; {{ date('Y') }} Your Company. All rights reserved.
</div>
</div>
</body>
</html>

View File

@ -24,31 +24,6 @@
aria-selected=@if ($loop->first) true @else false @endif>{{ $type->ecomomy_nepali_name }}</button>
</li>
@endforeach
{{-- <li class="nav-item" role="presentation">
<button class="nav-link" id="pills-paryatan-tab" data-bs-toggle="pill"
data-bs-target="#pills-paryatan" type="button" role="tab"
aria-controls="pills-paryatan" aria-selected="false">पर्यटन</button>
</li>
<li class="nav-item" role="presentation">
<button class="nav-link" id="pills-rojgar-tab" data-bs-toggle="pill"
data-bs-target="#pills-rojgar" type="button" role="tab"
aria-controls="pills-rojgar" aria-selected="false">रोजगार</button>
</li>
<li class="nav-item" role="presentation">
<button class="nav-link" id="pills-bank-tab" data-bs-toggle="pill"
data-bs-target="#pills-bank" type="button" role="tab"
aria-controls="pills-bank" aria-selected="false">बैंक/वित्त</button>
</li>
<li class="nav-item" role="presentation">
<button class="nav-link" id="pills-auto-tab" data-bs-toggle="pill"
data-bs-target="#pills-auto" type="button" role="tab"
aria-controls="pills-auto" aria-selected="false">अटो</button>
</li>
<li class="nav-item" role="presentation">
<button class="nav-link" id="pills-corporate-tab" data-bs-toggle="pill"
data-bs-target="#pills-corporate" type="button" role="tab"
aria-controls="pills-corporate" aria-selected="false">कर्पोरेट</button>
</li> --}}
</ul>
</div>
</div>
@ -67,13 +42,13 @@
@foreach ($type->news->take(5) as $item)
<div class="single-business-news">
<div class="business-news-image-fluid">
<a href="news-details.php">
<a href="{{route('newsDetail',['alias' => $item->alias])}}">
<img src="{{ asset($item->thumb) }}" alt="image-fluid">
</a>
</div>
<div class="business-news-content">
<h3>
<a href="news-details.php">{{ $item->title }}</a>
<a href="{{route('newsDetail',['alias'=> $item->alias])}}">{{ $item->title }}</a>
</h3>
</div>
</div>
@ -87,7 +62,7 @@
<div class="row align-items-center">
<div class="col-lg-4 col-sm-4">
<div class="post-image-fluid">
<a href="news-details.php">
<a href="{{route('newsDetail',['alilas'=> $item->alias])}}">
<img src="{{ asset($item->thumb) }}"
alt="image">
</a>
@ -97,7 +72,7 @@
<div class="post-content">
<h3>
<a
href="news-details.php">{{ $item->title }}</a>
href="{{route('newsDetail',['alilas'=> $item->alias])}}">{{ $item->title }}</a>
</h3>
</div>
</div>

View File

@ -49,7 +49,8 @@
<div class="row align-items-center">
<div class="col-lg-11 col-sm-11">
<div class="post-image">
<a href="news-details.php">
<a
href="{{ route('newsDetail', ['alias' => $item->alias]) }}">
<img src="{{ asset($item->image) }}"
alt="image" height="439px"
width="579px">
@ -60,7 +61,7 @@
<div class="post-content">
<h3>
<a
href="news-details.php">{{ $item->short_description }}</a>
href="{{ route('newsDetail', ['alias' => $item->alias]) }}">{{ $item->short_description }}</a>
</h3>
</div>
</div>
@ -74,7 +75,7 @@
<div class="row align-items-center">
<div class="col-lg-4 col-sm-4">
<div class="post-image">
<a href="news-details.php">
<a href="{{route('newsDetail',['alias' => $item->alias])}}">
<img src="{{ asset($item->image) }}"
alt="image">
</a>
@ -85,7 +86,7 @@
<div class="post-content">
<h3>
<a
href="news-details.php">{{ $item->short_description }}</a>
href="{{route('newsDetail',['alias' => $item->alias])}}">{{ $item->short_description }}</a>
</h3>
</div>
</div>
@ -114,12 +115,12 @@
@foreach ($type->news->take(1) as $item)
@if ($loop->first)
<div class="featured-reports-image">
<a href="news-details.php">
<a href="{{route('newsDetail',['alias' => $item->alias])}}">
<img src="{{ asset($item->thumb) }}" alt="{{ $item->title }}">
</a>
<div class="featured-reports-content">
<h3>
<a href="news-details.php">{{ $item->short_description }}</a>
<a href="{{route('newsDetail',['alias' => $item->alias])}}">{{ $item->short_description }}</a>
</h3>
</div>
</div>
@ -136,7 +137,7 @@
<div class="row align-items-center">
<div class="col-lg-4 col-sm-4">
<div class="post-image">
<a href="news-details.php">
<a href="{{route('newsDetail',['alias' => $item->alias])}}">
<img src="{{ asset($item->thumb) }}" alt="image">
</a>
</div>
@ -145,7 +146,7 @@
<div class="col-lg-8 col-sm-8">
<div class="post-content">
<h3>
<a href="news-details.php">{{ $item->short_description }}</a>
<a href="{{route('newsDetail',['alias' => $item->alias])}}">{{ $item->short_description }}</a>
</h3>
</div>
</div>

View File

@ -23,7 +23,7 @@
<div class="row align-items-center">
<div class="col-lg-4">
<div class="sports-news-image">
<a href="news-details.php">
<a href="{{route('newsDetail',['alias' => $item->alias])}}">
<img src="{{ asset($item->thumb) }}" alt="image">
</a>
</div>
@ -31,7 +31,7 @@
<div class="col-lg-8">
<div class="sports-news-content">
<h3>
<a href="news-details.php">{{ $item->title }}</a>
<a href="{{route('newsDetail',['alias' => $item->alias])}}">{{ $item->title }}</a>
</h3>
</div>
</div>
@ -50,7 +50,7 @@
<div class="row align-items-center">
<div class="col-lg-4">
<div class="sports-news-image">
<a href="news-details.php">
<a href="{{route('newsDetail',['alias' => $item->alias])}}">
<img src="{{ asset($item->thub) }}" alt="image">
</a>
</div>
@ -58,7 +58,7 @@
<div class="col-lg-8">
<div class="sports-news-content">
<h3>
<a href="news-details.php">{{ $item->title }}</a>
<a href="{{route('newsDetail',['alias' => $item->alias])}}">{{ $item->title }}</a>
</h3>
</div>
</div>
@ -89,7 +89,7 @@
<div class="row align-items-center">
<div class="col-lg-4">
<div class="tech-news-image">
<a href="news-details.php">
<a href="{{route('newsDetail',['alias' => $item->alias])}}">
<img src="{{ asset($item->thumb) }}"
alt="image">
</a>
@ -98,7 +98,7 @@
<div class="col-lg-8">
<div class="tech-news-content">
<h3>
<a href="news-details.php">{{ $item->title }}</a>
<a href="{{route('newsDetail',['alias' => $item->alias])}}">{{ $item->title }}</a>
</h3>
</div>
</div>
@ -117,7 +117,7 @@
<div class="row align-items-center">
<div class="col-lg-4">
<div class="tech-news-image">
<a href="news-details.php">
<a href="{{route('newsDetail',['alias' => $item->alias])}}">
<img src="{{ asset($item->thumb) }}"
alt="image">
</a>
@ -126,7 +126,7 @@
<div class="col-lg-8">
<div class="tech-news-content">
<h3>
<a href="news-details.php">{{ $item->title }}</a>
<a href="{{route('newsDetail',['alias' => $item->alias])}}">{{ $item->title }}</a>
</h3>
</div>
</div>

View File

@ -25,13 +25,13 @@
<div class="col-lg-4">
<div class="single-sports-news">
<div class="sports-news-image">
<a href="news-details.php"><img
<a href="{{route('newsDetail',['alias'=>$item->alias])}}"><img
src="{{ asset($item->thumb) }}" alt="image"
style="margin-bottom: 5%;"></a>
<div class="sports-news-content">
<h3>
<a
href="news-details.php">{{ $item->title }}</a>
href="{{route('newsDetail',['alias'=>$item->alias])}}">{{ $item->title }}</a>
</h3>
</div>
</div>
@ -51,13 +51,13 @@
<div class="col-lg-4">
<div class="single-sports-news">
<div class="sports-news-image">
<a href="news-details.php"><img
<a href="{{route('newsDetail',['alias'=>$item->alias])}}"><img
src="{{ asset($item->thumb) }}" alt="image"
style="margin-bottom: 5%;"></a>
<div class="sports-news-content">
<h3>
<a
href="news-details.php">{{ $item->title }}</a>
href="{{route('newsDetail',['alias'=>$item->alias])}}">{{ $item->title }}</a>
</h3>
</div>
</div>

View File

@ -21,13 +21,14 @@
@foreach ($type->news as $item)
<div class="single-business-news">
<div class="business-news-image">
<a href="news-details.php">
<a href="{{ route('newsDetail', ['alias' => $item->alias]) }}">
<img src="{{ asset($item->thumb) }}" alt="image">
</a>
</div>
<div class="business-news-content">
<h3>
<a href="news-details.php">{{ $item->title }}</a>
<a
href="{{ route('newsDetail', ['alias' => $item->alias]) }}">{{ $item->title }}</a>
</h3>
</div>
</div>
@ -37,17 +38,18 @@
</div>
</div>
<!-- Sidebar -->
<div class="col-lg-4">
<aside class="widget-area">
<section class="widget widget_featured_reports">
<div class=" col-lg-10" style=" margin-left: 10%;">
<img src="{{ asset('hulaki/assets/img/add/ads9.jpg') }}" alt="image"
style="margin-top: 0%;">
</div>
</section>
</aside>
</div>
</div>
<!-- Sidebar -->
<div class="col-lg-4">
<aside class="widget-area">
<section class="widget widget_featured_reports">
<div class=" col-lg-10" style=" margin-left: 10%;">
<img src="{{ asset('hulaki/assets/img/add/ads9.jpg') }}" alt="image"
style="margin-top: 0%;">
</div>
</section>
</aside>
</div>
<hr>
</div>

View File

@ -20,14 +20,14 @@
@foreach ($type->news as $item)
<div class="single-health-news">
<div class="health-news-image-fluid">
<a href="news-details.php">
<a href="{{route('newsDetail',['alias' => $item->alias])}}">
<img src="{{ asset($item->thumb) }}" alt="image-fluid">
</a>
</div>
<div class="health-news-content">
<h3>
<a href="news-details.php">{{ $item->title }}</a>
<a href="{{route('newsDetail',['alias' => $item->alias])}}">{{ $item->title }}</a>
</h3>
</div>
</div>

View File

@ -24,13 +24,13 @@
@foreach ($type->news->take(1) as $item)
<div class="single-featured-reports">
<div class="featured-reports-image">
<a href="news-details.php">
<a href="{{route('newsDetail',['alias' => $item->alias])}}">
<img src="{{ asset($item->thumb) }}" alt="image"
class="international-news-image">
</a>
<div class="featured-reports-content mt-30">
<h3>
<a href="news-details.php">{{ $item->short_description }}</a>
<a href="{{route('newsDetail',['alias' => $item->alias])}}">{{ $item->short_description }}</a>
</h3>
</div>
</div>
@ -49,7 +49,7 @@
<div class="row align-items-center">
<div class="col-lg-4 col-sm-4">
<div class="post-image-fluid">
<a href="news-details.php">
<a href="{{route('newsDetail',['alias' => $item->alias])}}">
<img src="{{ asset($item->thumb) }}" alt="image">
</a>
</div>
@ -58,7 +58,7 @@
<div class="post-content">
<h3>
<a
href="news-details.php">{{ $item->short_description }}</a>
href="{{route('newsDetail',['alias' => $item->alias])}}">{{ $item->short_description }}</a>
</h3>
</div>
</div>

View File

@ -27,13 +27,13 @@
<div class="col-lg-4">
<div class="single-sports-news">
<div class="sports-news-image">
<a href="news-details.php"><img
<a href="{{route('newsDetail',['alias' => $item->alias])}}"><img
src="{{ asset($item->thumb) }}" alt="image"
style="margin-bottom: 5%;"></a>
<div class="sports-news-content">
<h3>
<a
href="news-details.php">{{ $item->title }}</a>
href="{{route('newsDetail',['alias' => $item->alias])}}">{{ $item->title }}</a>
</h3>
</div>
</div>
@ -52,12 +52,12 @@
<div class="col-lg-4">
<div class="single-sports-news">
<div class="sports-news-image">
<a href="news-details.php">
<a href="{{route('newsDetail',['alias' => $item->alias])}}">
<img src="{{ asset($item->thumb) }}"
alt="image" style="margin-bottom: 5%;"></a>
<div class="sports-news-content">
<h3>
<a href="news-details.php">{{ $item->title }}</a>
<a href="{{route('newsDetail',['alias' => $item->alias])}}">{{ $item->title }}</a>
</h3>
</div>
</div>

View File

@ -9,7 +9,7 @@
<div class="col-lg-12 mt-20">
<div class="news-content mt-50 text-center">
<h2>
<a href="{{route('newsDetail')}}"><b>{{$featuredNews->title}}</b></a>
<a href="{{route('newsDetail',['alias'=>$featuredNews->alias])}}"><b>{{$featuredNews->title}}</b></a>
</h2>
</div>
</div>

View File

@ -16,60 +16,25 @@
</div>
<div class="video-slides owl-carousel owl-theme">
<div class="video-item">
<div class="video-news-image">
<a href="news-details.php">
<img src="https://templates.envytheme.com/depan/default/assets/img/video-news/video-news-4.jpg"
alt="image">
</a>
@foreach ($videos as $item)
<div class="video-item">
<div class="video-news-image">
<a href="news-details.php">
<img src="{{ asset($item->image) }}" alt="image">
</a>
<a href="https://www.youtube.com/watch?v=UG8N5JT4QLc" class="popup-youtube">
<i class='bx bx-play-circle'></i>
</a>
<a href="{{ $item->video_url }}" class="popup-youtube">
<i class='bx bx-play-circle'></i>
</a>
</div>
<div class="video-news-content">
<h3>
<a href="news-details.php">{{ $item->title }}</a>
</h3>
</div>
</div>
<div class="video-news-content">
<h3>
<a href="news-details.php">आशिफ शेखको वेस्टइन्डिजविरुद्ध अर्धशतक</a>
</h3>
</div>
</div>
<div class="video-item">
<div class="video-news-image">
<a href="news-details.php">
<img src="{{asset('hulaki/assets/img/video-news/video-news')}}-2.jpg" alt="image">
</a>
<a href="https://www.youtube.com/watch?v=UG8N5JT4QLc" class="popup-youtube">
<i class='bx bx-play-circle'></i>
</a>
</div>
<div class="video-news-content">
<h3>
<a href="news-details.php">नेपाल टेलिकमको सेवा सुधार गर्न सुझाव</a>
</h3>
</div>
</div>
<div class="video-item">
<div class="video-news-image">
<a href="news-details.php">
<img src="{{asset('hulaki/assets/img/video-news/video-news')}}-3.jpg" alt="image">
</a>
<a href="https://www.youtube.com/watch?v=UG8N5JT4QLc" class="popup-youtube">
<i class='bx bx-play-circle'></i>
</a>
</div>
<div class="video-news-content">
<h3>
<a href="news-details.php">पिपरा स्वास्थ्य चौकीलाई स्वास्थ्य सामाग्री सहयोग</a>
</h3>
</div>
</div>
@endforeach
</div>
</div>
@ -88,160 +53,56 @@
<div class="row">
<div class="col-lg-12">
<div class="row">
<div class="col-lg-3 col-md-3">
<div class="single-most-popular-news">
<div class="popular-news-image text-center">
<a href="#">
<img src="{{asset('hulaki/assets/img/horoscope/rashi-1.png')}}" alt="image">
</a>
</div>
<div class="popular-news-content text-center">
<span>मेष </span>
@foreach ($horoscope->take(4) as $item)
<div class="col-lg-3 col-md-3">
<div class="single-most-popular-news">
<div class="popular-news-image text-center">
<a href="#">
<img src="{{ asset($item->thumb) }}" alt="image">
</a>
</div>
<div class="popular-news-content text-center">
<span>{{ $item->title_nepali }} </span>
</div>
</div>
</div>
</div>
<div class="col-lg-3 col-md-3">
<div class="single-most-popular-news">
<div class="popular-news-image text-center">
<a href="#">
<img src="{{asset('hulaki/assets/img/horoscope/rashi-2.png')}}" alt="image">
</a>
</div>
<div class="popular-news-content text-center">
<span>वृष </span>
</div>
</div>
</div>
<div class="col-lg-3 col-md-3">
<div class="single-most-popular-news">
<div class="popular-news-image text-center">
<a href="#">
<img src="{{asset('hulaki/assets/img/horoscope/rashi-3.png')}}" alt="image">
</a>
</div>
<div class="popular-news-content text-center">
<span>मिथुन </span>
</div>
</div>
</div>
<div class="col-lg-3 col-md-3">
<div class="single-most-popular-news">
<div class="popular-news-image text-center">
<a href="#">
<img src="{{asset('hulaki/assets/img/horoscope/rashi-4.png')}}" alt="image">
</a>
</div>
<div class="popular-news-content text-center">
<span>कर्कट </span>
</div>
</div>
</div>
@endforeach
</div>
</div>
<div class="col-lg-12">
<div class="row">
<div class="col-lg-3 col-md-3">
<div class="single-most-popular-news">
<div class="popular-news-image text-center">
<a href="#">
<img src="{{asset('hulaki/assets/img/horoscope/rashi-5.png')}}" alt="image">
</a>
</div>
<div class="popular-news-content text-center">
<span>सिंह </span>
@foreach ($horoscope->skip(4)->take(4) as $item)
<div class="col-lg-3 col-md-3">
<div class="single-most-popular-news">
<div class="popular-news-image text-center">
<a href="{{route('showHororscope')}}">
<img src="{{ asset($item->thumb) }}" alt="image">
</a>
</div>
<div class="popular-news-content text-center">
<span>{{ $item->title_nepali }} </span>
</div>
</div>
</div>
</div>
<div class="col-lg-3 col-md-3">
<div class="single-most-popular-news">
<div class="popular-news-image text-center">
<a href="#">
<img src="{{asset('hulaki/assets/img/horoscope/rashi-6.png')}}" alt="image">
</a>
</div>
<div class="popular-news-content text-center">
<span>कन्या </span>
</div>
</div>
</div>
<div class="col-lg-3 col-md-3">
<div class="single-most-popular-news">
<div class="popular-news-image text-center">
<a href="#">
<img src="{{asset('hulaki/assets/img/horoscope/rashi-7.png')}}" alt="image">
</a>
</div>
<div class="popular-news-content text-center">
<span>तुला </span>
</div>
</div>
</div>
<div class="col-lg-3 col-md-3">
<div class="single-most-popular-news">
<div class="popular-news-image text-center">
<a href="#">
<img src="{{asset('hulaki/assets/img/horoscope/rashi-8.png')}}" alt="image">
</a>
</div>
<div class="popular-news-content text-center">
<span>वृश्चिक </span>
</div>
</div>
</div>
@endforeach
</div>
</div>
<div class="col-lg-12">
<div class="row">
<div class="col-lg-3 col-md-3">
<div class="single-most-popular-news">
<div class="popular-news-image text-center">
<a href="#">
<img src="{{asset('hulaki/assets/img/horoscope/rashi-9.png')}}" alt="image">
</a>
</div>
<div class="popular-news-content text-center">
<span>धनु </span>
@foreach ($horoscope->skip(8)->take(4) as $item)
<div class="col-lg-3 col-md-3">
<div class="single-most-popular-news">
<div class="popular-news-image text-center">
<a href="#">
<img src="{{ asset($item->thumb) }}" alt="image">
</a>
</div>
<div class="popular-news-content text-center">
<span>{{ $item->title_nepali }} </span>
</div>
</div>
</div>
</div>
<div class="col-lg-3 col-md-3">
<div class="single-most-popular-news">
<div class="popular-news-image text-center">
<a href="#">
<img src="{{asset('hulaki/assets/img/horoscope/rashi-10.png')}}" alt="image">
</a>
</div>
<div class="popular-news-content text-center">
<span>मकर </span>
</div>
</div>
</div>
<div class="col-lg-3 col-md-3">
<div class="single-most-popular-news">
<div class="popular-news-image text-center">
<a href="#">
<img src="{{asset('hulaki/assets/img/horoscope/rashi-11.png')}}" alt="image">
</a>
</div>
<div class="popular-news-content text-center">
<span>कुम्भ </span>
</div>
</div>
</div>
<div class="col-lg-3 col-md-3">
<div class="single-most-popular-news">
<div class="popular-news-image text-center">
<a href="#">
<img src="{{asset('hulaki/assets/img/horoscope/rashi-12.png')}}" alt="image">
</a>
</div>
<div class="popular-news-content text-center">
<span>मीन </span>
</div>
</div>
</div>
@endforeach
</div>
</div>
</div>

View File

@ -22,14 +22,14 @@
@if ($loop->first)
<div class="single-culture-news">
<div class="culture-news-image">
<a href="news-details.php">
<a href="{{route('newsDetail',['alias' => $item->alias])}}">
<img src="{{ asset($item->thumb) }}" alt="image"
class="img-fluid">
</a>
</div>
<div class="culture-news-content">
<h3>
<a href="news-details.php">{{ $item->short_description }}</a>
<a href="{{route('newsDetail',['alias' => $item->alias])}}">{{ $item->short_description }}</a>
</h3>
</div>
</div>
@ -48,7 +48,7 @@
<div class="row align-items-center">
<div class="col-lg-4 col-sm-4">
<div class="culture-news-image">
<a href="news-details.php">
<a href="{{route('newsDetail',['alias' => $item->alias])}}">
<img src="{{ asset($item->thumb) }}" alt="image">
</a>
</div>
@ -57,7 +57,7 @@
<div class="culture-news-content">
<h3>
<a
href="news-details.php">{{ $item->short_description }}</a>
href="{{route('newsDetail',['alias' => $item->alias])}}">{{ $item->short_description }}</a>
</h3>
</div>
</div>

View File

@ -24,7 +24,7 @@
<div class="row align-items-center">
<div class="col-lg-4">
<div class="tech-news-image">
<a href="news-details.php">
<a href="{{route('newsDetail',['alias'=>$item->alias])}}">
<img src="{{ asset($item->thumb) }}" alt="image">
</a>
</div>
@ -33,7 +33,7 @@
<div class="col-lg-8">
<div class="tech-news-content">
<h3>
<a href="news-details.php">{{ $item->title }}
<a href="{{route('newsDetail',['alias'=>$item->alias])}}">{{ $item->title }}
</a>
</h3>
@ -54,7 +54,7 @@
<div class="row align-items-center">
<div class="col-lg-4">
<div class="tech-news-image">
<a href="news-details.php">
<a href="{{route('newsDetail',['alias'=>$item->alias])}}">
<img src="{{ asset($item->thumb) }}" alt="image">
</a>
</div>
@ -63,7 +63,7 @@
<div class="col-lg-8">
<div class="tech-news-content">
<h3>
<a href="news-details.php">{{ $item->title }}~~~~~~
<a href="{{route('newsDetail',['alias'=>$item->alias])}}">{{ $item->title }}~~~~~~
</a>
</h3>
</div>
@ -96,7 +96,7 @@
<div class="row align-items-center">
<div class="col-lg-4">
<div class="tech-news-image">
<a href="news-details.php">
<a href="{{route('newsDetail',['alias'=>$item->alias])}}">
<img src="{{ asset($item->thumb) }}" alt="image">
</a>
</div>
@ -105,7 +105,7 @@
<div class="col-lg-8">
<div class="tech-news-content">
<h3>
<a href="news-details.php">{{ $item->title }}
<a href="{{route('newsDetail',['alias'=>$item->alias])}}">{{ $item->title }}
</a>
</h3>
@ -126,7 +126,7 @@
<div class="row align-items-center">
<div class="col-lg-4">
<div class="tech-news-image">
<a href="news-details.php">
<a href="{{route('newsDetail',['alias'=>$item->alias])}}">
<img src="{{ asset($item->thumb) }}" alt="image">
</a>
</div>
@ -135,7 +135,7 @@
<div class="col-lg-8">
<div class="tech-news-content">
<h3>
<a href="news-details.php">{{ $item->title }}
<a href="{{route('newsDetail',['alias'=>$item->alias])}}">{{ $item->title }}
</a>
</h3>
@ -170,7 +170,7 @@
<div class="row align-items-center">
<div class="col-lg-4">
<div class="tech-news-image">
<a href="news-details.php">
<a href="{{route('newsDetail',['alias'=>$item->alias])}}">
<img src="{{ asset($item->thumb) }}" alt="image">
</a>
</div>
@ -179,7 +179,7 @@
<div class="col-lg-8">
<div class="tech-news-content">
<h3>
<a href="news-details.php">{{ $item->title }}
<a href="{{route('newsDetail',['alias'=>$item->alias])}}">{{ $item->title }}
</a>
</h3>
@ -200,7 +200,7 @@
<div class="row align-items-center">
<div class="col-lg-4">
<div class="tech-news-image">
<a href="news-details.php">
<a href="{{route('newsDetail',['alias'=>$item->alias])}}">
<img src="{{ asset($item->thumb) }}" alt="image">
</a>
</div>
@ -209,7 +209,7 @@
<div class="col-lg-8">
<div class="tech-news-content">
<h3>
<a href="news-details.php">{{ $item->title }}
<a href="{{route('newsDetail',['alias'=>$item->alias])}}">{{ $item->title }}
</a>
</h3>

View File

@ -21,13 +21,13 @@
@if ($loop->first)
<div class="single-culture-news">
<div class="">
<a href="news-details.php">
<a href="{{route('newsDetail', ['alias' => $item->alias])}}">
<img src="{{ asset($item->thumb) }}" alt="image">
</a>
</div>
<div class="culture-news-content">
<h3>
<a href="news-details.php">{{ $item->title }}</a>
<a href="{{route('newsDetail', ['alias' => $item->alias])}}">{{ $item->title }}</a>
</h3>
</div>
</div>
@ -46,7 +46,7 @@
<div class="row align-items-center">
<div class="col-lg-4 col-sm-4">
<div class="culture-news-image">
<a href="news-details.php">
<a href="{{route('newsDetail', ['alias' => $item->alias])}}">
<img src="{{ asset($item->thumb) }}" alt="image">
</a>
</div>
@ -54,7 +54,7 @@
<div class="col-lg-8 col-sm-8">
<div class="culture-news-content">
<h3>
<a href="news-details.php">{{ $item->title }}</a>
<a href="{{route('newsDetail', ['alias' => $item->alias])}}">{{ $item->title }}</a>
</h3>
</div>
</div>
@ -73,7 +73,7 @@
<div class="row align-items-center">
<div class="col-lg-4 col-sm-4">
<div class="culture-news-image">
<a href="news-details.php">
<a href="{{route('newsDetail', ['alias' => $item->alias])}}">
<img src="{{ asset($item->thumb) }}" alt="image">
</a>
</div>
@ -81,7 +81,7 @@
<div class="col-lg-8 col-sm-8">
<div class="culture-news-content">
<h3>
<a href="news-details.php">{{ $item->title }}</a>
<a href="{{route('newsDetail', ['alias' => $item->alias])}}">{{ $item->title }}</a>
</h3>
</div>
</div>

View File

@ -84,11 +84,12 @@
<!-- Form Validator JS -->
<script src="{{ asset('hulaki/assets/js/form-validator.min.js') }}"></script>
<!-- Contact JS -->
<script src="{{ asset('hulaki/assets/js/contact-form-script.js') }}"></script>
{{-- <script src="{{ asset('hulaki/assets/js/contact-form-script.js') }}"></script> --}}
<!-- Wow JS -->
<script src="{{ asset('hulaki/assets/js/wow.min.js') }}"></script>
<!-- Custom JS -->
<script src="{{ asset('hulaki/assets/js/main.js') }}"></script>
@stack('js')
</body>
</html>

View File

@ -6,110 +6,40 @@
<div class="row">
<div class="col-lg-9 col-md-9">
<div class="blog-details-desc">
<h3 id="sidebar">कसरी बढाइँदै करको दायरा? यी हुन् उच्चस्तरीय कर सुधार समितिले देखाएका मुख्य
क्षेत्र</h3>
<h3 id="sidebar">{{ $news->title }}</h3>
<div class="article-image">
<img src="{{asset('hulaki/assets/img/politics-news/artha.jpg')}}" alt="image">
<img src="{{ asset($news->thumb) }}" alt="image">
</div>
<div class="article-content">
<div class="sports-news-content">
<p>चालू वर्षको बजेटको विनियोजन गर्ने क्रममा तत्कालीन अर्थमन्त्री प्रकाशशरण महतले कर
प्रणालीमा व्यापक सुधार गर्नुपर्ने औंल्याएका थिए। नयाँ क्षेत्रमा कारोबार भएको तर करको
दायरा विस्तार गर्न नसकिएको, कर चुहावट बढेको, कर प्रणालीहरूमा समस्या देखिएको सन्दर्भमा
त्यसपछिको सरकारले समग्र सुझाव दिनको लागि पूर्वसचिव विद्याधर मल्लिकको संयोजकत्वमा कर
प्रणाली सुधारसम्बन्धी उच्चस्तरीय सुझाव समिति बनाएको थियो।</p>
<p>परराष्ट्रमन्त्री नारायणकाजी श्रेष्ठको निमन्त्रणामा नेपाल भ्रमणमा आएकी खामीखावालाई
परराष्ट्र सचिव सेवा लम्सालले त्रिभुवन अन्तर्राष्ट्रिय विमानस्थलमा स्वागत गरेकी छन् </p>
</div>
<div class="desc-overview">
<div class="row align-items-center">
<div class="col-lg-12">
<div class="desc-text">
<div class="sports-news-content">
<p>आगामी वर्षको बजेट प्रस्तुत गर्ने समयमा सुझाव समेट्न सहयोग हुने गरी यो
समितिले अर्थमन्त्री वर्षमान पुनलाई गत चैत १७ गते नै प्रतिवेदन बुझाएको
थियो। अर्थ मन्त्रालयका अधिकारीहरूले कतिपय विषयमा थप अध्ययन गरेर केही
सुझाबहरू अबको बजेटबाट कार्यान्वयन गर्दै जाने बताएका छन्। </p>
<p> समितिले बुझाएको प्रतिवेदन भने अहिलेसम्म पनि सार्वजनिक गरिएको छैन। बजेट
लेखनमा दबाब पर्ने भन्दै अर्थले यो प्रतिवेदन सार्वजनिक नगरेको हो। सम्बद्ध
अधिकारीहरूले चालू वर्षबाट नै सुधार गर्ने गरी धेरै महत्त्वपूर्ण सुझाव
प्रतिवेदनले दिएको बताएका छन्। प्रतिवेदन कार्यान्वयन हुँदा करिब तीन खर्ब
रूपैयाँ बराबरको अतरिक्त राजस्व उठ्ने आकलन गरिएको छ।</p>
</div>
</div>
</div>
</div>
<p style="font: bold;">{{ $news->short_description }}</p>
</div>
<div class="sports-news-content">
<p>हरेक वर्ष बजेटबाट दिइने कर छुट बढ्दै गएको अवस्थामा समितिले छुटहरू क्रमशः हटाउँदै जान
सरकारलाई सिफारिस गरेको छ। विभिन्न ऐनहरूले प्रबन्ध गरेका कर पनि हरेक वर्ष परिवर्तन हुने
(सालबसाली) आर्थिक ऐनबाट संशोधन गरी छुट दिने गरिएको छ। तर, छुटको लाभ रोजगारी सिर्जना,
उत्पादन तथा उपभोगमा नदेखिएको संकेत समितिले गरेको छ।</p>
<p>समितिले कर छुटको कारण त्याग भएको राजस्व करका दरहरू घटाए केही वस्तु तथा सेवाको उत्पादनमा
खर्च गरेर प्रोत्साहन दिन सकिने बाटो देखाएको छ। ‘कर छुटको प्रणालीलाई न्यून करका दर केही
वस्तु तथा सेवामा कर खर्च प्रणालीमा लैजाने व्यवस्था गरी करको नीतिगत अन्तर कम गर्नुपर्छ,
प्रतिवेदनमा उल्लेख गरिएको विषय ‌‌औंल्याउँदै समितिका एक सदस्यले भने, ‘अबको पाँच
वर्षभित्रमा सबै प्रकारका कर छुटका प्रबन्ध खारेज गर्नु पर्दछ।’</p>
<p>{!! $news->content !!}</p>
<div class="desc-overview">
<div class="row align-items-center">
<div class="col-lg-12">
<div class="desc-image">
<img src="{{asset('hulaki/assets/img/politics-news/artha-1.jpg')}}" alt="image">
<img src="{{ asset($news->image) }}"
alt="image">
</div>
</div>
</div>
</div>
<p>व्यवसायीहरूलाई दिएका अन्य सुविधाहरू पनि हटाएर करका दरहरू नै घटाउनुपर्ने राय दिएको छ।
अहिले कुनै कम्पनी घाटामा गयो भने सात वर्षसम्म घाटा सार्न पाउँछ। यसको अर्थ कुनै पनि
कम्पनी वर्षसम्म घाटामा गयो। तर, सातौं वर्षमा नाफा कमायो भने पहिले विगतको घाटा पूर्ति
गर्छ घाटा पूर्तिबाट बढी हुने आयमा मात्रै कर तिर्नुपर्ने हुन्छ।</p>
<p>विभिन्न कानुनले गरेका प्रबन्धहरूको पनि कार्यान्वयन नहुँदा करको दायरा विस्तार नभएको निचोड
समितिको छ। त्यस्तै राजस्वका दरहरू निर्धारण गर्दा कर तटस्थता, राजस्वको जोखिम
अर्थतन्त्रमा पर्ने प्रभाव मूल्यांकन नगरिएको औंल्याइएको छ।</p>
<p>‘मूल्य अभिवृद्धि कर ऐन, आयकर ऐन, अन्तःशुल्क ऐन, भन्सार ऐनका समग्र कानुनी प्रवन्धको
कार्यान्वयन हुन नसक्दा करको आधार दायरा बढ्न सकेको छैन, समितिका एक सदस्यले भने, ‘करका
दरहरूको निर्धारण गर्दा कर तटस्थता, राजस्व जोखिम अर्थतन्त्रमा पर्न सक्ने प्रभावको
अध्ययन तथा आकलनबिना नै नीतिगत परिवर्तन हुने गरेकोले अर्थतन्त्रमा कर प्रणाली तटस्थ
देखिँदैन, करको नयाँ क्षेत्रहरूको पहिचान गरी करको दायरा विस्तारको लागि कर कानुनहरूमा समय
सापेक्ष रूपमा सुधार हुन आवश्यक छ।’</p>
<p>समितिले हरित करका विषयमा अध्ययन गरी लगाउन सिफारिस गरेको छ। अर्थमन्त्रालय पनि आगामी आर्थिक
वर्षबाट नै यस्तो कर लगाउन सुरू गर्दैछ। प्रदूषण कर लगायतका अन्य नामबाट उठाइने करसमेत हरित
करमा समायोजन गर्न समितिको सिफारिस छ। इन्धनमा लगाइएको भन्सार तथा सुधार दस्तुर, पूर्वाधार
कर, आयल निगमले लिने प्रदूषण करहरू एकीकृत गरी हरितकर नामाकरण गर्न, हवाई इन्धनमा प्रदूषण
नियन्त्रण शुल्क नलागेकोले हरित कर लगाउन, बढी प्रदूषण गर्ने गैर कृषिजन्य उद्योग इँटा
भट्टाहरूमा अन्तःशुल्क लगाउने गरिएकोमा यस्ता प्रदूषणयुक्त उद्योगहरूमा पुनः अन्तःशुल्क वा
कार्बन कर लगाउन सकिने यसलाई हरित करको रूपमा उठाउन समितिले सिफारिस गरेको छ। </p>
<p>त्यस्तै वातावरणको हिसाबले जोखिमपूर्ण मानिएको कोइला लगायतमा भन्सार महसुलका अतिरिक्त हरित
कर लगाउन, पेट्रोलियम पदार्थ लगायत वातावरणलाई नकारात्मक असर गर्ने मालवस्तुको उत्पादन
आयातमा अतिरिक्त हरित करको व्यवस्था गर्न पनि सुझाव दिइएको छ। यो कर लगाउनेले
अन्तर्राष्ट्रिय मञ्चमा समेत नेपालको फरक चिनारी हुने अर्थका अधिकारीहरूको दाबी छ। अहिले
अन्तर्राष्ट्रिय बहसका रूपमा हरित अर्थतन्त्र अर्थात् ग्रिनोमिक्स हरित करको विषय उठेको
छ। हरित अर्थतन्त्र प्रवर्द्धन गर्ने एउटा माध्यमको रूपमा हरित करलाई लिने गरिन्छ। सामाजिक
सुरक्षाको दायित्व बढ्दै गएको सन्दर्भमा सामाजिक सुरक्षा कर विस्तार गर्न पनि सुझाव दिइएको
छ।</p>
<p>सामाजिक सुरक्षा संरक्षणको लागि सरकारले कर पनि उठाउने गरेको छ। तर खर्चको तुलनामा यो
शीर्षकमा उठाइएको करको हिस्सा न्यून छ। सरकारले अहिले एकल (दम्पती नभएको) व्यक्तिको पाँच
लाख रूपैयाँभन्दा तलको दम्पतीको हकमा लाख रूपैयाँभन्दा कमको आयमा एक प्रतिशत सामाजिक
सुरक्षा कर उठाउने गरेको छ। भोलिका दिनमा सामाजिक सुरक्षाको दायित्व बढ्दै जाने भएकाले
यस्तो भार बहन गर्न सक्ने गरी स्रोत खोज्न कर प्रणाली सुधारसम्बन्धी उच्चस्तरीय सुझाव
समितिले सुझाव दिएको छ। यो समितिले मुख्यतः योगदानमा आधारित सामाजिक सुरक्षा योजनालाई अघि
बढाउन सुझाव दिएको भने करको दायरा विस्तार गर्ने आधार पनि देखाएको छ। </p>
</div>
</div>
</div>
<section class="widget widget_featured_reports">
<div class=" col-lg-10" style=" margin: 5%;">
<img src="{{asset('hulaki/assets/img/add/add.gif')}}" alt="image-fluid">
<img src="{{ asset('hulaki/assets/img/add/add.gif') }}" alt="image-fluid">
</div>
</section>
<section class="widget widget_featured_reports">
<div class=" col-lg-10" style=" margin: 5%;">
<img src="{{asset('hulaki/assets/img/add/add1.gif')}}" alt="image-fluid">
<img src="{{ asset('hulaki/assets/img/add/add1.gif') }}" alt="image-fluid">
</div>
</section>
@ -117,124 +47,28 @@
<div class="col-lg-3" id="sidebar">
<aside class="widget-area mt-50">
<section class="widget widget_featured_reports">
<img src="{{asset('hulaki/assets/img/ad/prabhu_pay_onlinekhabar.gif')}}" alt="image" class="img-fluid">
<img src="{{ asset('hulaki/assets/img/ad/prabhu_pay_onlinekhabar.gif') }}" alt="image"
class="img-fluid">
</section>
<div>
<section class="widget widget_latest_news_thumb">
<h3 class="widget-title">पछिल्लो समाचार </h3>
<article class="item">
<a href="news-details.php" class="thumb">
<span class="fullimage cover bg1" role="img"></span>
</a>
<div class="info">
<h4 class="title usmall"><a href="news-details.php">के विदेश जाने युवालाई रोक्न
फर्काउन सम्भव ?</a></h4>
</div>
</article>
<article class="item">
<a href="news-details.php" class="thumb">
<span class="fullimage cover bg2" role="img"></span>
</a>
<div class="info">
<h4 class="title usmall"><a href="news-details.php">कता जाँदैछ नेपाली समाज, के हो
उदारवादी विश्व व्यवस्थाको भविष्य?</a></h4>
</div>
</article>
<article class="item">
<a href="news-details.php" class="thumb">
<span class="fullimage cover bg3" role="img"></span>
</a>
<div class="info">
<h4 class="title usmall"><a href="news-details.php">जनमत पार्टीले नौलो गणतन्त्र
आन्दोलन घोषणा गर्दै</a></h4>
</div>
</article>
<article class="item">
<a href="news-details.php" class="thumb">
<span class="fullimage cover bg4" role="img"></span>
</a>
<div class="info">
<h4 class="title usmall"><a href="news-details.php">गैंडाकोट थुम्सीमा सडक भासियो,
पूर्वपश्चिम राजमार्ग अवरुद्ध</a></h4>
</div>
</article>
<article class="item">
<a href="news-details.php" class="thumb">
<span class="fullimage cover bg5" role="img"></span>
</a>
<div class="info">
<h4 class="title usmall"><a href="news-details.php">भारतमा महँगो लोकसभा चुनावको
सम्भावित नतिजा</a></h4>
</div>
</article>
<article class="item">
<a href="news-details.php" class="thumb">
<span class="fullimage cover bg6" role="img"></span>
</a>
<div class="info">
<h4 class="title usmall"><a href="news-details.php">‘आजकै दिन नागरिक स्वतन्त्रता
पाएका थियौं’</a></h4>
</div>
</article>
<article class="item">
<a href="news-details.php" class="thumb">
<span class="fullimage cover bg3" role="img"></span>
</a>
<div class="info">
<h4 class="title usmall"><a href="news-details.php">जनमत पार्टीले नौलो गणतन्त्र
आन्दोलन घोषणा गर्दै</a></h4>
</div>
</article>
<article class="item">
<a href="news-details.php" class="thumb">
<span class="fullimage cover bg4" role="img"></span>
</a>
<div class="info">
<h4 class="title usmall"><a href="news-details.php">गैंडाकोट थुम्सीमा सडक भासियो,
पूर्वपश्चिम राजमार्ग अवरुद्ध</a></h4>
</div>
</article>
<article class="item">
<a href="news-details.php" class="thumb">
<span class="fullimage cover bg5" role="img"></span>
</a>
<div class="info">
<h4 class="title usmall"><a href="news-details.php">भारतमा महँगो लोकसभा चुनावको
सम्भावित नतिजा</a></h4>
</div>
</article>
<article class="item">
<a href="news-details.php" class="thumb">
<span class="fullimage cover bg6" role="img"></span>
</a>
<div class="info">
<h4 class="title usmall"><a href="news-details.php">‘आजकै दिन नागरिक स्वतन्त्रता
पाएका थियौं’</a></h4>
</div>
</article>
<article class="item">
<a href="news-details.php" class="thumb">
<span class="fullimage cover bg1" role="img"></span>
</a>
<div class="info">
<h4 class="title usmall"><a href="news-details.php">के विदेश जाने युवालाई रोक्न
फर्काउन सम्भव ?</a></h4>
</div>
</article>
<article class="item">
<a href="news-details.php" class="thumb">
<span class="fullimage cover bg2" role="img"></span>
</a>
<div class="info">
<h4 class="title usmall"><a href="news-details.php">कता जाँदैछ नेपाली समाज, के हो
उदारवादी विश्व व्यवस्थाको भविष्य?</a></h4>
</div>
</article>
@foreach ($recentNews as $item)
<article class="item">
<a href="{{route('newsDetail', ['alias'=>$item->alias])}}" class="thumb">
<img src="{{ asset($item->thumb) }}" alt="image" width="80px" height="80px">
</a>
<div class="info">
<h4 class="title usmall"><a href="{{route('newsDetail', ['alias'=>$item->alias])}}">{{ $item->title }}</a></h4>
</div>
</article>
@endforeach
</section>
</div><br>
<section class="widget widget_featured_reports">
<img src="{{asset('hulaki/assets/img/ad/prabhu_pay_onlinekhabar.gif')}}" alt="image" class="img-fluid">
<img src="{{ asset('hulaki/assets/img/ad/prabhu_pay_onlinekhabar.gif') }}" alt="image"
class="img-fluid">
</section>
</aside>

View File

@ -0,0 +1,15 @@
<div class="pagination-area text-center">
<a href="{{ $data->previousPageUrl() }}" class="prev page-numbers">
<i class='bx bx-chevron-left'></i>
</a>
@foreach ($data->links()->elements[0] as $page => $url)
@if ($page == $data->currentPage())
<span class="page-numbers current" aria-current="page">{{ $page }}</span>
@else
<a href="{{ $url }}" class="page-numbers">{{ $page }}</a>
@endif
@endforeach
<a href="{{ $data->nextPageUrl() }}" class="next page-numbers">
<i class='bx bx-chevron-right'></i>
</a>
</div>

View File

@ -4,35 +4,28 @@
<div class="col-lg-3 col-md-6">
<div class="single-footer-widget">
<a href="index.php">
<img src="{{asset('hulaki/assets/img/logo.gif')}}" alt="image">
{{-- {{ asset('hulaki/assets/img/logo.gif') }} --}}
<img src="<?php echo isset(SITEVARS->primary_logo) ? asset(SITEVARS->primary_logo) : (isset(SITEVARS->secondary_logo) ? asset(SITEVARS->secondary_logo) : ''); ?>" alt="image">
</a>
<p>हुलाकी खबर समाजमा सकारात्मक प्रभाव गर्ने लक्ष्यमा समाजिक न्याय पारदर्शितामा प्रोत्साहित गर्दछ।
हुलाकी खबरले नेपाली बोल्ने समुदायलाई समाचारमा संचित, शिक्षित, जोडित गर्दै महत्वपूर्ण भूमिका
खेल्दछ, राष्ट्रिय अन्तर्राष्ट्रिय समाचारमा सक्रिय योगदान गर्दै डिजिटल पत्रकारितामा एक प्रमुख
भूमिका खेल्दछ।</p>
<p> <?php echo isset(SITEVARS->description) ? SITEVARS->description : ''; ?></p>
<ul class="social">
<li>
<a href="www.facebook.com" class="facebook" target="_blank">
<a href="<?php echo isset(SITEVARS->fb) ? SITEVARS->fb : ''; ?>" class="facebook" target="_blank">
<i class='bx bxl-facebook'></i>
</a>
</li>
<li>
<a href="www.instagram.com" class="instagram" target="_blank">
<a href="<?php echo isset(SITEVARS->insta) ? SITEVARS->insta : ''; ?>" class="instagram" target="_blank">
<i class='bx bxl-instagram'></i>
</a>
</li>
<li>
<a href="www.linkedin.com" class="linkedin" target="_blank">
<i class='bx bxl-linkedin'></i>
</a>
</li>
<li>
<a href="www.twitter.com" class="twitter" target="_blank">
<a href="<?php echo isset(SITEVARS->twitter) ? SITEVARS->twitter : ''; ?>" class="twitter" target="_blank">
<i class='bx bxl-twitter'></i>
</a>
</li>
<li>
<a href="www.youtube.com" class="youtube" target="_blank">
<a href="<?php echo isset(SITEVARS->youtube) ? SITEVARS->youtube : ''; ?>" class="youtube" target="_blank">
<i class='bx bxl-youtube'></i>
</a>
</li>
@ -43,21 +36,55 @@
<div class="single-footer-widget" style=" margin-left: 80px; margin-right: 10px;">
<h2>हुलाकी खबर </h2>
<ul class="useful-links-list">
<li>
<a href="about-us.php">हाम्रो बारे </a>
@if ($footerMenuItems->isNotEmpty())
@foreach ($footerMenuItems->take(5) as $menuItems)
@switch($menuItems->type)
@case('tbl_articles')
@php
$article = \App\Models\Articles::find($menuItems->ref);
if ($menuItems->alias == 'hamara-tama') {
$menuItems->link =
route('showAboutus', ['alias' => $article->alias]) . '#team';
} elseif (
in_array($menuItems->alias, [
'anaya-parashanaharaka-lga',
'gapanayata-nata',
])
) {
$menuItems->link = route('showArtilce', ['alias' => $article->alias]);
} else {
$menuItems->link = route('showAboutus', ['alias' => $article->alias]);
}
@endphp
@break
@default
@php
$menuItems->link = config('app.url') . $menuItems->ref;
@endphp
@break
@endswitch
<li>
<a href="{{ $menuItems->link }}">{{ $menuItems->title }} </a>
</li>
@endforeach
@endif
{{-- <li>
<a href="{{ route('showAboutus',['alias'=>'about-us']) }}">हाम्रो बारे </a>
</li>
<li>
<a href="about-us.php#team">हाम्रो टिम</a>
<a href="{{ route('showAboutus',['alias'=>'about-us']) }}#team">हाम्रो टिम</a>
</li>
<li>
<a href="terms-of-service.php">अन्य प्रश्नहरुको लागी</a>
<a href="{{ route('showArtilce', ['alias' => 'faqs']) }}">अन्य प्रश्नहरुको लागी</a>
</li>
<li>
<a href="contact.php">सम्पर्क</a>
<a href="{{ route('contact') }}">सम्पर्क</a>
</li>
<li>
<a href="privacy-policy.php">गोपनियता नीति</a>
</li>
<a href="{{ route('showArtilce', ['alias' => 'privacy-policy']) }}">गोपनियता नीति</a>
</li> --}}
</ul>
</div>
</div>
@ -65,101 +92,57 @@
<div class="single-footer-widget">
<h2>समाचार </h2>
<ul class="useful-links-list">
<li>
<a href="politics.php">जीवनशैली</a>
</li>
<li>
<a href="politics.php">फेसन </a>
</li>
<li>
<a href="politics.php">मनोरंजन</a>
</li>
<li>
<a href="politics.php">अन्तराष्ट्रिय </a>
</li>
<li>
<a href="politics.php">प्रविधि</a>
</li>
<li>
<a href="politics.php">खेलकुद </a>
</li>
<li>
<a href="politics.php">सांस्कृतिक </a>
</li>
<li>
<a href="politics.php">भिडियो </a>
</li>
@if ($footerMenuItems->isNotEmpty())
@foreach ($footerMenuItems->skip(5) as $item)
@switch($item->type)
@case('tbl_newscategories')
@php
$category = \App\Models\Newscategories::find($item->ref);
if ($category) {
$item->link = route('single', ['alias' => $category->alias]);
}
@endphp
@break
@case('tbl_news_type')
@php
$newsType = \App\Models\News_type::find($item->ref);
if ($newsType) {
$item->link = route('showInternational', ['alias' => $newsType->alias]);
}
@endphp
@break
@endswitch
<li>
<a href="{{ $item->link }}">{{ $item->title }}</a>
</li>
@endforeach
@endif
</ul>
</div>
</div>
<div class="col-lg-3 col-md-6" style="margin-left: -60px;">
<div class="single-footer-widget">
<h2>पछिल्लो खबर </h2>
<div class="post-content">
<div class="row align-items-center">
<div class="col-md-4">
<div class="post-image">
<a href="news-details.php">
<img src="{{asset('hulaki/assets/img/politics-news/pachhillo-3.jpg')}}" alt="image">
</a>
@foreach ($recentNews as $item)
<div class="post-content">
<div class="row align-items-center">
<div class="col-md-4">
<div class="post-image">
<a href="{{ route('newsDetail', ['alias' => $item->alias]) }}">
<img src="{{ asset($item->thumb) }}" alt="image">
</a>
</div>
</div>
<div class="col-md-8">
<h4>
<a
href="{{ route('newsDetail', ['alias' => $item->alias]) }}">{{ $item->title }}</a>
</h4>
</div>
</div>
<div class="col-md-8">
<h4>
<a href="news-details.php">गैंडाकोट थुम्सीमा सडक भासियो, पूर्वपश्चिम राजमार्ग
अवरुद्ध</a>
</h4>
</div>
</div>
</div>
<div class="post-content">
<div class="row align-items-center">
<div class="col-md-4">
<div class="post-image">
<a href="news-details.php">
<img src="{{asset('hulaki/assets/img/politics-news/pachhillo-4.jpg')}}" alt="image">
</a>
</div>
</div>
<div class="col-md-8">
<h4>
<a href="news-details.php">भारतमा महँगो लोकसभा चुनावको सम्भावित नतिजा</a>
</h4>
</div>
</div>
</div>
<div class="post-content">
<div class="row align-items-center">
<div class="col-md-4">
<div class="post-image">
<a href="news-details.php">
<img src="{{asset('hulaki/assets/img/politics-news/pachhillo-5.jpg')}}" alt="image">
</a>
</div>
</div>
<div class="col-md-8">
<h4>
<a href="news-details.php">‘आजकै दिन नागरिक स्वतन्त्रता पाएका थियौं’</a>
</h4>
</div>
</div>
</div>
<div class="post-content">
<div class="row align-items-center">
<div class="col-md-4">
<div class="post-image">
<a href="news-details.php">
<img src="{{asset('hulaki/assets/img/politics-news/pachhillo-2.png')}}" alt="image">
</a>
</div>
</div>
<div class="col-md-8">
<h4>
<a href="news-details.php">जनमत पार्टीले नौलो गणतन्त्र आन्दोलन घोषणा गर्दै</a>
</h4>
</div>
</div>
</div>
@endforeach
</div>
</div>
</div>
@ -172,8 +155,7 @@
<div class="container">
<div class="copyright-area-content">
<p>
प्रतिलिपि ऐन २०२४ © सबै अधिकार सुरक्षित .
<a href="index.php">हुलाकी खबर</a>
<?php echo SITEVARS->copyright_text; ?>
</p>
</div>
</div>

View File

@ -4,27 +4,22 @@
<div class="col-lg-6">
<ul class="top-header-social">
<li>
<a href="#" class="facebook" target="_blank">
<a href="<?php echo isset(SITEVARS->fb) ? SITEVARS->fb : ''; ?>" class="facebook" target="_blank">
<i class='bx bxl-facebook'></i>
</a>
</li>
<li>
<a href="#" class="pinterest" target="_blank">
<a href="<?php echo isset(SITEVARS->insta) ? SITEVARS->insta : ''; ?>" class="pinterest" target="_blank">
<i class='bx bxl-instagram'></i>
</a>
</li>
<li>
<a href="#" class="pinterest" target="_blank">
<i class='bx bxl-linkedin'></i>
</a>
</li>
<li>
<a href="#" class="twitter" target="_blank">
<a href="<?php echo isset(SITEVARS->twitter) ? SITEVARS->twitter : ''; ?>" class="twitter" target="_blank">
<i class='bx bxl-twitter'></i>
</a>
</li>
<li>
<a href="#" class="linkedin" target="_blank">
<a href="<?php echo isset(SITEVARS->youtube) ? SITEVARS->youtube : ''; ?>" class="linkedin" target="_blank">
<i class='bx bxl-youtube'></i>
</a>
</li>
@ -62,14 +57,14 @@
<div class="container">
<div class="logo">
<a href="index.php">
<img src="{{asset('hulka/assets/img/logo-1.png')}}" class="black-logo" alt="image">
<img src="{{asset('hulka/assets/img/logo-3.png')}}" class="white-logo" alt="image">
<img src="{{ asset('hulka/assets/img/logo-1.png') }}" class="black-logo" alt="image">
<img src="{{ asset('hulka/assets/img/logo-3.png') }}" class="white-logo" alt="image">
</a>
</div>
</div>
<div class="col-lg-6">
<img src="{{asset('hulka/assets/img/add/ads1.gif')}}" alt="image">
<img src="{{asset('hulka/assets/img/add/ads1.gif')}}" alt="image">
<img src="{{ asset('hulka/assets/img/add/ads1.gif') }}" alt="image">
<img src="{{ asset('hulka/assets/img/add/ads1.gif') }}" alt="image">
</div>
</div>
<div class="main-navbar">
@ -78,16 +73,17 @@
<div class="col-lg-6">
<nav class="navbar navbar-expand-sm navbar-light">
<a class="navbar-brand" href="index.php">
<img src="{{asset('hulaki/assets/img/logo.gif')}}" class="black-logo" alt="image"
<img src="{{ asset('hulaki/assets/img/logo.gif') }}" class="black-logo" alt="image"
style="margin-left: -20px;max-width: 350px; height: auto; display: block;">
<img src="{{asset('hulaki/assets/img/logo.gif')}}" class="white-logo" alt="image" style="margin-left: -20px;">
<img src="{{ asset('hulaki/assets/img/logo.gif') }}" class="white-logo" alt="image"
style="margin-left: -20px;">
</a>
</nav>
</div>
<div class="col-lg-6">
<nav class="navbar navbar-expand-sm navbar-light">
<a class="navbar-brand">
<img src="{{asset('hulaki/assets/img/add/ads10.gif')}}" class="black-logo" alt="image"
<img src="{{ asset('hulaki/assets/img/add/ads10.gif') }}" class="black-logo" alt="image"
style="margin-left: -250px;max-width: 880px; height: auto; display: block;">
</a>
</nav>
@ -102,20 +98,27 @@
<div class="col-lg-12">
<div class="hidden-menu" style="display: none;">
<ul>
<li><a href="politics.php" href="javascript:">प्रदेश <img src="{{asset('hulaki/assets/img/pradesh/p1.jpg')}}"
alt="Pradesh" class="img-fluid"></a></li>
<li><a href="politics.php" href="javascript:">प्रदेश <img src="{{asset('hulaki/assets/img/pradesh/p2.jpg')}}"
alt="Pradesh" class="img-fluid"></a></li>
<li><a href="politics.php" href="javascript:">प्रदेश <img src="{{asset('hulaki/assets/img/pradesh/p3.png')}}"
alt="Pradesh" class="img-fluid"></a></li>
<li><a href="politics.php" href="javascript:">प्रदेश <img src="{{asset('hulaki/assets/img/pradesh/p4.png')}}"
alt="Pradesh" class="img-fluid"></a></li>
<li><a href="politics.php" href="javascript:">प्रदेश <img src="{{asset('hulaki/assets/img/pradesh/p5.png')}}"
alt="Pradesh" class="img-fluid"></a></li>
<li><a href="politics.php" href="javascript:">प्रदेश <img src="{{asset('hulaki/assets/img/pradesh/p6.png')}}"
alt="Pradesh" class="img-fluid"></a></li>
<li><a href="politics.php" href="javascript:">प्रदेश <img src="{{asset('hulaki/assets/img/pradesh/p7.png')}}"
alt="Pradesh" class="img-fluid"></a></li>
<li><a href="{{ route('showProvinces', ['id' => 1]) }}">प्रदेश <img
src="{{ asset('hulaki/assets/img/pradesh/p1.jpg') }}" alt="Pradesh"
class="img-fluid"></a></li>
<li><a href="{{ route('showProvinces', ['id' => 2]) }}">प्रदेश <img
src="{{ asset('hulaki/assets/img/pradesh/p2.jpg') }}" alt="Pradesh"
class="img-fluid"></a></li>
<li><a href="{{ route('showProvinces', ['id' => 3]) }}">प्रदेश <img
src="{{ asset('hulaki/assets/img/pradesh/p3.png') }}" alt="Pradesh"
class="img-fluid"></a></li>
<li><a href="{{ route('showProvinces', ['id' => 4]) }}">प्रदेश <img
src="{{ asset('hulaki/assets/img/pradesh/p4.png') }}" alt="Pradesh"
class="img-fluid"></a></li>
<li><a href="{{ route('showProvinces', ['id' => 5]) }}">प्रदेश <img
src="{{ asset('hulaki/assets/img/pradesh/p5.png') }}" alt="Pradesh"
class="img-fluid"></a></li>
<li><a href="{{ route('showProvinces', ['id' => 6]) }}">प्रदेश <img
src="{{ asset('hulaki/assets/img/pradesh/p6.png') }}" alt="Pradesh"
class="img-fluid"></a></li>
<li><a href="{{ route('showProvinces', ['id' => 7]) }}">प्रदेश <img
src="{{ asset('hulaki/assets/img/pradesh/p7.png') }}" alt="Pradesh"
class="img-fluid"></a></li>
</ul>
</div>
</div>
@ -134,114 +137,92 @@
<div class="collapse navbar-collapse mean-menu" id="navbarSupportedContent"
style="margin-left: -5%;">
<ul class="navbar-nav">
<li class="nav-item">
<a href="{{route('home')}}" class="nav-link">
होमपेज
</a>
</li>
<li class="nav-item">
<a href="{{route('single')}}olitics.php" class="nav-link">
देश
</a>
</li>
<li class="nav-item">
<a href="{{route('single')}}" class="nav-link">
राजनिती
</a>
</li>
<li class="nav-item">
<a href="{{route('single')}}" class="nav-link">
अर्थ/वाणीज्य
</a>
</li>
<li class="nav-item">
<a href="{{route('single')}}" class="nav-link">
व्यापार
</a>
</li>
<li class="nav-item ">
<a href="{{route('single')}}" class="nav-link">
समाज
</a>
</li>
<li class="nav-item">
<a href="{{route('single')}}" class="nav-link">
विचार
</a>
</li>
<li class="nav-item">
<a href="{{route('single')}}" class="nav-link">
खेलकुद
</a>
</li>
<li class="nav-item">
<a href="{{route('single')}}" class="nav-link">
सांस्कृतिक
</a>
</li>
<li class="nav-item">
<a href="{{route('single')}}" class="nav-link">
शिक्षा/स्वास्थ्य
</a>
</li>
<li class="nav-item">
<a href="{{route('single')}}" class="nav-link">
समाचार
</a>
</li>
<li class="nav-item">
<a href="{{route('single')}}" class="nav-link">
अन्तराष्ट्रिय
</a>
</li>
<li class="nav-item">
<a href="{{route('single')}}" class="nav-link">
कृषि
</a>
</li>
<li class="nav-item">
<a href="{{route('single')}}" class="nav-link">
मनोरंजन
</a>
</li>
<li class="nav-item">
<a href="#" class="nav-link">
अन्य
<i class='bx bx-chevron-down'></i>
</a>
<ul class="dropdown-menu">
<li class="nav-item">
<a href="{{route('single')}}" class="nav-link">
अन्तरवार्ता
</a>
</li>
<li class="nav-item">
<a href="{{route('single')}}" class="nav-link">
फेसन
</a>
</li>
<li class="nav-item">
<a href="{{route('single')}}" class="nav-link">
जिवनशैली
</a>
</li>
<li class="nav-item">
<a href="{{route('single')}}" class="nav-link">
भिडियो
</a>
</li>
<li class="nav-item">
<a href="{{route('single')}}" class="nav-link">
बिज्ञान/प्रविधि
</a>
</li>
<li class="nav-item">
<a href="{{route('single')}}" class="nav-link">
सुरक्षा/अपराध
</a>
</li>
</ul>
</li>
@if ($headerMenuItems->isNotEmpty())
@foreach ($headerMenuItems as $menuItem)
@switch($menuItem->type)
@case('tbl_newscategories')
@php
$menuItem->link = route('single', [
'alias' => \App\Models\Newscategories::find($menuItem->ref)
->alias,
]);
@endphp
@break
@case('tbl_news_type')
@php
$menuItem->link = route('showInternational', [
'alias' => \App\Models\News_type::find($menuItem->ref)
->alias,
]);
@endphp
@break
@default
@php
$menuItem->link = config('app.url') . $menuItem->ref;
@endphp
@break
@endswitch
@if ($menuItem->children->isNotEmpty())
<li class="nav-item">
<a href="#" class="nav-link">
{{ $menuItem->title }}
<i class='bx bx-chevron-down'></i>
</a>
@if ($menuItem->children->isNotEmpty())
<ul class="dropdown-menu">
@foreach ($menuItem->children as $subMenu)
@switch($subMenu->type)
@case('tbl_newscategories')
@php
$subMenu->link = route('single', [
'alias' => \App\Models\Newscategories::find(
$subMenu->ref,
)->alias,
]);
@endphp
@break
@case('tbl_news_type')
@php
$menuItem->link = route(
'showInternational',
[
'alias' => \App\Models\News_type::find(
$subMenu->ref,
)->alias,
],
);
@endphp
@break
@default
@php
$subMenu->link =
config('app.url') . $menuItem->ref;
@endphp
@break
@endswitch
<li class="nav-item">
<a href="{{ $subMenu->link }}" class="nav-link">
{{ $subMenu->title }}
</a>
</li>
@endforeach
<ul>
@endif
</li>
@else
<li class="nav-item">
<a href="{{ $menuItem->link }}" class="nav-link">
{{ $menuItem->title }}
</a>
</li>
@endif
@endforeach
@endif
</ul>
</div>
</nav>

View File

@ -0,0 +1,78 @@
@extends('hulaki_khabar.layout.layout')
@section('content')
<div class="page-title-area">
<div class="container">
<div class="page-title-content">
<h2>राशिफल </h2>
<ul>
<li><a href="index.php">होम पेज </a></li>
<li>राशिफल </li>
</ul>
</div>
</div>
</div>
<!-- End Page Banner -->
<!-- Start horoscope -->
<section class="default-news-area ptb-50">
<div class="container">
<div class="row">
<div class="col-lg-6">
<div class="row">
@foreach ($rashifal->take(6) as $item)
<div class="single-politics-news">
<div class="row align-items-center">
<div class="col-lg-4">
<div class="#">
<img src="{{$item->image}}" alt="image">
</div>
</div>
<div class="col-lg-8">
<div class="" style="margin-top: -70px;">
<div class="politics-news-content-box">
<h3>
<b>{{$item->title_nepali}}</b>
</h3>
<div class="news-content">
<p>{!!$item->description!!}</p>
</div>
</div>
</div>
</div>
</div>
</div>
@endforeach
</div>
</div>
<div class="col-lg-6">
<div class="row">
@foreach ($rashifal->skip(6) as $item)
<div class="single-politics-news">
<div class="row align-items-center">
<div class="col-lg-4">
<div class="#">
<img src="{{$item->image}}" alt="image">
</div>
</div>
<div class="col-lg-8">
<div class="" style="margin-top: -70px;">
<div class="politics-news-content-box">
<h3>
<b>{{$item->title_nepali}}</b>
</h3>
<div class="news-content">
<p>{!!$item->description!!}</p>
</div>
</div>
</div>
</div>
</div>
</div>
@endforeach
</div>
</div>
</div>
</div>
</section>
@endsection

View File

@ -1,14 +1,13 @@
@extends('hulaki_khabar.layout.layout')
@section('content')
<!-- Start Page Banner -->
<div class="page-title-area">
<div class="container">
<div class="page-title-content">
<h2>राजनीति</h2>
<h2>{{$categoryTitle}}</h2>
<ul>
<li><a href="index.php">होमपेज </a></li>
<li>राजनीति</li>
<li>{{$categoryTitle}}</li>
</ul>
</div>
</div>
@ -21,289 +20,73 @@
<div class="row">
<div class="col-lg-12">
<div class="row">
<div class="single-politics-news">
<div class="row align-items-center">
<div class="col-lg-4">
<div class="politics-news-image">
<a href="news-details.php">
<img src="{{asset('hulaki/assets/img/politics-news/yuwa.jpg')}}" alt="image">
</a>
</div>
</div>
<div class="col-lg-7">
<div class="" style="margin-top: -70px;">
<div class="politics-news-content-box">
<h3>
<a href="news-details.php"><b>युवामा आत्मनिर्भर बन्ने हुटहुटी, सरकारलाई चासो
छैन !</b></a>
</h3>
<div class="date"> घण्टा अगाडि</div><BR>
<div class="news-content">
<p>‘सुरुमा यसरी सीप सिक्न आउनेहरु धेरै हुन्छन् भन्ने यसरी सोचेका थिएनौं यो
हाम्रो लागि पनि नयाँ हो’ महानगरको योजना आयोगका सदस्य इन्जिनियर शैलेन्द्र
झा भन्छन् सीप मेलामा महानगरले अटोमोबाइल्स, हस्पिटालिटी, सूचना प्रविधि,
मेकानिकल, गार्मेन्ट्स, ब्युटिसियन २९ प्रकारका पेशागत तालिम दिने बताएको
थियो ।’</p>
<p>‘आवेदकमध्ये सबैभन्दा धेरैको रुचि हस्पिटालिटी, ब्युटिसियन सूचना
प्रविधिमा देखिएको ‘अहिले बजारमा माग पनि राम्रो त्यसमाथि यो
क्षेत्र भनेको आफैंले उद्यम सुरु गर्न सक्ने क्षेत्र हो’, योजना आयोगका
सदस्य झाले भने ।’</p>
@foreach ($data->take(1) as $item)
@if ($loop->first)
<div class="single-politics-news">
<div class="row align-items-center">
<div class="col-lg-4">
<div class="politics-news-image">
<a href="{{route('newsDetail',['alias'=> $item->alias])}}">
<img src="{{ asset($item->thumb) }}" alt="image">
</a>
</div>
</div>
@php
$publishedHour = Carbon\Carbon::parse($item->created_at)->diffForHumans();
@endphp
<div class="col-lg-7">
<div class="" style="margin-top: -70px;">
<div class="politics-news-content-box">
<h3>
<a href="{{route('newsDetail',['alias'=> $item->alias])}}"><b>{{ $item->title }}</b></a>
</h3>
<div class="date">{{ $publishedHour }}</div><BR>
<div class="news-content">
<p>{{ $item->short_description }}</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-3">
<div class="single-politics-news">
<div class="politics-news-image">
<a href="news-details.php">
<img src="{{asset('hulaki/assets/img/politics-news/giribandu.jpg')}}" alt="image">
</a>
</div>
<div class="politics-news-content">
<h3>
<a href="news-details.php">गिरीबन्धुले चिया खेती नगरी खाली राखेको करिब दुई अर्बको
जग्गा</a>
</h3>
@endif
@endforeach
@foreach ($data->skip(1)->take(8) as $item)
<div class="col-lg-3">
<div class="single-politics-news">
<div class="politics-news-image">
<a href="{{route('newsDetail',['alias'=> $item->alias])}}">
<img src="{{ asset($item->thumb) }}" alt="image">
</a>
</div>
<div class="politics-news-content">
<h3>
<a href="{{route('newsDetail',['alias'=> $item->alias])}}">{{ $item->title }}</a>
</h3>
</div>
</div>
</div>
</div>
<div class="col-lg-3">
<div class="single-politics-news">
<div class="politics-news-image">
<a href="news-details.php">
<img src="{{asset('hulaki/assets/img/politics-news/kp-oli.jpg')}}" alt="image">
</a>
</div>
<div class="politics-news-content">
<h3>
<a href="news-details.php">गलतको ठाउँमा सही चुन्ने विकल्प नै गणतन्त्र: अध्यक्ष
ओली</a>
</h3>
</div>
</div>
</div>
<div class="col-lg-3">
<div class="single-politics-news">
<div class="politics-news-image">
<a href="news-details.php">
<img src="{{asset('hulaki/assets/img/politics-news/deuba.jpg')}}" alt="image">
</a>
</div>
<div class="politics-news-content">
<h3>
<a href="news-details.php">गणतन्त्रको संस्थागत विकासबाटै समृद्धि हासिल गर्न सकिन्छ:
सभापति देउवा</a>
</h3>
</div>
</div>
</div>
<div class="col-lg-3">
<div class="single-politics-news">
<div class="politics-news-image">
<a href="news-details.php">
<img src="{{asset('hulaki/assets/img/politics-news/prachanda.jpg')}}" alt="image">
</a>
</div>
<div class="politics-news-content">
<h3>
<a href="news-details.php">गणतन्त्र राजनीतिक व्यवस्था मात्र नभई शासकीय पद्धति
जीवनशैलीसमेत होः प्रधानमन्त्री</a>
</h3>
</div>
</div>
</div>
<div class="col-lg-3">
<div class="single-politics-news">
<div class="politics-news-image">
<a href="news-details.php">
<img src="{{asset('hulaki/assets/img/politics-news/ramchandra-poudel.jpg')}}" alt="image">
</a>
</div>
<div class="politics-news-content">
<h3>
<a href="news-details.php">गणतन्त्रले राजनीतिक अधिकार सुनिश्चित गरेको :
राष्ट्रपति</a>
</h3>
</div>
</div>
</div>
<div class="col-lg-3">
<div class="single-politics-news">
<div class="politics-news-image">
<a href="news-details.php">
<img src="{{asset('hulaki/assets/img/politics-news/ganatantra.jpg')}}" alt="image">
</a>
</div>
<div class="politics-news-content-box">
<h3>
<a href="news-details.php">१७ औं गणतन्त्र दिवस आज मनाइँदै</a>
</h3>
</div>
</div>
</div>
<div class="col-lg-3">
<div class="single-politics-news">
<div class="politics-news-image">
<a href="news-details.php">
<img src="{{asset('hulaki/assets/img/politics-news/budget.jpg')}}" alt="image">
</a>
</div>
<div class="politics-news-content-box">
<h3>
<a href="news-details.php">सरकारले आज १९ खर्ब आसपासको बजेट ल्याउँदै</a>
</h3>
</div>
</div>
</div>
<div class="col-lg-3">
<div class="single-politics-news">
<div class="politics-news-image">
<a href="news-details.php">
<img src="{{asset('hulaki/assets/img/politics-news/11 nirnaya.jpg')}}" alt="image">
</a>
</div>
<div class="politics-news-content-box">
<h3>
<a href="news-details.php">यस्ता छन् राप्रपा केन्द्रीय कार्यसमिति बैठकले गरेका ११
निर्णय</a>
</h3>
</div>
</div>
</div>
@endforeach
</div>
<div class="row">
<div class="col-lg-3">
<div class="single-politics-news">
<div class="politics-news-image">
<a href="news-details.php">
<img src="{{asset('hulaki/assets/img/politics-news/supreme.jpg')}}" alt="image">
</a>
</div>
<div class="politics-news-content">
<h3>
<a href="news-details.php">कांग्रेस नेता पाण्डेलाई गण्डकीको मुख्यमन्त्री नियुक्त
गर्न सर्वोच्चको परमादेश</a>
</h3>
@foreach ($data->skip(9)->take(8) as $item)
<div class="col-lg-3">
<div class="single-politics-news">
<div class="politics-news-image">
<a href="{{route('newsDetail',['alias'=> $item->alias])}}">
<img src="{{ asset($item->thumb) }}" alt="image">
</a>
</div>
<div class="politics-news-content">
<h3>
<a href="{{route('newsDetail',['alias'=> $item->alias])}}">{{ $item->title }}</a>
</h3>
</div>
</div>
</div>
</div>
<div class="col-lg-3">
<div class="single-politics-news">
<div class="politics-news-image">
<a href="news-details.php">
<img src="{{asset('hulaki/assets/img/politics-news/Sarbocha_Adalath.jpg')}}" alt="image">
</a>
</div>
<div class="politics-news-content">
<h3>
<a href="news-details.php">गण्डकीका मुख्यमन्त्री अधिकारीविरूद्ध कांग्रेस नेता
पाण्डेले दिएको रिट जारी</a>
</h3>
</div>
</div>
</div>
<div class="col-lg-3">
<div class="single-politics-news">
<div class="politics-news-image">
<a href="news-details.php">
<img src="{{asset('hulaki/assets/img/politics-news/kailash-sirohiya.jpg')}}" alt="image">
</a>
</div>
<div class="politics-news-content">
<h3>
<a href="news-details.php">कैलाश सिरोहियालाई थप तीन दिन हिरासतमा राख्न अनुमति</a>
</h3>
</div>
</div>
</div>
<div class="col-lg-3">
<div class="single-politics-news">
<div class="politics-news-image">
<a href="news-details.php">
<img src="{{asset('hulaki/assets/img/politics-news/samajbad.jpg')}}" alt="image">
</a>
</div>
<div class="politics-news-content">
<h3>
<a href="news-details.php">एकीकृत समाजवादीको सचिवालयले गर्‍यो पाँच निर्णय</a>
</h3>
</div>
</div>
</div>
<div class="col-lg-3">
<div class="single-politics-news">
<div class="politics-news-image">
<a href="news-details.php">
<img src="{{asset('hulaki/assets/img/politics-news/baluwatar.jpg')}}" alt="image">
</a>
</div>
<div class="politics-news-content">
<h3>
<a href="news-details.php">आन्तरिक छलफल गरेर बालुवाटार गए कांग्रेसका नेताहरू</a>
</h3>
</div>
</div>
</div>
<div class="col-lg-3">
<div class="single-politics-news">
<div class="politics-news-image">
<a href="news-details.php">
<img src="{{asset('hulaki/assets/img/politics-news/Rajendra.jpg')}}" alt="image">
</a>
</div>
<div class="politics-news-content-box">
<h3>
<a href="news-details.php">गृहमन्त्री लामिछाने मुछिएको सहकारीहरूको नाम उल्लेख गरेर
संसदीय समिति बन्नुपर्छ: लिङ्देन</a>
</h3>
</div>
</div>
</div>
<div class="col-lg-3">
<div class="single-politics-news">
<div class="politics-news-image">
<a href="news-details.php">
<img src="{{asset('hulaki/assets/img/politics-news/anudan.jpg')}}" alt="image">
</a>
</div>
<div class="politics-news-content-box">
<h3>
<a href="news-details.php">मधेस सरकारले स्थानीय तहलाई दिँदै आएको ससर्त अनुदान रोक्न
चार दलको माग</a>
</h3>
</div>
</div>
</div>
<div class="col-lg-3">
<div class="single-politics-news">
<div class="politics-news-image">
<a href="news-details.php">
<img src="{{asset('hulaki/assets/img/politics-news/new-road.jpg')}}" alt="image">
</a>
</div>
<div class="politics-news-content-box">
<h3>
<a href="news-details.php">महानगरले न्युरोड सडक काटेको विरोधमा मानव साङ्लो
(तस्बिरहरू)</a>
</h3>
</div>
</div>
</div>
</div>
<div class="pagination-area text-center">
<a href="#" class="prev page-numbers">
<i class='bx bx-chevron-left'></i>
</a>
<a href="#" class="page-numbers">1</a>
<span class="page-numbers current" aria-current="page">2</span>
<a href="#" class="page-numbers">3</a>
<a href="#" class="page-numbers">4</a>
<a href="#" class="next page-numbers">
<i class='bx bx-chevron-right'></i>
</a>
@endforeach
</div>
{{ $data->links('hulaki_khabar.pagination.hulaki',['data' => $data]) }}
</div>
</div>
</div>

View File

@ -0,0 +1,15 @@
<?php
use App\Http\Controllers\HoroscopeController;
use Illuminate\Support\Facades\Route;
Route::prefix("horoscope")->group(function () {
Route::get('/', [HoroscopeController::class, 'index'])->name('horoscope.index');
Route::get('/create', [HoroscopeController::class, 'create'])->name('horoscope.create');
Route::post('/store', [HoroscopeController::class, 'store'])->name('horoscope.store');
Route::post('/sort', [HoroscopeController::class, 'sort'])->name('horoscope.sort');
Route::post('/updatealias', [HoroscopeController::class, 'updatealias'])->name('horoscope.updatealias');
Route::get('/show/{id}', [HoroscopeController::class, 'show'])->name('horoscope.show');
Route::get('/edit/{id}', [HoroscopeController::class, 'edit'])->name('horoscope.edit') ;
Route::post('/update/{id}', [HoroscopeController::class, 'update'])->name('horoscope.update');
Route::delete('/destroy/{id}', [HoroscopeController::class, 'destroy'])->name('horoscope.destroy');
Route::get('/toggle/{id}', [HoroscopeController::class, 'toggle'])->name('horoscope.toggle');
});

View File

@ -0,0 +1,15 @@
<?php
use App\Http\Controllers\TeamsController;
use Illuminate\Support\Facades\Route;
Route::prefix("teams")->group(function () {
Route::get('/', [TeamsController::class, 'index'])->name('teams.index');
Route::get('/create', [TeamsController::class, 'create'])->name('teams.create');
Route::post('/store', [TeamsController::class, 'store'])->name('teams.store');
Route::post('/sort', [TeamsController::class, 'sort'])->name('teams.sort');
Route::post('/updatealias', [TeamsController::class, 'updatealias'])->name('teams.updatealias');
Route::get('/show/{id}', [TeamsController::class, 'show'])->name('teams.show');
Route::get('/edit/{id}', [TeamsController::class, 'edit'])->name('teams.edit') ;
Route::post('/update/{id}', [TeamsController::class, 'update'])->name('teams.update');
Route::delete('/destroy/{id}', [TeamsController::class, 'destroy'])->name('teams.destroy');
Route::get('/toggle/{id}', [TeamsController::class, 'toggle'])->name('teams.toggle');
});

View File

@ -0,0 +1,15 @@
<?php
use App\Http\Controllers\VideosController;
use Illuminate\Support\Facades\Route;
Route::prefix("videos")->group(function () {
Route::get('/', [VideosController::class, 'index'])->name('videos.index');
Route::get('/create', [VideosController::class, 'create'])->name('videos.create');
Route::post('/store', [VideosController::class, 'store'])->name('videos.store');
Route::post('/sort', [VideosController::class, 'sort'])->name('videos.sort');
Route::post('/updatealias', [VideosController::class, 'updatealias'])->name('videos.updatealias');
Route::get('/show/{id}', [VideosController::class, 'show'])->name('videos.show');
Route::get('/edit/{id}', [VideosController::class, 'edit'])->name('videos.edit') ;
Route::post('/update/{id}', [VideosController::class, 'update'])->name('videos.update');
Route::delete('/destroy/{id}', [VideosController::class, 'destroy'])->name('videos.destroy');
Route::get('/toggle/{id}', [VideosController::class, 'toggle'])->name('videos.toggle');
});

15
routes/route.articles.php Normal file
View File

@ -0,0 +1,15 @@
<?php
use App\Http\Controllers\ArticlesController;
use Illuminate\Support\Facades\Route;
Route::prefix("articles")->group(function () {
Route::get('/', [ArticlesController::class, 'index'])->name('articles.index');
Route::get('/create', [ArticlesController::class, 'create'])->name('articles.create');
Route::post('/store', [ArticlesController::class, 'store'])->name('articles.store');
Route::post('/sort', [ArticlesController::class, 'sort'])->name('articles.sort');
Route::post('/updatealias', [ArticlesController::class, 'updatealias'])->name('articles.updatealias');
Route::get('/show/{id}', [ArticlesController::class, 'show'])->name('articles.show');
Route::get('/edit/{id}', [ArticlesController::class, 'edit'])->name('articles.edit') ;
Route::post('/update/{id}', [ArticlesController::class, 'update'])->name('articles.update');
Route::delete('/destroy/{id}', [ArticlesController::class, 'destroy'])->name('articles.destroy');
Route::get('/toggle/{id}', [ArticlesController::class, 'toggle'])->name('articles.toggle');
});

View File

@ -17,5 +17,20 @@ Route::post('/postresgistration',[AuthenticationController::class,'store'])->nam
Route::get('/', [WebsiteController::class, 'home'])->name("home");
Route::get('/single',[WebsiteController::class, 'single'])->name("single");
Route::get('/newsDetail',[WebsiteController::class, 'newsDetail'])->name("newsDetail");
Route::get('/single/{alias}',[WebsiteController::class, 'single'])->name("single");
Route::get('/newsDetail/{alias}',[WebsiteController::class, 'newsDetail'])->name("newsDetail");
Route::get('/showHororscope',[WebsiteController::class, 'showHororscope'])->name("showHororscope");
Route::get('/international/{alias}',[WebsiteController::class,'showInternational'])->name("showInternational");
Route::get('/showVideos',[WebsiteController::class,'showVideos'])->name("showVideos");
Route::get('/aboutus/{alias}',[WebsiteController::class,'showAboutus'])->name("showAboutus");
Route::get('/article/{alias}',[WebsiteController::class,'showArtilce'])->name("showArtilce");
Route::get('/provinces/{id}',[WebsiteController::class,'showProvinces'])->name("showProvinces");
Route::get('/contact',[WebsiteController::class,'showContact'])->name("contact");
Route::post('/sendEmail',[WebsiteController::class,'sendEmail'])->name("sendEmail");
Route::get('/phpinfo', function() {
phpinfo();
});

View File

@ -0,0 +1,15 @@
<?php
use App\Http\Controllers\HoroscopesController;
use Illuminate\Support\Facades\Route;
Route::prefix("horoscope")->group(function () {
Route::get('/', [HoroscopesController::class, 'index'])->name('horoscope.index');
Route::get('/create', [HoroscopesController::class, 'create'])->name('horoscope.create');
Route::post('/store', [HoroscopesController::class, 'store'])->name('horoscope.store');
Route::post('/sort', [HoroscopesController::class, 'sort'])->name('horoscope.sort');
Route::post('/updatealias', [HoroscopesController::class, 'updatealias'])->name('horoscope.updatealias');
Route::get('/show/{id}', [HoroscopesController::class, 'show'])->name('horoscope.show');
Route::get('/edit/{id}', [HoroscopesController::class, 'edit'])->name('horoscope.edit') ;
Route::post('/update/{id}', [HoroscopesController::class, 'update'])->name('horoscope.update');
Route::delete('/destroy/{id}', [HoroscopesController::class, 'destroy'])->name('horoscope.destroy');
Route::get('/toggle/{id}', [HoroscopesController::class, 'toggle'])->name('horoscope.toggle');
});

15
routes/route.teams.php Normal file
View File

@ -0,0 +1,15 @@
<?php
use App\Http\Controllers\TeamsController;
use Illuminate\Support\Facades\Route;
Route::prefix("teams")->group(function () {
Route::get('/', [TeamsController::class, 'index'])->name('teams.index');
Route::get('/create', [TeamsController::class, 'create'])->name('teams.create');
Route::post('/store', [TeamsController::class, 'store'])->name('teams.store');
Route::post('/sort', [TeamsController::class, 'sort'])->name('teams.sort');
Route::post('/updatealias', [TeamsController::class, 'updatealias'])->name('teams.updatealias');
Route::get('/show/{id}', [TeamsController::class, 'show'])->name('teams.show');
Route::get('/edit/{id}', [TeamsController::class, 'edit'])->name('teams.edit') ;
Route::post('/update/{id}', [TeamsController::class, 'update'])->name('teams.update');
Route::delete('/destroy/{id}', [TeamsController::class, 'destroy'])->name('teams.destroy');
Route::get('/toggle/{id}', [TeamsController::class, 'toggle'])->name('teams.toggle');
});

15
routes/route.videos.php Normal file
View File

@ -0,0 +1,15 @@
<?php
use App\Http\Controllers\VideosController;
use Illuminate\Support\Facades\Route;
Route::prefix("videos")->group(function () {
Route::get('/', [VideosController::class, 'index'])->name('videos.index');
Route::get('/create', [VideosController::class, 'create'])->name('videos.create');
Route::post('/store', [VideosController::class, 'store'])->name('videos.store');
Route::post('/sort', [VideosController::class, 'sort'])->name('videos.sort');
Route::post('/updatealias', [VideosController::class, 'updatealias'])->name('videos.updatealias');
Route::get('/show/{id}', [VideosController::class, 'show'])->name('videos.show');
Route::get('/edit/{id}', [VideosController::class, 'edit'])->name('videos.edit') ;
Route::post('/update/{id}', [VideosController::class, 'update'])->name('videos.update');
Route::delete('/destroy/{id}', [VideosController::class, 'destroy'])->name('videos.destroy');
Route::get('/toggle/{id}', [VideosController::class, 'toggle'])->name('videos.toggle');
});

View File

@ -104,6 +104,10 @@ Route::middleware('auth')->group(function () {
require __DIR__ . '/route.authors.php';
require __DIR__ . '/route.advertisement.php';
require __DIR__ . '/route.economies.php';
require __DIR__ . '/route.videos.php';
require __DIR__ . '/route.horoscope.php';
require __DIR__ . '/route.articles.php';
require __DIR__ . '/route.teams.php';
});
require __DIR__ . '/route.client.php';

Binary file not shown.

After

Width:  |  Height:  |  Size: 280 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 400 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 523 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 207 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 423 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 337 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 282 KiB

Some files were not shown because too many files have changed in this diff Show More