feat: add Partners and Bank Accounts pages via Pages module

This commit is contained in:
Muhammet Güler
2026-02-10 19:02:23 +03:00
parent b289cfd829
commit bda19b4b0f
6 changed files with 268 additions and 0 deletions
@@ -0,0 +1,46 @@
<?php
namespace App\Filament\Admin\Resources\Pages\Schemas\Sections;
use Filament\Forms\Components\FileUpload;
use Filament\Forms\Components\Repeater;
use Filament\Forms\Components\TextInput;
use Filament\Schemas\Components\Section;
use Filament\Schemas\Components\Utilities\Get;
class PartnersSection
{
public static function make(): Section
{
return Section::make(__('Çözüm Ortakları'))
->description(__('Bu sayfada gösterilecek çözüm ortaklarını buradan yönetebilirsiniz.'))
->schema([
Repeater::make('data.partners')
->label('Partnerler')
->schema([
FileUpload::make('logo')
->label('Logo')
->image()
->disk('public')
->directory('partners')
->visibility('public')
->required()
->columnSpanFull(),
TextInput::make('url')
->label('Website URL')
->url()
->placeholder('https://example.com')
->columnSpanFull(),
])
->grid(4)
->columnSpanFull()
->reorderableWithButtons()
->collapsible()
->cloneable(),
])
->visible(fn (Get $get): bool => $get('template') === 'corporate.partners')
->columnSpanFull()
->collapsible();
}
}