wip
This commit is contained in:
@@ -8,7 +8,7 @@ use App\Filament\Clusters\Loans\Resources\LoanOrderMobiles\Pages\EditLoanOrderMo
|
||||
use App\Filament\Clusters\Loans\Resources\LoanOrderMobiles\Pages\ListLoanOrderMobiles;
|
||||
use App\Filament\Clusters\Loans\Resources\LoanOrderMobiles\Schemas\LoanOrderMobileForm;
|
||||
use App\Filament\Clusters\Loans\Resources\LoanOrderMobiles\Tables\LoanOrderMobilesTable;
|
||||
use App\Modules\LoanOrder\Models\LoanOrder;
|
||||
use App\Modules\LoanOrderMobile\Models\LoanOrderMobile;
|
||||
use BackedEnum;
|
||||
use Filament\Resources\Resource;
|
||||
use Filament\Schemas\Schema;
|
||||
@@ -19,7 +19,7 @@ use Illuminate\Database\Eloquent\SoftDeletingScope;
|
||||
|
||||
class LoanOrderMobileResource extends Resource
|
||||
{
|
||||
protected static ?string $model = LoanOrder::class;
|
||||
protected static ?string $model = LoanOrderMobile::class;
|
||||
|
||||
protected static ?int $navigationSort = 3;
|
||||
|
||||
|
||||
@@ -453,7 +453,7 @@ class LoanOrderMobileForm
|
||||
Tab::make(__('Guarantor').' 2')
|
||||
->columns(6)
|
||||
->hidden(function (Get $get): bool {
|
||||
$loan_amount = string($get('loan_amount'));
|
||||
$loan_amount = $get('loan_amount') ? string($get('loan_amount')) : 1;
|
||||
|
||||
return ! ($loan_amount && intval($loan_amount) > 20000);
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user