Files
minicrm/app/Filament/Resources/FeedbackChannels/FeedbackChannelResource.php
phuongtc 887765bbd7 feat: AfterSales CRM - SOP compliant real-estate customer care system
- Departments + cross-department transfer workflow
- Role-based closing (staff→resolved, manager→closed) with proof_of_resolution
- Private file storage with collection system + temporary signed URLs
- Dashboard: resolved tickets table, stats, handler performance bar chart
- Spatie RBAC (admin/manager/staff)
- Notifications: TicketTransferred, TicketClosed (database + mail)
- Pest tests: 8 tests, 21 assertions
- Docker production-ready (Dockerfile + compose + entrypoint)
2026-04-27 05:29:48 +00:00

58 lines
1.6 KiB
PHP

<?php
namespace App\Filament\Resources\FeedbackChannels;
use App\Filament\Resources\FeedbackChannels\Pages\CreateFeedbackChannel;
use App\Filament\Resources\FeedbackChannels\Pages\EditFeedbackChannel;
use App\Filament\Resources\FeedbackChannels\Pages\ListFeedbackChannels;
use App\Filament\Resources\FeedbackChannels\Schemas\FeedbackChannelForm;
use App\Filament\Resources\FeedbackChannels\Tables\FeedbackChannelsTable;
use App\Models\FeedbackChannel;
use BackedEnum;
use Filament\Resources\Resource;
use Filament\Schemas\Schema;
use Filament\Support\Icons\Heroicon;
use Filament\Tables\Table;
class FeedbackChannelResource extends Resource
{
protected static ?string $model = FeedbackChannel::class;
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedInboxStack;
protected static ?string $pluralLabel = 'Channels';
protected static ?int $navigationSort = 3;
public static function getNavigationGroup(): ?string
{
return 'Management';
}
public static function form(Schema $schema): Schema
{
return FeedbackChannelForm::configure($schema);
}
public static function table(Table $table): Table
{
return FeedbackChannelsTable::configure($table);
}
public static function getRelations(): array
{
return [
//
];
}
public static function getPages(): array
{
return [
'index' => ListFeedbackChannels::route('/'),
'create' => CreateFeedbackChannel::route('/create'),
'edit' => EditFeedbackChannel::route('/{record}/edit'),
];
}
}