Skip to content

Commit

Permalink
renamed dir
Browse files Browse the repository at this point in the history
  • Loading branch information
PavlosIsaris committed Nov 20, 2024
1 parent 73f4020 commit d7cd6d9
Show file tree
Hide file tree
Showing 50 changed files with 78 additions and 77 deletions.
2 changes: 1 addition & 1 deletion app/Http/Controllers/CommunicationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function __construct(CommunicationManager $communicationManager) {
public function getMailChimpIntegration() {
$viewModel = $this->communicationManager->getMailChimpIntegrationViewModel();

return view('loggedin-environment.management.mailchimp-integration')->with(['viewModel' => $viewModel]);
return view('backoffice.management.mailchimp-integration')->with(['viewModel' => $viewModel]);
}

public function storeMailChimpListsIds(Request $request) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,18 @@ public function __construct(CrowdSourcingProjectManager $crowdSourcingProjectMan
public function index() {
$viewModel = $this->crowdSourcingProjectManager->getCrowdSourcingProjectsListPageViewModel();

return view('loggedin-environment.management.crowdsourcing-project.index', ['viewModel' => $viewModel]);
return view('backoffice.management.crowdsourcing-project.index', ['viewModel' => $viewModel]);
}

public function create() {
return view('loggedin-environment.management.crowdsourcing-project.create-edit.form-page')->with(['viewModel' => $this->crowdSourcingProjectManager->getCreateEditProjectViewModel()]);
return view('backoffice.management.crowdsourcing-project.create-edit.form-page')->with(['viewModel' => $this->crowdSourcingProjectManager->getCreateEditProjectViewModel()]);
}

/**
* Show the form for editing the specified resource.
*/
public function edit(string $locale, int $id): View {
return view('loggedin-environment.management.crowdsourcing-project.create-edit.form-page')->with(['viewModel' => $this->crowdSourcingProjectManager->getCreateEditProjectViewModel($id)]);
return view('backoffice.management.crowdsourcing-project.create-edit.form-page')->with(['viewModel' => $this->crowdSourcingProjectManager->getCreateEditProjectViewModel($id)]);
}

/**
Expand Down
6 changes: 3 additions & 3 deletions app/Http/Controllers/Problem/ProblemController.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function showProblemsPage(Request $request): View {
* Display a listing of the resource.
*/
public function index(): View {
return view('loggedin-environment.management.problem.index');
return view('backoffice.management.problem.index');
}

/**
Expand All @@ -60,7 +60,7 @@ public function index(): View {
public function create(): View {
$viewModel = $this->problemManager->getCreateEditProblemViewModel();

return view('loggedin-environment.management.problem.create-edit.form-page', ['viewModel' => $viewModel]);
return view('backoffice.management.problem.create-edit.form-page', ['viewModel' => $viewModel]);
}

/**
Expand Down Expand Up @@ -99,7 +99,7 @@ public function store(Request $request): RedirectResponse {
public function edit(Request $request): View {
$viewModel = $this->problemManager->getCreateEditProblemViewModel($request->id);

return view('loggedin-environment.management.problem.create-edit.form-page', ['viewModel' => $viewModel]);
return view('backoffice.management.problem.create-edit.form-page', ['viewModel' => $viewModel]);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function __construct(QuestionnaireManager $questionnaireManager,
public function manageQuestionnaires() {
$questionnairesViewModel = $this->questionnaireVMProvider->getAllQuestionnairesPageViewModel();

return view('loggedin-environment.management.questionnaire.all')->with(['viewModel' => $questionnairesViewModel]);
return view('backoffice.management.questionnaire.all')->with(['viewModel' => $questionnairesViewModel]);
}

public function saveQuestionnaireStatus(Request $request): RedirectResponse {
Expand All @@ -55,7 +55,7 @@ public function saveQuestionnaireStatus(Request $request): RedirectResponse {
public function createQuestionnaire() {
$viewModel = $this->questionnaireVMProvider->getCreateEditQuestionnaireViewModel();

return view('loggedin-environment.management.questionnaire.create-edit')->with(['viewModel' => $viewModel]);
return view('backoffice.management.questionnaire.create-edit')->with(['viewModel' => $viewModel]);
}

public function store(Request $request) {
Expand Down Expand Up @@ -84,7 +84,7 @@ public function store(Request $request) {
public function editQuestionnaire(Request $request) {
$viewModel = $this->questionnaireVMProvider->getCreateEditQuestionnaireViewModel($request->id);

return view('loggedin-environment.management.questionnaire.create-edit')->with(['viewModel' => $viewModel]);
return view('backoffice.management.questionnaire.create-edit')->with(['viewModel' => $viewModel]);
}

public function update(Request $request) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function viewReportsPage(Request $request) {
$selectedQuestionnaireId = $request->questionnaireId;
$viewModel = $this->questionnaireReportManager->getCrowdSourcingProjectReportsViewModel(null, $selectedQuestionnaireId);

return view('loggedin-environment.questionnaire.reports.reports-with-filters', ['viewModel' => $viewModel]);
return view('backoffice.questionnaire.reports.reports-with-filters', ['viewModel' => $viewModel]);
}

public function getReportDataForQuestionnaire(Request $request): JsonResponse {
Expand All @@ -33,7 +33,7 @@ public function getReportDataForQuestionnaire(Request $request): JsonResponse {
$questionnaire = $this->questionnaireRepository->find($input['questionnaireId']);
$reportViewModel = $this->questionnaireReportManager->getQuestionnaireReportViewModel($input);
$responses = $reportViewModel->responses;
$view = view('loggedin-environment.questionnaire.reports.report-for-questionnaire', compact('reportViewModel'));
$view = view('backoffice.questionnaire.reports.report-for-questionnaire', compact('reportViewModel'));
$responseCode = ResponseAlias::HTTP_OK;
$responseContent = ['view' => $view->render(), 'questionnaire' => $questionnaire, 'responses' => $responses];
} catch (QueryException $e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function showStatisticsPageForQuestionnaire(string $locale, Questionnaire
public function showEditStatisticsColorsPage(string $locale, Questionnaire $questionnaire) {
$viewModel = $this->questionnaireStatisticsManager->getEditQuestionnaireStatisticsColorViewModel($questionnaire);

return view('loggedin-environment.management.questionnaire.statistics-colors', compact(['viewModel']));
return view('backoffice.management.questionnaire.statistics-colors', compact(['viewModel']));
}

public function saveStatisticsColors(Request $request, string $locale, Questionnaire $questionnaire): RedirectResponse {
Expand Down
4 changes: 2 additions & 2 deletions app/Http/Controllers/User/AdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ public function __construct(UserManager $userManager) {
public function manageUsers() {
$viewModel = $this->userManager->getManagePlatformUsersViewModel(UserManager::$USERS_PER_PAGE);

return view('loggedin-environment.management.manage-users', ['viewModel' => $viewModel]);
return view('backoffice.management.manage-users', ['viewModel' => $viewModel]);
}

public function editUserForm(Request $request) {
$viewModel = $this->userManager->getEditUserViewModel($request->id);

return view('loggedin-environment.management.edit-user', ['viewModel' => $viewModel]);
return view('backoffice.management.edit-user', ['viewModel' => $viewModel]);
}

public function updateUserRoles(Request $request) {
Expand Down
8 changes: 4 additions & 4 deletions app/Http/Controllers/User/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ public function home() {
public function myDashboard() {
$dashboardViewModel = $this->userDashboardManager->getUserDashboardViewModel(Auth::user());

return view('loggedin-environment.my-dashboard', ['viewModel' => $dashboardViewModel]);
return view('backoffice.my-dashboard', ['viewModel' => $dashboardViewModel]);
}

public function myAccount() {
$userViewModel = $this->userManager->getUserProfile(Auth::user());

return view('loggedin-environment.my-account', ['viewModel' => $userViewModel]);
return view('backoffice.my-account', ['viewModel' => $userViewModel]);
}

public function patch(Request $request) {
Expand Down Expand Up @@ -103,14 +103,14 @@ public function showUsersByCriteria(Request $request) {

return json_encode(new OperationResponse(config('app.OPERATION_FAIL'), (string) view('partials.ajax_error_message', compact('errorMessage'))));
} else {
return json_encode(new OperationResponse(config('app.OPERATION_SUCCESS'), (string) view('loggedin-environment.management.partials.users-list', compact('users'))));
return json_encode(new OperationResponse(config('app.OPERATION_SUCCESS'), (string) view('backoffice.management.partials.users-list', compact('users'))));
}
}

public function showUserContributions() {
$responses = $this->questionnaireResponseManager->getQuestionnaireResponsesForUser(Auth::user());

return view('loggedin-environment.my-contributions', ['responses' => $responses]);
return view('backoffice.my-contributions', ['responses' => $responses]);
}

public function downloadMyData() {
Expand Down
2 changes: 1 addition & 1 deletion resources/assets/js/project/manage-project-problems.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import ProblemsManagement from "../vue-components/loggedin-environment/management/crowd-sourcing-project/problem/ProblemsManagement.vue";
import ProblemsManagement from "../vue-components/backoffice/management/crowd-sourcing-project/problem/ProblemsManagement.vue";
import { createApp } from "vue";
import store from "../store/store";
import DOMPurify from "dompurify";
Expand Down
2 changes: 1 addition & 1 deletion resources/assets/js/project/manage-project.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { createApp } from "vue";
import store from "../store/store";

import TranslationsManager from "../vue-components/common/TranslationsManager.vue";
import CrowdSourcingProjectColors from "../vue-components/loggedin-environment/management/crowd-sourcing-project/CrowdSourcingProjectColors.vue";
import CrowdSourcingProjectColors from "../vue-components/backoffice/management/crowd-sourcing-project/CrowdSourcingProjectColors.vue";

import select2 from "select2";
import $ from "jquery";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
</head>
<body class="logged-in-env {{ !app(Gate::class)->check("moderate-content-by-users")? "no-sidebar": "" }} hold-transition skin-white sidebar-mini layout-fixed layout-navbar-fixed @yield('body_class')">
<div id="app" class="wrapper">
@include("loggedin-environment.partials.header-controls")
@include("backoffice.partials.header-controls")
@canany(['moderate-content-by-users'])
@include("loggedin-environment.partials.sidebar-menu")
@include("backoffice.partials.sidebar-menu")
@endcanany
<div class="content-wrapper">
<section class="content">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@extends('loggedin-environment.layout')
@extends('backoffice.layout')

@section('content-header')
<h1>{{ $viewModel->isEditMode() ? 'Edit' : 'Create' }}
Expand Down Expand Up @@ -48,29 +48,29 @@
<div class="tab-content " id="myTabContent">
<div class="tab-pane fade show active " id="basic-details" role="tabpanel"
aria-labelledby="basic-details-tab">
@include('loggedin-environment.management.crowdsourcing-project.create-edit.partials.basic-details')
@include('backoffice.management.crowdsourcing-project.create-edit.partials.basic-details')

</div>
<div class="tab-pane fade " id="landing-page" role="tabpanel" aria-labelledby="landing-page-tab">
@include('loggedin-environment.management.crowdsourcing-project.create-edit.partials.landing-page')
@include('backoffice.management.crowdsourcing-project.create-edit.partials.landing-page')

</div>
<div class="tab-pane fade " id="social-media" role="tabpanel" aria-labelledby="social-media-tab">
@include('loggedin-environment.management.crowdsourcing-project.create-edit.partials.social-media')
@include('backoffice.management.crowdsourcing-project.create-edit.partials.social-media')

</div>
<div class="tab-pane fade " id="communication-resources" role="tabpanel"
aria-labelledby="communication-resources-tab">
@include('loggedin-environment.management.crowdsourcing-project.create-edit.partials.communication-resources')
@include('backoffice.management.crowdsourcing-project.create-edit.partials.communication-resources')

</div>
<div class="tab-pane fade " id="statistics-colors" role="tabpanel"
aria-labelledby="statistics-colors-tab">
@include('loggedin-environment.management.crowdsourcing-project.create-edit.partials.statistics-colors')
@include('backoffice.management.crowdsourcing-project.create-edit.partials.statistics-colors')

</div>
<div class="tab-pane fade " id="translations" role="tabpanel" aria-labelledby="translations-tab">
@include('loggedin-environment.management.crowdsourcing-project.create-edit.partials.translations')
@include('backoffice.management.crowdsourcing-project.create-edit.partials.translations')
</div>
</div>
<div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@extends('loggedin-environment.layout')
@extends('backoffice.layout')
@section('title', 'home')
@section('content-header')
<h1>All Crowd-sourcing Projects</h1>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@extends('loggedin-environment.layout')
@extends('backoffice.layout')
@section('title', 'home')
@section('content-header')
<h1>Edit User</h1>
Expand Down Expand Up @@ -49,7 +49,7 @@
@foreach ($viewModel->allRoles as $role)
<option
@if ($viewModel->userRoleIds->contains($role->id))
selected
selected
@endif
value="{{ $role->id }}" name="roleVal[{{ $role->id }}]"
>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@extends('loggedin-environment.layout')
@extends('backoffice.layout')

@section('content-header')
<h1>MailChimp Integration</h1>
Expand All @@ -16,7 +16,8 @@
<h3 class="card-title">Instructions</h3>
</div>
<div class="card-body">
First, login to your MailChimp account <a href="https://login.mailchimp.com/" target="_blank">here</a>.
First, login to your MailChimp account <a href="https://login.mailchimp.com/"
target="_blank">here</a>.
Then, find your <b>Lists' IDs</b> by following the instructions provided by MailChimp
<a href="https://mailchimp.com/help/find-your-list-id/" target="_blank">here</a>.
</div>
Expand All @@ -34,17 +35,17 @@
<div class="card-body">
<p>Please provide the following MailChimp lists IDs (see instructions above).</p>
{{--<div class="form-group">--}}
{{--<label for="newsletter">Newsletter <a href="javascript:void(0)" data-widget="tooltip"--}}
{{--title="All mails subscribed to our newsletter via the landing pages will be added to this list"><span--}}
{{--class="fa fa-info-circle"></span></a></label>--}}
{{--<input type="text" id="newsletter" class="form-control" name="newsletter"--}}
{{--placeholder="Insert the Newsletter's list ID"--}}
{{--value="{{isset($viewModel) && isset($viewModel->newsletterList) ? $viewModel->newsletterList->list_id : ''}}">--}}
{{--<label for="newsletter">Newsletter <a href="javascript:void(0)" data-widget="tooltip"--}}
{{--title="All mails subscribed to our newsletter via the landing pages will be added to this list"><span--}}
{{--class="fa fa-info-circle"></span></a></label>--}}
{{--<input type="text" id="newsletter" class="form-control" name="newsletter"--}}
{{--placeholder="Insert the Newsletter's list ID"--}}
{{--value="{{isset($viewModel) && isset($viewModel->newsletterList) ? $viewModel->newsletterList->list_id : ''}}">--}}
{{--</div>--}}
<div class="form-group">
<label for="registered-users">Newsletter for registered users <a href="javascript:void(0)"
data-widget="tooltip"
title="All the registered users to the platform will be added to this list"><span
data-widget="tooltip"
title="All the registered users to the platform will be added to this list"><span
class="fa fa-info-circle"></span></a></label>
<input type="text" id="registered-users" class="form-control" name="registered_users"
placeholder="Insert the Registered Users' list ID"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@extends('loggedin-environment.layout')
@extends('backoffice.layout')

@section('title', 'home')

Expand All @@ -13,8 +13,8 @@
</div>
<div class="card-body">
<div id="allUsers">
@include('loggedin-environment.management.partials.user-filters')
@include('loggedin-environment.management.partials.users-list', ['users' => $viewModel->users])
@include('backoffice.management.partials.user-filters')
@include('backoffice.management.partials.users-list', ['users' => $viewModel->users])
</div>
</div>
</div>
Expand All @@ -24,7 +24,7 @@
<h3 class="card-title">Add new user</h3>
</div>
<div class="card-body">
@include('loggedin-environment.management.partials.new-user-form', ['roles' => $viewModel->allRoles])
@include('backoffice.management.partials.new-user-form', ['roles' => $viewModel->allRoles])
</div>
</div>
@endsection
Expand Down
Loading

0 comments on commit d7cd6d9

Please sign in to comment.