This commit is contained in:
2023-12-04 16:43:08 +05:00
parent 11778c5c52
commit 4d1839ef84
2 changed files with 2 additions and 4 deletions

View File

@@ -25,9 +25,7 @@ class LoanOrderFieldsForIndex
Text::make(__('ID'), 'unique_id')->sortable(),
Select::make(__('Loan type'), 'loan_type')
->displayUsingLabels()
->options(LoanTypeRepo::values())
BelongsTo::make(__('Loan type'), 'loanType', LoanType::class)
->sortable(),
Select::make(__('Region'), 'region')

View File

@@ -55,7 +55,7 @@ class LoanOrder extends Resource
*
* @var array
*/
public static $with = ['branch'];
public static $with = ['branch', 'loanType'];
/**
* The columns that should be searched.