Loan Order

This commit is contained in:
nurmuhammet committed 2024-01-31 00:48:51 +05:00
1 parent bf483a206c
commit 3a83fb157e
11 files changed
+87 -53

No files matched your search

+2 -1
View File
@@ -10,6 +10,7 @@
use Illuminate\Http\Request;
use Laravel\Nova\Fields\ID;
use Laravel\Nova\Fields\Select;
use Laravel\Nova\Fields\Boolean;
use Laravel\Nova\Fields\Text;
use Laravel\Nova\Fields\Textarea;
use Laravel\Nova\Http\Requests\NovaRequest;
@@ -94,7 +95,7 @@ public function fields(NovaRequest $request): array
Textarea::make(__('Address'), 'address'),
NovaSwitcher::make(__('Active'), 'active')
Boolean::make(__('Active'), 'active')
->default(true),
];
}
+2 -1
View File
@@ -7,6 +7,7 @@
use Illuminate\Http\Request;
use Laravel\Nova\Fields\ID;
use Laravel\Nova\Fields\Text;
use Laravel\Nova\Fields\Boolean;
use Laravel\Nova\Http\Requests\NovaRequest;
use Trin4ik\NovaSwitcher\NovaSwitcher;
@@ -69,7 +70,7 @@ public function fields(NovaRequest $request): array
Text::make(__('Notes'), 'notes')
->rules('nullable', 'string', 'max:255'),
NovaSwitcher::make(__('Active'), 'active')
Boolean::make(__('Active'), 'active')
->default(true),
];
}
+2 -1
View File
@@ -9,6 +9,7 @@
use Laravel\Nova\Fields\Text;
use Laravel\Nova\Http\Requests\NovaRequest;
use Trin4ik\NovaSwitcher\NovaSwitcher;
use Laravel\Nova\Fields\Boolean;
class CardType extends Resource
{
@@ -69,7 +70,7 @@ public function fields(NovaRequest $request): array
Text::make(__('Notes'), 'notes')
->rules('nullable', 'string', 'max:255'),
NovaSwitcher::make(__('Active'), 'active')
Boolean::make(__('Active'), 'active')
->default(true),
];
}
@@ -165,51 +165,6 @@ public function fields(NovaRequest $request): array
Text::make(__('Note'), 'notes')
->fullWidth()
->canSeeWhen('systemUser', $this),
Text::make(__('Note'), 'notes')
->fullWidth()
->canSeeWhen('systemUser', $this),
Text::make(__('Note'), 'notes')
->fullWidth()
->canSeeWhen('systemUser', $this),
Text::make(__('Note'), 'notes')
->fullWidth()
->canSeeWhen('systemUser', $this),
Text::make(__('Note'), 'notes')
->fullWidth()
->canSeeWhen('systemUser', $this),
Text::make(__('Note'), 'notes')
->fullWidth()
->canSeeWhen('systemUser', $this),
Text::make(__('Note'), 'notes')
->fullWidth()
->canSeeWhen('systemUser', $this),
Text::make(__('Note'), 'notes')
->fullWidth()
->canSeeWhen('systemUser', $this),
Text::make(__('Note'), 'notes')
->fullWidth()
->canSeeWhen('systemUser', $this),
Text::make(__('Note'), 'notes')
->fullWidth()
->canSeeWhen('systemUser', $this),
Text::make(__('Note'), 'notes')
->fullWidth()
->canSeeWhen('systemUser', $this),
Text::make(__('Note'), 'notes')
->fullWidth()
->canSeeWhen('systemUser', $this),
Text::make(__('Note'), 'notes')
->fullWidth()
->canSeeWhen('systemUser', $this),
Text::make(__('Note'), 'notes')
->fullWidth()
->canSeeWhen('systemUser', $this),
Text::make(__('Note'), 'notes')
->fullWidth()
->canSeeWhen('systemUser', $this),
Text::make(__('Note'), 'notes')
->fullWidth()
->canSeeWhen('systemUser', $this),
]),
new Panel(__('Loan'), [
+2 -1
View File
@@ -8,6 +8,7 @@
use Illuminate\Http\Request;
use Laravel\Nova\Fields\ID;
use Laravel\Nova\Fields\Number;
use Laravel\Nova\Fields\Boolean;
use Laravel\Nova\Fields\Text;
use Laravel\Nova\Http\Requests\NovaRequest;
use Trin4ik\NovaSwitcher\NovaSwitcher;
@@ -74,7 +75,7 @@ public function fields(NovaRequest $request): array
Text::make(__('Notes'), 'notes')
->rules('required', 'string', 'max:255'),
NovaSwitcher::make(__('Active'), 'active')
Boolean::make(__('Active'), 'active')
->default(true),
];
}
@@ -8,6 +8,7 @@
use App\Nova\Resource;
use App\Repos\System\Settings\Location\RegionRepo;
use Illuminate\Http\Request;
use Laravel\Nova\Fields\Boolean;
use Laravel\Nova\Fields\ID;
use Laravel\Nova\Fields\Select;
use Laravel\Nova\Fields\Text;
@@ -75,7 +76,7 @@ public function fields(NovaRequest $request): array
->translatable()
->rules('required', 'string', 'max:255'),
NovaSwitcher::make(__('Active'), 'active')
Boolean::make(__('Active'), 'active')
->default(true),
];
}
+2 -1
View File
@@ -14,6 +14,7 @@
use Laravel\Nova\Fields\ID;
use Laravel\Nova\Fields\MorphToMany;
use Laravel\Nova\Fields\Password;
use Laravel\Nova\Fields\Boolean;
use Laravel\Nova\Fields\Text;
use Laravel\Nova\Http\Requests\NovaRequest;
use Nurmuhammet\NovaInputmask\NovaInputmask;
@@ -108,7 +109,7 @@ public function fields(NovaRequest $request): array
->creationRules('required', Rules\Password::defaults())
->updateRules('nullable', Rules\Password::defaults()),
NovaSwitcher::make(__('Active'), 'active')
Boolean::make(__('Active'), 'active')
->default(true)
->canSeeWhen('isAdmin', $this),