wip
This commit is contained in:
@@ -33,7 +33,7 @@ class StatusFilter extends Filter
|
||||
*/
|
||||
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 [
|
||||
new RegionFilter(),
|
||||
new StatusFilter(),
|
||||
new ActiveFilter(),
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
@@ -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');
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user