diff --git a/app/Filament/Central/Resources/CompanyResource.php b/app/Filament/Central/Resources/CompanyResource.php index 959d37d..a48a3a4 100644 --- a/app/Filament/Central/Resources/CompanyResource.php +++ b/app/Filament/Central/Resources/CompanyResource.php @@ -9,6 +9,7 @@ use Filament\Forms; use Filament\Resources\Resource; use Filament\Schemas\Schema; use Filament\Actions; +use Filament\Schemas; use Filament\Tables; use Filament\Tables\Table; @@ -27,7 +28,7 @@ class CompanyResource extends Resource public static function form(Schema $schema): Schema { return $schema->components([ - Forms\Components\Section::make('Identificare') + Schemas\Components\Section::make('Identificare') ->columns(2) ->schema([ Forms\Components\TextInput::make('slug') @@ -41,14 +42,14 @@ class CompanyResource extends Resource Forms\Components\TextInput::make('display_name')->maxLength(120), Forms\Components\TextInput::make('city')->maxLength(60), ]), - Forms\Components\Section::make('Contact') + Schemas\Components\Section::make('Contact') ->columns(2) ->schema([ Forms\Components\TextInput::make('contact_name')->maxLength(120), Forms\Components\TextInput::make('phone')->tel()->maxLength(40), Forms\Components\TextInput::make('email')->email()->maxLength(120), ]), - Forms\Components\Section::make('Abonament') + Schemas\Components\Section::make('Abonament') ->columns(2) ->schema([ Forms\Components\Select::make('status') diff --git a/app/Filament/Tenant/Pages/Settings.php b/app/Filament/Tenant/Pages/Settings.php index 2685692..0d734ba 100644 --- a/app/Filament/Tenant/Pages/Settings.php +++ b/app/Filament/Tenant/Pages/Settings.php @@ -47,7 +47,7 @@ class Settings extends Page { return $schema ->components([ - Forms\Components\Section::make('Brand & contact') + Schemas\Components\Section::make('Brand & contact') ->columns(2) ->schema([ Forms\Components\TextInput::make('display_name')->label('Denumire afișată')->maxLength(120), @@ -55,7 +55,7 @@ class Settings extends Page Forms\Components\TextInput::make('phone')->label('Telefon')->tel()->maxLength(40), Forms\Components\TextInput::make('email')->email()->maxLength(120), ]), - Forms\Components\Section::make('Localizare & monedă') + Schemas\Components\Section::make('Localizare & monedă') ->columns(3) ->schema([ Forms\Components\Select::make('language') @@ -65,12 +65,12 @@ class Settings extends Page Forms\Components\TextInput::make('currency')->label('Monedă')->maxLength(8)->required(), Forms\Components\ColorPicker::make('theme_color')->label('Culoare brand'), ]), - Forms\Components\Section::make('Servicii & tarif') + Schemas\Components\Section::make('Servicii & tarif') ->columns(2) ->schema([ Forms\Components\TextInput::make('labor_rate')->label('Tarif normo-oră')->numeric()->required(), ]), - Forms\Components\Section::make('Liste configurabile') + Schemas\Components\Section::make('Liste configurabile') ->columns(1) ->schema([ Forms\Components\Textarea::make('services') diff --git a/app/Filament/Tenant/Resources/AppointmentResource.php b/app/Filament/Tenant/Resources/AppointmentResource.php index 9f6690f..368f0d9 100644 --- a/app/Filament/Tenant/Resources/AppointmentResource.php +++ b/app/Filament/Tenant/Resources/AppointmentResource.php @@ -12,6 +12,7 @@ use Filament\Forms; use Filament\Resources\Resource; use Filament\Schemas\Schema; use Filament\Actions; +use Filament\Schemas; use Filament\Tables; use Filament\Tables\Table; @@ -34,7 +35,7 @@ class AppointmentResource extends Resource public static function form(Schema $schema): Schema { return $schema->components([ - Forms\Components\Section::make('Când & unde') + Schemas\Components\Section::make('Când & unde') ->columns(3) ->schema([ Forms\Components\DatePicker::make('date')->label('Data')->default(today())->required(), @@ -53,7 +54,7 @@ class AppointmentResource extends Resource ->default('scheduled') ->required(), ]), - Forms\Components\Section::make('Client & Auto') + Schemas\Components\Section::make('Client & Auto') ->columns(2) ->schema([ Forms\Components\Select::make('client_id') @@ -63,7 +64,7 @@ class AppointmentResource extends Resource ->live(), Forms\Components\Select::make('vehicle_id') ->label('Auto') - ->options(fn (Forms\Get $get) => $get('client_id') + ->options(fn (Schemas\Components\Utilities\Get $get) => $get('client_id') ? Vehicle::where('client_id', $get('client_id'))->pluck('plate', 'id') : []) ->searchable(), diff --git a/app/Filament/Tenant/Resources/ClientResource.php b/app/Filament/Tenant/Resources/ClientResource.php index 5f673d9..f0a99c7 100644 --- a/app/Filament/Tenant/Resources/ClientResource.php +++ b/app/Filament/Tenant/Resources/ClientResource.php @@ -8,6 +8,7 @@ use Filament\Forms; use Filament\Resources\Resource; use Filament\Schemas\Schema; use Filament\Actions; +use Filament\Schemas; use Filament\Tables; use Filament\Tables\Table; @@ -28,7 +29,7 @@ class ClientResource extends Resource public static function form(Schema $schema): Schema { return $schema->components([ - Forms\Components\Section::make('Date generale') + Schemas\Components\Section::make('Date generale') ->columns(2) ->schema([ Forms\Components\Select::make('type') @@ -40,7 +41,7 @@ class ClientResource extends Resource Forms\Components\TextInput::make('name')->label('Nume')->required()->maxLength(120), Forms\Components\TextInput::make('company_name') ->label('Denumire companie') - ->visible(fn (Forms\Get $get) => $get('type') === 'company') + ->visible(fn (Schemas\Components\Utilities\Get $get) => $get('type') === 'company') ->maxLength(160), Forms\Components\Select::make('status') ->options([ @@ -50,7 +51,7 @@ class ClientResource extends Resource ->default('active') ->required(), ]), - Forms\Components\Section::make('Contacte') + Schemas\Components\Section::make('Contacte') ->columns(2) ->schema([ Forms\Components\TextInput::make('phone')->label('Telefon')->tel()->required()->maxLength(40), @@ -60,13 +61,13 @@ class ClientResource extends Resource Forms\Components\TextInput::make('whatsapp')->maxLength(60), Forms\Components\TextInput::make('viber')->maxLength(60), ]), - Forms\Components\Section::make('Marketing') + Schemas\Components\Section::make('Marketing') ->columns(2) ->schema([ Forms\Components\TextInput::make('source')->label('Sursă')->maxLength(60), Forms\Components\TextInput::make('marketing_channel')->label('Canal marketing')->maxLength(60), ]), - Forms\Components\Section::make('Financiar') + Schemas\Components\Section::make('Financiar') ->columns(2) ->schema([ Forms\Components\TextInput::make('balance')->label('Sold')->numeric()->default(0), diff --git a/app/Filament/Tenant/Resources/DealResource.php b/app/Filament/Tenant/Resources/DealResource.php index e7073ec..cbc1f28 100644 --- a/app/Filament/Tenant/Resources/DealResource.php +++ b/app/Filament/Tenant/Resources/DealResource.php @@ -12,6 +12,7 @@ use Filament\Forms; use Filament\Resources\Resource; use Filament\Schemas\Schema; use Filament\Actions; +use Filament\Schemas; use Filament\Tables; use Filament\Tables\Table; @@ -34,7 +35,7 @@ class DealResource extends Resource public static function form(Schema $schema): Schema { return $schema->components([ - Forms\Components\Section::make('Detalii') + Schemas\Components\Section::make('Detalii') ->columns(2) ->schema([ Forms\Components\Select::make('client_id') @@ -44,7 +45,7 @@ class DealResource extends Resource ->required(), Forms\Components\Select::make('vehicle_id') ->label('Auto') - ->options(fn (Forms\Get $get) => $get('client_id') + ->options(fn (Schemas\Components\Utilities\Get $get) => $get('client_id') ? Vehicle::where('client_id', $get('client_id'))->pluck('plate', 'id') : []) ->searchable(), diff --git a/app/Filament/Tenant/Resources/LeadResource.php b/app/Filament/Tenant/Resources/LeadResource.php index 7ce119b..687cede 100644 --- a/app/Filament/Tenant/Resources/LeadResource.php +++ b/app/Filament/Tenant/Resources/LeadResource.php @@ -10,6 +10,7 @@ use Filament\Notifications\Notification; use Filament\Resources\Resource; use Filament\Schemas\Schema; use Filament\Actions; +use Filament\Schemas; use Filament\Tables; use Filament\Tables\Table; @@ -32,7 +33,7 @@ class LeadResource extends Resource public static function form(Schema $schema): Schema { return $schema->components([ - Forms\Components\Section::make('Contact') + Schemas\Components\Section::make('Contact') ->columns(2) ->schema([ Forms\Components\TextInput::make('name')->label('Nume')->required()->maxLength(120), @@ -43,14 +44,14 @@ class LeadResource extends Resource ->default('new') ->required(), ]), - Forms\Components\Section::make('Auto') + Schemas\Components\Section::make('Auto') ->columns(2) ->schema([ Forms\Components\TextInput::make('car')->label('Marca')->maxLength(60), Forms\Components\TextInput::make('model')->maxLength(60), ]), Forms\Components\Textarea::make('message')->label('Mesaj client')->columnSpanFull()->rows(3), - Forms\Components\Section::make('Sursă & Atribuire') + Schemas\Components\Section::make('Sursă & Atribuire') ->columns(2) ->schema([ Forms\Components\Select::make('source') @@ -63,7 +64,7 @@ class LeadResource extends Resource ->searchable(), Forms\Components\TextInput::make('budget')->label('Buget')->numeric(), ]), - Forms\Components\Section::make('Marketing (UTM)') + Schemas\Components\Section::make('Marketing (UTM)') ->collapsed() ->columns(2) ->schema([ diff --git a/app/Filament/Tenant/Resources/UserResource.php b/app/Filament/Tenant/Resources/UserResource.php index 230ef75..b382871 100644 --- a/app/Filament/Tenant/Resources/UserResource.php +++ b/app/Filament/Tenant/Resources/UserResource.php @@ -8,6 +8,7 @@ use Filament\Forms; use Filament\Resources\Resource; use Filament\Schemas\Schema; use Filament\Actions; +use Filament\Schemas; use Filament\Tables; use Filament\Tables\Table; use Illuminate\Support\Facades\Hash; @@ -37,7 +38,7 @@ class UserResource extends Resource public static function form(Schema $schema): Schema { return $schema->components([ - Forms\Components\Section::make('Identitate') + Schemas\Components\Section::make('Identitate') ->columns(2) ->schema([ Forms\Components\TextInput::make('name')->label('Nume')->required()->maxLength(120), @@ -47,7 +48,7 @@ class UserResource extends Resource ->options(['ro' => 'Română', 'ru' => 'Русский', 'en' => 'English']) ->default('ro'), ]), - Forms\Components\Section::make('Acces') + Schemas\Components\Section::make('Acces') ->columns(2) ->schema([ Forms\Components\Select::make('role') diff --git a/app/Filament/Tenant/Resources/VehicleResource.php b/app/Filament/Tenant/Resources/VehicleResource.php index f885c94..fece9f0 100644 --- a/app/Filament/Tenant/Resources/VehicleResource.php +++ b/app/Filament/Tenant/Resources/VehicleResource.php @@ -9,6 +9,7 @@ use Filament\Forms; use Filament\Resources\Resource; use Filament\Schemas\Schema; use Filament\Actions; +use Filament\Schemas; use Filament\Tables; use Filament\Tables\Table; @@ -29,7 +30,7 @@ class VehicleResource extends Resource public static function form(Schema $schema): Schema { return $schema->components([ - Forms\Components\Section::make('Identificare') + Schemas\Components\Section::make('Identificare') ->columns(2) ->schema([ Forms\Components\Select::make('client_id') @@ -43,7 +44,7 @@ class VehicleResource extends Resource Forms\Components\TextInput::make('year')->numeric()->minValue(1950)->maxValue(2100), Forms\Components\TextInput::make('vin')->maxLength(32), ]), - Forms\Components\Section::make('Tehnice') + Schemas\Components\Section::make('Tehnice') ->columns(2) ->schema([ Forms\Components\TextInput::make('engine')->maxLength(60),