Files
ntspi-app/app/Filament/Components/Forms/ItemForm/Blocks/PageItemBlock.php
T
F4ilji 2997558a50 refactor: move ByteConverter from Helpers to Services namespace
- Move ByteConverter class to App\Ship\Services
- Update all imports across Filament form blocks
- Update ByteConverterServiceProvider
- Add INTEGRATION_CREDENTIAL_PREFIX to CacheKeys enum
2026-07-02 00:29:29 +05:00

31 lines
1000 B
PHP
Executable File

<?php
namespace App\Filament\Components\Forms\ItemForm\Blocks;
use App\Filament\Components\Forms\ItemForm\Blocks\BlockSchema;
use App\Ship\Services\ByteConverter;
use App\Containers\AppStructure\Models\Page;
use Filament\Forms\Components\FileUpload;
use Filament\Forms\Components\Hidden;
use Filament\Forms\Components\Repeater;
use Filament\Forms\Components\Select;
use Filament\Forms\Components\TextInput;
use Illuminate\Support\Carbon;
use Illuminate\Support\Str;
use Livewire\Features\SupportFileUploads\TemporaryUploadedFile;
class PageItemBlock implements BlockSchema
{
public static function schema(): array
{
return [
Select::make('page')
->label('Страница')
->options(Page::query()->where('title', '!=', null)->where('is_visible', true)->pluck('title', 'id'))
->searchable()
->required()
->helperText('Выберите видимую страницу'),
];
}
}