feat: add language management view and update admin sidebar navigation with language settings
This commit is contained in:
@@ -133,7 +133,7 @@
|
|||||||
|
|
||||||
<?php $diller = languages(); foreach($diller AS $d) { ?>
|
<?php $diller = languages(); foreach($diller AS $d) { ?>
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ url('admin/languages/'. $d) }}">
|
<a href="{{ url('admin/types/languages?dil='. $d) }}">
|
||||||
<i class="material-symbols-outlined">
|
<i class="material-symbols-outlined">
|
||||||
language
|
language
|
||||||
</i>
|
</i>
|
||||||
|
|||||||
@@ -5,7 +5,12 @@ use App\Translate;
|
|||||||
$title = "Languages";
|
$title = "Languages";
|
||||||
$tableWidth="100%";
|
$tableWidth="100%";
|
||||||
$path = "admin.type.languages";
|
$path = "admin.type.languages";
|
||||||
|
|
||||||
|
$dil = get("dil");
|
||||||
$listDatas = Translate::orderBy("id","DESC");
|
$listDatas = Translate::orderBy("id","DESC");
|
||||||
|
if($dil) {
|
||||||
|
$listDatas = $listDatas->where("dil", $dil);
|
||||||
|
}
|
||||||
|
|
||||||
if(getisset("filter")) {
|
if(getisset("filter")) {
|
||||||
$get = $_GET;
|
$get = $_GET;
|
||||||
@@ -36,6 +41,25 @@ $relationDatas = [
|
|||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
||||||
|
$dataGridOptions = "
|
||||||
|
customizeColumns: function(columns) {
|
||||||
|
columns.forEach(function(col) {
|
||||||
|
if (col.dataField === 'icerik' || col.dataField === 'ceviri') {
|
||||||
|
col.width = '45%';
|
||||||
|
}
|
||||||
|
if (col.dataField === 'dil') {
|
||||||
|
col.width = '10%';
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
";
|
||||||
|
|
||||||
|
if($dil) {
|
||||||
|
$dataGridOptions .= "
|
||||||
|
filterValue: ['dil', '=', '$dil'],
|
||||||
|
";
|
||||||
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|||||||
Reference in New Issue
Block a user