This commit is contained in:
2023-12-01 11:27:01 +05:00
parent 1b7e965db1
commit 32dad6b8a7
4 changed files with 5 additions and 4 deletions

View File

@@ -33,7 +33,7 @@ class StatusFilter extends Filter
*/
public function apply(NovaRequest $request, $query, $value)
{
return $query;
return ($value) ? $query->where('status', $value) : $query;
}
/**

View File

@@ -361,7 +361,6 @@ class LoanOrder extends Resource
return [
new RegionFilter(),
new StatusFilter(),
new ActiveFilter(),
];
}

View File

@@ -11,6 +11,8 @@ return new class extends Migration
*/
public function up(): void
{
Schema::dropIfExists('loan_types');
Schema::create('loan_types', function (Blueprint $table) {
$table->id();
$table->jsonb('name');
@@ -27,6 +29,6 @@ return new class extends Migration
*/
public function down(): void
{
Schema::dropIfExists('loan_orders');
Schema::dropIfExists('loan_types');
}
};

View File

@@ -135,7 +135,7 @@
"Position": "Wezipe",
"Precondition Failed": "Deslapky şert şowsuz",
"Precondition Required": "Deslapky şert",
"Processing": "Gaýtadan işlemek",
"Processing": "Işlenilýär",
"Province": "Etrap",
"Provinces": "Etraplar",
"Proxy Authentication Required": "Proksi tanamak zerur",