This commit is contained in:
Bozhidar Slaveykov 2024-04-05 17:38:26 +03:00
parent 014172d525
commit fb7c1c5314
6 changed files with 30 additions and 30 deletions

View file

@ -2,8 +2,8 @@
namespace App\Filament\Resources;
use App\Filament\Resources\WebsiteResource\Pages;
use App\Filament\Resources\WebsiteResource\RelationManagers;
use App\Filament\Resources\DomainResource\Pages;
use App\Filament\Resources\DomainResource\RelationManagers;
use App\Models\Domain;
use Filament\Forms;
use Filament\Forms\Form;
@ -14,7 +14,7 @@ use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\SoftDeletingScope;
use Illuminate\Support\Str;
class WebsiteResource extends Resource
class DomainResource extends Resource
{
protected static ?string $model = Domain::class;
@ -41,13 +41,13 @@ class WebsiteResource extends Resource
->searchable()
->sortable(),
Tables\Columns\TextColumn::make('hostingPlan.name')
->searchable()
->sortable(),
// Tables\Columns\TextColumn::make('hostingPlan.name')
// ->searchable()
// ->sortable(),
Tables\Columns\TextColumn::make('customer.name')
->searchable()
->sortable(),
// Tables\Columns\TextColumn::make('customer.name')
// ->searchable()
// ->sortable(),
])
->defaultSort('id', 'desc')

View file

@ -0,0 +1,12 @@
<?php
namespace App\Filament\Resources\DomainResource\Pages;
use App\Filament\Resources\DomainResource;
use Filament\Actions;
use Filament\Resources\Pages\CreateRecord;
class CreateWebsite extends CreateRecord
{
protected static string $resource = DomainResource::class;
}

View file

@ -1,14 +1,14 @@
<?php
namespace App\Filament\Resources\WebsiteResource\Pages;
namespace App\Filament\Resources\DomainResource\Pages;
use App\Filament\Resources\WebsiteResource;
use App\Filament\Resources\DomainResource;
use Filament\Actions;
use Filament\Resources\Pages\EditRecord;
class EditWebsite extends EditRecord
{
protected static string $resource = WebsiteResource::class;
protected static string $resource = DomainResource::class;
protected function getHeaderActions(): array
{

View file

@ -1,14 +1,14 @@
<?php
namespace App\Filament\Resources\WebsiteResource\Pages;
namespace App\Filament\Resources\DomainResource\Pages;
use App\Filament\Resources\WebsiteResource;
use App\Filament\Resources\DomainResource;
use Filament\Actions;
use Filament\Resources\Pages\ListRecords;
class ListWebsites extends ListRecords
{
protected static string $resource = WebsiteResource::class;
protected static string $resource = DomainResource::class;
protected function getHeaderActions(): array
{

View file

@ -1,14 +1,14 @@
<?php
namespace App\Filament\Resources\WebsiteResource\Pages;
namespace App\Filament\Resources\DomainResource\Pages;
use App\Filament\Resources\WebsiteResource;
use App\Filament\Resources\DomainResource;
use Filament\Actions;
use Filament\Resources\Pages\ViewRecord;
class ViewWebsite extends ViewRecord
{
protected static string $resource = WebsiteResource::class;
protected static string $resource = DomainResource::class;
protected static string $view = 'filament.resources.website.pages.view-website';

View file

@ -1,12 +0,0 @@
<?php
namespace App\Filament\Resources\WebsiteResource\Pages;
use App\Filament\Resources\WebsiteResource;
use Filament\Actions;
use Filament\Resources\Pages\CreateRecord;
class CreateWebsite extends CreateRecord
{
protected static string $resource = WebsiteResource::class;
}