1
0
forked from poc/pds

Masters and Transaction changes

This commit is contained in:
dhanabalan
2025-03-24 17:23:01 +05:30
parent 04ee0cadd5
commit c631f1f2c0
123 changed files with 6935 additions and 32 deletions

View File

@@ -17,7 +17,9 @@ class CompanyResource extends Resource
{
protected static ?string $model = Company::class;
protected static ?string $navigationIcon = 'heroicon-o-rectangle-stack';
protected static ?string $navigationIcon = 'heroicon-s-home-modern';
protected static ?string $navigationGroup = 'Master Entries';
public static function form(Form $form): Form
{
@@ -25,6 +27,7 @@ class CompanyResource extends Resource
->schema([
Forms\Components\TextInput::make('name')
->required()
->unique()
->columnSpanFull(),
]);
}
@@ -37,7 +40,6 @@ class CompanyResource extends Resource
->label('ID')
->numeric()
->sortable(),
Tables\Columns\TextColumn::make('name')
->sortable(),
Tables\Columns\TextColumn::make('created_at')
@@ -45,10 +47,12 @@ class CompanyResource extends Resource
->sortable(),
Tables\Columns\TextColumn::make('updated_at')
->dateTime()
->sortable(),
->sortable()
->toggleable(isToggledHiddenByDefault: true),
Tables\Columns\TextColumn::make('deleted_at')
->dateTime()
->sortable(),
->sortable()
->toggleable(isToggledHiddenByDefault: true),
])
->filters([
Tables\Filters\TrashedFilter::make(),