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) { ?>
|
||||
<li>
|
||||
<a href="{{ url('admin/languages/'. $d) }}">
|
||||
<a href="{{ url('admin/types/languages?dil='. $d) }}">
|
||||
<i class="material-symbols-outlined">
|
||||
language
|
||||
</i>
|
||||
|
||||
@@ -5,7 +5,12 @@ use App\Translate;
|
||||
$title = "Languages";
|
||||
$tableWidth="100%";
|
||||
$path = "admin.type.languages";
|
||||
|
||||
$dil = get("dil");
|
||||
$listDatas = Translate::orderBy("id","DESC");
|
||||
if($dil) {
|
||||
$listDatas = $listDatas->where("dil", $dil);
|
||||
}
|
||||
|
||||
if(getisset("filter")) {
|
||||
$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="row">
|
||||
|
||||
Reference in New Issue
Block a user