Enhance ListRecords pages with tab functionality and default sorting
- Added getTabs method to ListCardPinOrders, ListLoanOrders, and ListLoanOrderMobiles pages to display order statuses for system users. - Implemented default sorting by 'created_at' in LoanOrdersTable and LoanOrderMobilesTable for improved data organization. - Updated ManageCards page to ensure proper type declaration for getTitle method.
This commit is contained in:
@@ -20,4 +20,4 @@ class BranchesMigrator
|
||||
->insert($data);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,4 +20,4 @@ class CardOrdersMigrator
|
||||
->insert($data);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,4 +26,4 @@ class CardPinOrdersMigrator
|
||||
->insert($data);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,4 +20,4 @@ class CardStatesMigrator
|
||||
->insert($data);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,4 +20,4 @@ class CardTypesMigrator
|
||||
->insert($data);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,4 +20,4 @@ class LoanOrderRequiredDocsMigrator
|
||||
->insert($data);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,19 +2,16 @@
|
||||
|
||||
namespace Database\Seeders\Migrators;
|
||||
|
||||
use JsonMachine\JsonMachine;
|
||||
use JsonMachine\Items;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use Illuminate\Support\Facades\File;
|
||||
use Illuminate\Support\LazyCollection;
|
||||
use Cerbero\LazyJson\LazyJson;
|
||||
use JsonMachine\Items;
|
||||
|
||||
class LoanOrdersMigrator
|
||||
{
|
||||
public function migrate(): void
|
||||
{
|
||||
// Running on seeder file, may not work.
|
||||
|
||||
|
||||
DB::table('loan_orders')->truncate();
|
||||
|
||||
$path = database_path('data/nurmuhammetsdb/loan_orders.json');
|
||||
@@ -29,4 +26,4 @@ class LoanOrdersMigrator
|
||||
DB::table('loan_orders')->insert((array) $item);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,4 +20,4 @@ class ProvincesMigrator
|
||||
->insert($data);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
namespace Database\Seeders\Migrators;
|
||||
|
||||
use Illuminate\Support\Facades\DB;
|
||||
use JsonMachine\JsonMachine;
|
||||
use JsonMachine\Items;
|
||||
|
||||
class VisaMasterPaymentOrdersMigrator
|
||||
@@ -21,7 +20,6 @@ class VisaMasterPaymentOrdersMigrator
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
$sender_datas = json_decode($item->sender_datas);
|
||||
$payment_reciever = json_decode($item->payment_reciever);
|
||||
|
||||
@@ -63,4 +61,4 @@ class VisaMasterPaymentOrdersMigrator
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user