@extends('frontend.layouts.master') @section('title') Home @endsection @section('content') @php $banner_bg = ""; if($banner != null){ $banner_bg = 'style="background-image:url('.asset($banner->value).')"'; } @endphp

{{ get_page_settings('sweep_heading', \App\Models\PageSettings::HOME) ?? 'Enter Our Sweepstakes!' }}

{{ get_page_settings('sweep_description', \App\Models\PageSettings::HOME) }}

Enter Now

Our Services

GC7 Games
Tournament Games
FREE GAMES & LUCKY WHEEL
@if(get_page_settings_images('service_background', \App\Models\PageSettings::HOME) != null)
@endif
@canany(['View GameLinks', 'View GC7 Games', 'View Tournament Games', 'View Free Games', 'View Ruby Tournament Games','View Wheel', 'View Bingo Balls']) @if($gameCategories != null)

Games

@php $delay = 0; $permissions = [ 'View GameLinks' => \App\Models\Game::GAME_TYPE_EXTERNAL, 'View GC7 Games' => \App\Models\Game::GAME_TYPE_DEFAULT, 'View Tournament Games' => \App\Models\Game::GAME_TYPE_TOURNAMENT, 'View Ruby Tournament Games' => \App\Models\Game::GAME_TYPE_RUBY_TOURNAMENT, 'View Free Games' => \App\Models\Game::GAME_TYPE_FREE, 'View Wheel' => \App\Models\Game::GAME_TYPE_LUCKYWHEELS, 'View Bingo Balls' => \App\Models\Game::GAME_TYPE_BINGOBALLS ]; $firstAccessibleGame = null; @endphp @foreach($gameCategories as $key => $game) @php // Get the permission name based on the category $permission = array_search($key, $permissions); @endphp @can($permission) @if (!$firstAccessibleGame) @php $firstAccessibleGame = true; $activeClass = 'active'; @endphp @else @php $activeClass = ''; @endphp @endif

{{$game}}

@endcan @php $delay += 200; @endphp @endforeach
{{-- @if($defaultGames != null && $defaultGames->count() > 0) --}}
{{-- @php $loopIteration = 0; @endphp @foreach($defaultGames as $game) @php $flip = 'flip-up'; $delay = 400; if($loopIteration == 0){ $flip = 'flip-right'; $delay = 200; } $link = $game->game_url; if(!auth()->check()){ $link = route('login'); } @endphp
frame
id}} class="btn btn-white play-game">Play Now

{{$game->digitalAsset->name}}

{{ $game->title }}

@php $loopIteration++; @endphp @endforeach --}}
{{-- @else

No Games Found!

@endif --}}
View All Games Read About Us
@endif @endcanany @if(!auth()->check()) @if($gameCategories != null)

Games

@php $delay = 0; @endphp @foreach($gameCategories as $key => $game)

{{$game}}

@php $delay += 200; @endphp @endforeach
{{-- @if($defaultGames != null && $defaultGames->count() > 0) --}}
{{-- @php $loopIteration = 0; @endphp @foreach($defaultGames as $game) @php $flip = 'flip-up'; $delay = 400; if($loopIteration == 0){ $flip = 'flip-right'; $delay = 200; } $link = $game->game_url; if(!auth()->check()){ $link = route('login'); } @endphp
frame
id}} class="btn btn-white play-game">Play Now

{{$game->digitalAsset->name}}

{{ $game->title }}

@php $loopIteration++; @endphp @endforeach --}}
{{-- @else

No Games Found!

@endif --}}
View All Games Read About Us
@endif @endif @if($storeItems != null)

GC7 Store

@php $delay = 0; @endphp @foreach($storeItems as $item) @php if(auth()->check()){ $url = url('/market-place/asset/'.encrypt($item->id).'/checkout'); }else{ $url = route('login'); } @endphp
{{$item->name}}
Buy Now! @if($item->description != NULL) Read Info @endif
@if($item->freeItems->isNotEmpty()) {{-- @foreach($item->freeItems as $freeItem)

{{ $freeItem->free_item_quantity }} x {{ $freeItem->freeItem->name }}

@endforeach --}}

Free items on purchase of {{ $item->item_quantity_for_free_item }}

@else

No Free Items Available

@endif

{{ $item->name }}

${{ $item->price }}
@php if($loop->iteration % 4 == 0){ $delay = 0; } else{ $delay += 200; } @endphp @endforeach
@endif @endsection @section('script') @endsection