Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion app/Services/Portal/StatisticsService.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ public function countryStats(): Collection
/** @var Collection<int, Country> */
return Cache::remember('portal_country_stats', $this->cacheTtl, static fn (): Collection => Country::where('active', true)
->withCount('menus')
->withCount(['recipes as variants_count' => fn (Builder $query) => $query->where('variant', true)])
->get());
}

Expand Down
4 changes: 0 additions & 4 deletions resources/views/portal/livewire/stats/recipe-stats.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@
<flux:table.column class="ui-text-subtle">Name</flux:table.column>
<flux:table.column class="ui-text-subtle">Locales</flux:table.column>
<flux:table.column sortable :sorted="$sortBy === 'recipes_count'" :direction="$sortDirection" wire:click="sort('recipes_count')" align="end">Recipes</flux:table.column>
<flux:table.column sortable :sorted="$sortBy === 'variants_count'" :direction="$sortDirection" wire:click="sort('variants_count')" align="end">Variants</flux:table.column>
<flux:table.column sortable :sorted="$sortBy === 'recipes_with_pdf_count'" :direction="$sortDirection" wire:click="sort('recipes_with_pdf_count')" align="end">with PDF</flux:table.column>
<flux:table.column sortable :sorted="$sortBy === 'ingredients_count'" :direction="$sortDirection" wire:click="sort('ingredients_count')" align="end">Ingredients</flux:table.column>
<flux:table.column sortable :sorted="$sortBy === 'menus_count'" :direction="$sortDirection" wire:click="sort('menus_count')" align="end">Menus</flux:table.column>
Expand All @@ -216,9 +215,6 @@
<flux:table.cell align="end" class="tabular-nums">
{{ Number::format($country->recipes_count ?? 0) }}
</flux:table.cell>
<flux:table.cell align="end" class="tabular-nums">
{{ Number::format($country->variants_count ?? 0) }}
</flux:table.cell>
<flux:table.cell align="end" class="tabular-nums">
{{ Number::format($country->recipes_with_pdf_count ?? 0) }}
</flux:table.cell>
Expand Down
Loading