loan order improvemetns
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\Nova\Resources\Branch\Concerns;
|
||||
|
||||
use App\Models\Branch\Branch;
|
||||
use App\Models\System\Location\Province;
|
||||
use Closure;
|
||||
|
||||
class BranchNovaRepo
|
||||
@@ -15,7 +15,7 @@ class BranchNovaRepo
|
||||
return function ($field, $request, $formData) use ($attribute) {
|
||||
$field->options(
|
||||
$formData->{$attribute}
|
||||
? Branch::where('region', $formData->{$attribute})->pluck('name', 'id')
|
||||
? Province::where('region', $formData->{$attribute})->pluck('name', 'id')
|
||||
: []
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user