ss rosa wip
This commit is contained in:
1 parent
d68890d620
commit
210aed8c97
4 files changed
+23
-13
No files matched your search
+6
-1
@@ -5,6 +5,9 @@ namespace App\Filament\Clusters\StaticData\Resources\SofaScoreRosas\Tables;
|
|||||||
use Filament\Actions\BulkActionGroup;
|
use Filament\Actions\BulkActionGroup;
|
||||||
use Filament\Actions\DeleteBulkAction;
|
use Filament\Actions\DeleteBulkAction;
|
||||||
use Filament\Actions\EditAction;
|
use Filament\Actions\EditAction;
|
||||||
|
use Filament\Forms\Components\Toggle;
|
||||||
|
use Filament\Tables\Columns\TextColumn;
|
||||||
|
use Filament\Tables\Columns\ToggleColumn;
|
||||||
use Filament\Tables\Table;
|
use Filament\Tables\Table;
|
||||||
|
|
||||||
class SofaScoreRosasTable
|
class SofaScoreRosasTable
|
||||||
@@ -13,7 +16,9 @@ class SofaScoreRosasTable
|
|||||||
{
|
{
|
||||||
return $table
|
return $table
|
||||||
->columns([
|
->columns([
|
||||||
//
|
TextColumn::make('ssteam_id')->badge()->alignCenter()->width('1rem'),
|
||||||
|
TextColumn::make('ssteam_name'),
|
||||||
|
ToggleColumn::make('is_active'),
|
||||||
])
|
])
|
||||||
->filters([
|
->filters([
|
||||||
//
|
//
|
||||||
|
|||||||
@@ -0,0 +1,15 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Models;
|
||||||
|
|
||||||
|
use Illuminate\Database\Eloquent\Model;
|
||||||
|
|
||||||
|
class SofaScoreRosa extends Model
|
||||||
|
{
|
||||||
|
protected $fillable = [
|
||||||
|
'ssteam_id',
|
||||||
|
'ssteam_name',
|
||||||
|
'country_id',
|
||||||
|
'is_active',
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
namespace App\Models;
|
|
||||||
|
|
||||||
use Illuminate\Database\Eloquent\Model;
|
|
||||||
|
|
||||||
class SofaScoreRose extends Model
|
|
||||||
{
|
|
||||||
//
|
|
||||||
}
|
|
||||||
@@ -11,7 +11,7 @@ return new class extends Migration
|
|||||||
*/
|
*/
|
||||||
public function up(): void
|
public function up(): void
|
||||||
{
|
{
|
||||||
Schema::create('sofa_score_roses', function (Blueprint $table) {
|
Schema::create('sofa_score_rosas', function (Blueprint $table) {
|
||||||
$table->id();
|
$table->id();
|
||||||
$table->integer('country_id')->default(0)->nullable()->index()->references('id')->on('countries');
|
$table->integer('country_id')->default(0)->nullable()->index()->references('id')->on('countries');
|
||||||
$table->integer('ssteam_id');
|
$table->integer('ssteam_id');
|
||||||
@@ -26,6 +26,6 @@ return new class extends Migration
|
|||||||
*/
|
*/
|
||||||
public function down(): void
|
public function down(): void
|
||||||
{
|
{
|
||||||
Schema::dropIfExists('sofa_score_roses');
|
Schema::dropIfExists('sofa_score_rosas');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
Reference in new issue
Block a user