Loan Order

This commit is contained in:
2024-01-31 00:48:51 +05:00
parent bf483a206c
commit 3a83fb157e
11 changed files with 87 additions and 53 deletions

View File

@@ -10,6 +10,7 @@ use App\Repos\System\Settings\Location\RegionRepo;
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 @@ class Branch extends Resource
Textarea::make(__('Address'), 'address'),
NovaSwitcher::make(__('Active'), 'active')
Boolean::make(__('Active'), 'active')
->default(true),
];
}

View File

@@ -7,6 +7,7 @@ use App\Nova\Resource;
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 @@ class CardState extends Resource
Text::make(__('Notes'), 'notes')
->rules('nullable', 'string', 'max:255'),
NovaSwitcher::make(__('Active'), 'active')
Boolean::make(__('Active'), 'active')
->default(true),
];
}

View File

@@ -9,6 +9,7 @@ use Laravel\Nova\Fields\ID;
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 @@ class CardType extends Resource
Text::make(__('Notes'), 'notes')
->rules('nullable', 'string', 'max:255'),
NovaSwitcher::make(__('Active'), 'active')
Boolean::make(__('Active'), 'active')
->default(true),
];
}

View File

@@ -165,51 +165,6 @@ class LoanOrder extends Resource
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'), [

View File

@@ -8,6 +8,7 @@ use App\Nova\Resource;
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 @@ class LoanType extends Resource
Text::make(__('Notes'), 'notes')
->rules('required', 'string', 'max:255'),
NovaSwitcher::make(__('Active'), 'active')
Boolean::make(__('Active'), 'active')
->default(true),
];
}

View File

@@ -8,6 +8,7 @@ use App\Nova\Filters\RegionFilter;
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 @@ class Province extends Resource
->translatable()
->rules('required', 'string', 'max:255'),
NovaSwitcher::make(__('Active'), 'active')
Boolean::make(__('Active'), 'active')
->default(true),
];
}

View File

@@ -14,6 +14,7 @@ use Laravel\Nova\Fields\HasMany;
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 @@ class User extends Resource
->creationRules('required', Rules\Password::defaults())
->updateRules('nullable', Rules\Password::defaults()),
NovaSwitcher::make(__('Active'), 'active')
Boolean::make(__('Active'), 'active')
->default(true)
->canSeeWhen('isAdmin', $this),