fix: fixes artwork count on podcasts index page
This commit is contained in:
parent
b8d1a164f1
commit
0183275a7a
@ -21,7 +21,7 @@ public function show(Request $request, $slug)
|
|||||||
$episodes = Episode::where('published', true)
|
$episodes = Episode::where('published', true)
|
||||||
->whereNotNull('artwork_id')
|
->whereNotNull('artwork_id')
|
||||||
->with('artwork')
|
->with('artwork')
|
||||||
->with('artworks')
|
->with('approvedArtworks')
|
||||||
->where('podcast_id', $podcast->id)
|
->where('podcast_id', $podcast->id)
|
||||||
->orderBy('episode_number', 'desc')->paginate(100);
|
->orderBy('episode_number', 'desc')->paginate(100);
|
||||||
$podcasts = Podcast::where('published', true)->with('episodes')->get();
|
$podcasts = Podcast::where('published', true)->with('episodes')->get();
|
||||||
|
@ -70,7 +70,7 @@ class="avatar" data-bs-toggle="tooltip"
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="action-wrapper py-1 mb-1 d-flex-between">
|
<div class="action-wrapper py-1 mb-1 d-flex-between">
|
||||||
<span class="bid-owner">{{ number_format($episode->artworks->count()) }} Artworks Submitted</span>
|
<span class="bid-owner">{{ number_format($episode->approvedArtworks->count()) }} Artworks Submitted</span>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user