Skip to content

Commit

Permalink
chore: formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sriramkanakam87 committed Jul 22, 2024
1 parent 497727e commit bdb8348
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions app/Filament/Dashboard/Resources/MoleculeResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
use Filament\Resources\Resource;
use Filament\Tables;
use Filament\Tables\Actions\Action;
use Filament\Tables\Actions\BulkAction;
use Filament\Tables\Columns\ImageColumn;
use Filament\Tables\Table;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Cache;
use pxlrbt\FilamentExcel\Actions\Tables\ExportBulkAction;
use pxlrbt\FilamentExcel\Exports\ExcelExport;
use Tapp\FilamentAuditing\RelationManagers\AuditsRelationManager;
use Filament\Tables\Actions\BulkAction;
use Illuminate\Database\Eloquent\Collection;

class MoleculeResource extends Resource
{
Expand Down Expand Up @@ -67,7 +67,7 @@ public static function table(Table $table): Table
ImageColumn::make('structure')->square()
->label('Structure')
->state(function ($record) {
return env('CM_API', 'https://dev.api.naturalproducts.net/latest/') . 'depict/2D?smiles=' . urlencode($record->canonical_smiles) . '&height=300&width=300&CIP=false&toolkit=cdk';
return env('CM_API', 'https://dev.api.naturalproducts.net/latest/').'depict/2D?smiles='.urlencode($record->canonical_smiles).'&height=300&width=300&CIP=false&toolkit=cdk';
})
->width(200)
->height(200)
Expand All @@ -94,7 +94,7 @@ public static function table(Table $table): Table
])
->action(function (array $data, Molecule $record): void {

$record->active = !$record->active;
$record->active = ! $record->active;

$reasons = json_decode($record->comment, true);
array_push($reasons, [
Expand All @@ -109,7 +109,7 @@ public static function table(Table $table): Table
$record->save();
})
->modalHidden(function (Molecule $record) {
return !$record['active'];
return ! $record['active'];
})
)
->searchable(),
Expand All @@ -133,7 +133,7 @@ public static function table(Table $table): Table
])
->action(function (array $data, Collection $records): void {
foreach ($records as $record) {
$record->active = !$record->active;
$record->active = ! $record->active;

$reasons = json_decode($record->comment, true);
array_push($reasons, [
Expand Down

0 comments on commit bdb8348

Please sign in to comment.