feat: implement dynamic login page configuration via database settings and update login view template
This commit is contained in:
@@ -24,6 +24,10 @@ return new class extends Migration {
|
|||||||
'DevExpress_Theme' => 'dx.material.orange.light.compact.css',
|
'DevExpress_Theme' => 'dx.material.orange.light.compact.css',
|
||||||
'pdf_template_path' => 'default',
|
'pdf_template_path' => 'default',
|
||||||
'languages' => json_encode(['en', 'tr']),
|
'languages' => json_encode(['en', 'tr']),
|
||||||
|
'login_slogan' => 'Citrus: İş Süreçlerinizi Özgürleştiren ve Geleceği Şekillendiren Dijital Mimari.',
|
||||||
|
'login_welcome' => 'Hoş Geldiniz',
|
||||||
|
'login_description' => 'Yönetim panelinize erişmek için lütfen giriş yapın.',
|
||||||
|
'copyright_start_year' => '1991',
|
||||||
];
|
];
|
||||||
|
|
||||||
foreach ($settings as $key => $value) {
|
foreach ($settings as $key => $value) {
|
||||||
|
|||||||
@@ -0,0 +1,46 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
use Illuminate\Support\Facades\DB;
|
||||||
|
|
||||||
|
return new class extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*/
|
||||||
|
public function up(): void
|
||||||
|
{
|
||||||
|
$settings = [
|
||||||
|
'login_slogan' => 'Citrus: İş Süreçlerinizi Özgürleştiren ve Geleceği Şekillendiren Dijital Mimari.',
|
||||||
|
'login_welcome' => 'Hoş Geldiniz',
|
||||||
|
'login_description' => 'Yönetim panelinize erişmek için lütfen giriş yapın.',
|
||||||
|
'copyright_start_year' => '1991',
|
||||||
|
];
|
||||||
|
|
||||||
|
foreach ($settings as $key => $value) {
|
||||||
|
DB::table('settings')->updateOrInsert(
|
||||||
|
['title' => $key],
|
||||||
|
[
|
||||||
|
'html' => $value,
|
||||||
|
'created_at' => now(),
|
||||||
|
'updated_at' => now(),
|
||||||
|
]
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*/
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
DB::table('settings')->whereIn('title', [
|
||||||
|
'login_slogan',
|
||||||
|
'login_welcome',
|
||||||
|
'login_description',
|
||||||
|
'copyright_start_year',
|
||||||
|
])->delete();
|
||||||
|
}
|
||||||
|
};
|
||||||
@@ -15,10 +15,10 @@
|
|||||||
<div class="hero-static col-md-6 col-xl-8 d-none d-md-flex align-items-md-end" >
|
<div class="hero-static col-md-6 col-xl-8 d-none d-md-flex align-items-md-end" >
|
||||||
<div class="p-30 js-appear-enabled animated fadeIn" data-toggle="appear">
|
<div class="p-30 js-appear-enabled animated fadeIn" data-toggle="appear">
|
||||||
<p class="font-size-h3 font-w600 text-white">
|
<p class="font-size-h3 font-w600 text-white">
|
||||||
{{e2("Learning without stopping. Recognizing that everything you know can be renewed again.")}}
|
{{e2(setting("login_slogan",true,"Citrus: İş Süreçlerinizi Özgürleştiren ve Geleceği Şekillendiren Dijital Mimari."))}}
|
||||||
</p>
|
</p>
|
||||||
<p class="font-italic text-white-op">
|
<p class="font-italic text-white-op">
|
||||||
{{e2("Copyright")}} © <span class="js-year-copy js-year-copy-enabled">{{e2("1991")}} - {{date('Y')}}</span>
|
{{e2("Copyright")}} © <span class="js-year-copy js-year-copy-enabled">{{setting("copyright_start_year",true,"1991")}} - {{date('Y')}}</span>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -29,8 +29,8 @@
|
|||||||
<a class="link-effect font-w700" href="#">
|
<a class="link-effect font-w700" href="#">
|
||||||
<img src="{{url("assets/citrus-logos/citrus-yatay.svg")}}" style="width:70%" class="img-fluid" alt="" />
|
<img src="{{url("assets/citrus-logos/citrus-yatay.svg")}}" style="width:70%" class="img-fluid" alt="" />
|
||||||
</a>
|
</a>
|
||||||
<h1 class="h3 font-w700 mt-30 mb-10">{{e2("Welcome")}}</h1>
|
<h1 class="h3 font-w700 mt-30 mb-10">{{e2(setting("login_welcome",true,"Welcome"))}}</h1>
|
||||||
<h2 class="h5 font-w400 text-muted mb-0">{{e2("Please sign in")}}</h2>
|
<h2 class="h5 font-w400 text-muted mb-0">{{e2(setting("login_description",true,"Please sign in"))}}</h2>
|
||||||
</div>
|
</div>
|
||||||
<!-- END Header -->
|
<!-- END Header -->
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user