@extends($activeTemplate . 'layouts.bet') @section('bet') @php $banners = getContent('banner.element', false, null, true); $optionsId = collect(session()->get('bets'))->pluck('option_id')->toArray(); @endphp
@if (@$activeLeague && $games->count())
@lang('image') {{ __(@$activeLeague->name) }}
@endif @foreach ($games as $game)
@lang('image') {{ __(@$game->teamOne->short_name) }} @if ($game->isRunning) @lang('Live Now') @else @lang('Starts On') {{ carbonParse($game->bet_start_time, 'd M, h:i') }} @endif @lang('image') {{ __(@$game->teamTwo->short_name) }} @if ($game->questions->count()) @php $firstMarket = $game->questions->first(); $showCount = 4; $more = $game->questions->count() - $showCount; @endphp
{{ $firstMarket->title }} @lang('Markets')
@foreach ($game->questions->take($showCount) as $question)
{{ $question->title }}
@endforeach @if ($more > 0) @endif
@foreach ($firstMarket->options as $option)
{{ $option->name }}
@endforeach
@endif
@endforeach
@if (blank($games))
@lang('image')

@lang('No game available in this category')

@endif
@endsection @push('script') @endpush