forked from TFMM/silent-auction
upgrade to new versions
This commit is contained in:
@@ -6,9 +6,9 @@ use App\Filament\Resources\ItemsResource\Pages;
|
||||
use App\Filament\Resources\ItemsResource\RelationManagers;
|
||||
use App\Models\Items;
|
||||
use Filament\Forms;
|
||||
use Filament\Resources\Form;
|
||||
use Filament\Forms\Form;
|
||||
use Filament\Resources\Resource;
|
||||
use Filament\Resources\Table;
|
||||
use Filament\Tables\Table;
|
||||
use Filament\Tables;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use Illuminate\Database\Eloquent\SoftDeletingScope;
|
||||
@@ -21,7 +21,7 @@ class ItemsResource extends Resource
|
||||
{
|
||||
protected static ?string $model = Items::class;
|
||||
|
||||
protected static ?string $navigationIcon = 'heroicon-o-collection';
|
||||
protected static ?string $navigationIcon = 'heroicon-o-rectangle-stack';
|
||||
|
||||
protected static ?string $navigationGroup = 'Silent Auction';
|
||||
|
||||
@@ -34,25 +34,9 @@ class ItemsResource extends Resource
|
||||
TextInput::make('item_desc')
|
||||
->label('Description'),
|
||||
TextInput::make('item_min_bid')
|
||||
->label('Minimum Bid')
|
||||
->mask(
|
||||
fn (TextInput\Mask $mask) => $mask->money(
|
||||
prefix: '$',
|
||||
thousandsSeparator: ',',
|
||||
decimalPlaces: 2,
|
||||
isSigned: false
|
||||
)
|
||||
),
|
||||
->label('Minimum Bid'),
|
||||
TextInput::make('item_est_value')
|
||||
->label('Estimated Value')
|
||||
->mask(
|
||||
fn (TextInput\Mask $mask) => $mask->money(
|
||||
prefix: '$',
|
||||
thousandsSeparator: ',',
|
||||
decimalPlaces: 2,
|
||||
isSigned: false
|
||||
)
|
||||
),
|
||||
->label('Estimated Value'),
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -81,7 +65,9 @@ class ItemsResource extends Resource
|
||||
Tables\Actions\EditAction::make(),
|
||||
])
|
||||
->bulkActions([
|
||||
Tables\Actions\DeleteBulkAction::make(),
|
||||
Tables\Actions\BulkActionGroup::make([
|
||||
Tables\Actions\DeleteBulkAction::make(),
|
||||
]),
|
||||
])
|
||||
->defaultSort('item_assigned_num');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user