diff --git a/resources/views/welcome.blade.php b/resources/views/welcome.blade.php index 0c2bc01a..85b95b4d 100644 --- a/resources/views/welcome.blade.php +++ b/resources/views/welcome.blade.php @@ -248,68 +248,80 @@ class="absolute inset-0 bg-gradient-to-br from-gradient-purple to-gradient-pink
- @if(\App\Models\Sponsorship::find(1)->companies->count() > 0) + @if(\App\Models\Sponsorship::find(1)->companies()->where('is_sponsorship_approved', true)->count() > 0)

Gold sponsor

@foreach(\App\Models\Sponsorship::find(1)->companies as $company) - + @if($company->is_sponsorship_approved) + + @endif @endforeach
@endif - @if(\App\Models\Sponsorship::find(2)->companies->count() > 0) + @if(\App\Models\Sponsorship::find(2)->companies()->where('is_sponsorship_approved', true)->count() > 0)

Silver sponsor

@foreach(\App\Models\Sponsorship::find(2)->companies as $company) - + @if($company->is_sponsorship_approved) + + @endif @endforeach
@endif - @if(\App\Models\Sponsorship::find(3)->companies->count() > 0) + @if(\App\Models\Sponsorship::find(3)->companies()->where('is_sponsorship_approved', true)->count() > 0)

Bronze sponsor

@foreach(\App\Models\Sponsorship::find(3)->companies as $company) - + @if($company->is_sponsorship_approved) + + @endif @endforeach