Initial baseline: LaraBlog core with plugin commerce surface.
Captures the current working tree after theme slots, ArticleAccess, and the payment / paid-content plugins so subsequent work has a reviewable git history.
This commit is contained in:
@@ -0,0 +1,81 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Filament\Resources\Attachments\Tables;
|
||||
|
||||
use Filament\Actions\BulkActionGroup;
|
||||
use Filament\Actions\DeleteBulkAction;
|
||||
use Filament\Actions\EditAction;
|
||||
use Filament\Tables\Columns\TextColumn;
|
||||
use Filament\Tables\Table;
|
||||
|
||||
class AttachmentsTable
|
||||
{
|
||||
public static function configure(Table $table): Table
|
||||
{
|
||||
return $table
|
||||
->columns([
|
||||
TextColumn::make('article.title')
|
||||
->label(__('admin.fields.article'))
|
||||
->searchable(),
|
||||
TextColumn::make('disk')
|
||||
->label(__('admin.fields.disk'))
|
||||
->searchable(),
|
||||
TextColumn::make('path')
|
||||
->label(__('admin.fields.path'))
|
||||
->searchable(),
|
||||
TextColumn::make('thumb_path')
|
||||
->label(__('admin.fields.thumb_path'))
|
||||
->searchable(),
|
||||
TextColumn::make('filename')
|
||||
->label(__('admin.fields.filename'))
|
||||
->searchable(),
|
||||
TextColumn::make('mime')
|
||||
->label(__('admin.fields.mime'))
|
||||
->searchable(),
|
||||
TextColumn::make('size')
|
||||
->label(__('admin.fields.size'))
|
||||
->numeric()
|
||||
->sortable(),
|
||||
TextColumn::make('checksum')
|
||||
->label(__('admin.fields.checksum'))
|
||||
->searchable(),
|
||||
TextColumn::make('visibility')
|
||||
->label(__('admin.fields.visibility'))
|
||||
->searchable(),
|
||||
TextColumn::make('legacy_filepath')
|
||||
->label(__('admin.fields.legacy_filepath'))
|
||||
->searchable(),
|
||||
TextColumn::make('synced_at')
|
||||
->label(__('admin.fields.synced_at'))
|
||||
->dateTime()
|
||||
->sortable(),
|
||||
TextColumn::make('downloads')
|
||||
->label(__('admin.fields.downloads'))
|
||||
->numeric()
|
||||
->sortable(),
|
||||
TextColumn::make('created_at')
|
||||
->label(__('admin.fields.created_at'))
|
||||
->dateTime()
|
||||
->sortable()
|
||||
->toggleable(isToggledHiddenByDefault: true),
|
||||
TextColumn::make('updated_at')
|
||||
->label(__('admin.fields.updated_at'))
|
||||
->dateTime()
|
||||
->sortable()
|
||||
->toggleable(isToggledHiddenByDefault: true),
|
||||
])
|
||||
->filters([
|
||||
//
|
||||
])
|
||||
->recordActions([
|
||||
EditAction::make(),
|
||||
])
|
||||
->toolbarActions([
|
||||
BulkActionGroup::make([
|
||||
DeleteBulkAction::make(),
|
||||
]),
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user