@extends('user.layouts.app') @section('body_class', 'home') @section('content')
@if($banner && $banner->video) @endif
@if($banner && $banner->images->count()) @foreach($banner->images as $image)
Slide {{ $loop->iteration }}
@endforeach @endif
@php use Carbon\Carbon; $now = Carbon::now('Asia/Kolkata'); $isLoggedIn = Auth::check(); $visibleTickers = collect($tickers)->filter(function ($ticker) use ($now, $isLoggedIn) { $title = trim((string) ($ticker->title ?? '')); if ($title === '') { return false; } $start = Carbon::parse($ticker->start_date_time, 'Asia/Kolkata'); $end = Carbon::parse($ticker->end_date_time, 'Asia/Kolkata'); $isInWindow = $now->between($start, $end); if (!$isInWindow) { return false; } if ($isLoggedIn) { return in_array($ticker->visibility, ['public', 'private'], true); } return $ticker->visibility === 'public'; })->values(); @endphp @if($visibleTickers->isNotEmpty()) @endif

Club Tour

@auth

Facilities

Upcoming & Recent Events

@if(!empty($upcoming_events[0]))
@foreach($upcoming_events as $event) @if($event->file_name) @endif @endforeach
@else
No Upcoming and Recent Events Found!
@endif
{{--

Events Calendar

@if($events->isNotEmpty()) @else
No Data Found!
@endif
--}} @endauth
@if(!empty($contactInfo))
The Tollygunge Club Pvt. Ltd.

{{ $contactInfo->address }}

@endif
@if($welcomeNotices->count()) @endif {{--@if($welcomeNotices->count())
@foreach($welcomeNotices as $notice)
@if($notice->image) @endif
{!! $notice->description !!} @if($notice->link) @endif
@endforeach
@endif --}} @endsection @section('footer') @endsection @push('scripts') @endpush