Skip to content

Commit

Permalink
chore: fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
rahmanramsi authored and github-actions[bot] committed Jan 3, 2025
1 parent 78555d6 commit 36b2def
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
use App\Constants\ReviewerStatus;
use App\Models\Enums\SubmissionStage;
use App\Models\Enums\SubmissionStatus;
use App\Models\Enums\UserRole;
use App\Models\Submission;
use App\Panel\ScheduledConference\Resources\SubmissionResource\Pages;
use Filament\Resources\Resource;
Expand Down Expand Up @@ -48,7 +47,7 @@ public static function getEloquentQuery(): Builder
->withCount([
'editors',
'reviews',
'reviews as completed_reviews_count' => fn($query) => $query->whereNotNull('date_completed')
'reviews as completed_reviews_count' => fn ($query) => $query->whereNotNull('date_completed'),
])
->with(['meta', 'user', 'reviews', 'participants'])
->orderBy('updated_at', 'desc');
Expand Down Expand Up @@ -93,7 +92,7 @@ public static function table(Table $table): Table
->searchable(query: function (Builder $query, string $search): Builder {
return $query
->whereMeta('title', 'like', "%{$search}%")
->orWhereHas('user', fn($query) => $query->whereMeta('public_name', 'like', "%{$search}%")->orWhere('given_name', 'like', "%{$search}%")->orWhere('family_name', 'like', "%{$search}%"));
->orWhereHas('user', fn ($query) => $query->whereMeta('public_name', 'like', "%{$search}%")->orWhere('given_name', 'like', "%{$search}%")->orWhere('family_name', 'like', "%{$search}%"));
}),
Tables\Columns\TextColumn::make('status')
->extraAttributes([
Expand Down Expand Up @@ -125,9 +124,9 @@ public static function table(Table $table): Table
->extraCellAttributes([
'style' => 'width: 1px',
])
->getStateUsing(fn($record) => $record->reviews_count ? view('panel.scheduledConference.components.review-count', [
->getStateUsing(fn ($record) => $record->reviews_count ? view('panel.scheduledConference.components.review-count', [
'reviews_count' => $record->reviews_count,
'completed_reviews_count' => $record->completed_reviews_count
'completed_reviews_count' => $record->completed_reviews_count,
]) : ''),
Tables\Columns\TextColumn::make('reviewed')
->badge()
Expand Down

0 comments on commit 36b2def

Please sign in to comment.