wip
This commit is contained in:
@@ -33,7 +33,7 @@ class StatusFilter extends Filter
|
|||||||
*/
|
*/
|
||||||
public function apply(NovaRequest $request, $query, $value)
|
public function apply(NovaRequest $request, $query, $value)
|
||||||
{
|
{
|
||||||
return $query;
|
return ($value) ? $query->where('status', $value) : $query;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -361,7 +361,6 @@ class LoanOrder extends Resource
|
|||||||
return [
|
return [
|
||||||
new RegionFilter(),
|
new RegionFilter(),
|
||||||
new StatusFilter(),
|
new StatusFilter(),
|
||||||
new ActiveFilter(),
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -11,6 +11,8 @@ return new class extends Migration
|
|||||||
*/
|
*/
|
||||||
public function up(): void
|
public function up(): void
|
||||||
{
|
{
|
||||||
|
Schema::dropIfExists('loan_types');
|
||||||
|
|
||||||
Schema::create('loan_types', function (Blueprint $table) {
|
Schema::create('loan_types', function (Blueprint $table) {
|
||||||
$table->id();
|
$table->id();
|
||||||
$table->jsonb('name');
|
$table->jsonb('name');
|
||||||
@@ -27,6 +29,6 @@ return new class extends Migration
|
|||||||
*/
|
*/
|
||||||
public function down(): void
|
public function down(): void
|
||||||
{
|
{
|
||||||
Schema::dropIfExists('loan_orders');
|
Schema::dropIfExists('loan_types');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -135,7 +135,7 @@
|
|||||||
"Position": "Wezipe",
|
"Position": "Wezipe",
|
||||||
"Precondition Failed": "Deslapky şert şowsuz",
|
"Precondition Failed": "Deslapky şert şowsuz",
|
||||||
"Precondition Required": "Deslapky şert",
|
"Precondition Required": "Deslapky şert",
|
||||||
"Processing": "Gaýtadan işlemek",
|
"Processing": "Işlenilýär",
|
||||||
"Province": "Etrap",
|
"Province": "Etrap",
|
||||||
"Provinces": "Etraplar",
|
"Provinces": "Etraplar",
|
||||||
"Proxy Authentication Required": "Proksi tanamak zerur",
|
"Proxy Authentication Required": "Proksi tanamak zerur",
|
||||||
|
|||||||
Reference in New Issue
Block a user