This commit is contained in:
2025-11-04 23:10:50 +05:00
parent 65a47e8028
commit cc3a9cd854
11 changed files with 348 additions and 12 deletions

View File

@@ -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;

View File

@@ -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);
})