@extends('includes.master') @section('title', 'Carolina Murgan Temple') @section('style-section') @php $special_events = getWebSyncsData('Flash News', 'flashNews', 'ACTIVE'); $daily_schedules = getWebSyncsData('Daily Schedule', 'dailySchedule', ''); $currentDate = strtotime(date('m/d/Y')); $validEvents = []; foreach ($special_events as $item) { $endDate = strtotime(@$item['endDate']); // Convert end date to Unix timestamp if ($endDate >= $currentDate) { $validEvents[] = $item; // Add valid events to the new array } } $special_events = $validEvents; // Sort the array based on "sequenceId" //usort($special_events, function ($a, $b) { // return $a['sequenceId'] - $b['sequenceId']; // }); // Retrieve the 'daily_events_cart' data from the session $session_data = session('daily_events_cart', ['totalPrice' => 0.0, 'ids' => []]); // dd($session_data); // Calculate $cart_count $cart_count = count($session_data['ids']); // Ensure $cart_count is not an empty string $cart_count = $cart_count !== '' ? $cart_count : 0; // If 'ids' is empty, initialize $session_data with default values if (empty($session_data['ids'])) { $session_data = ['totalPrice' => 0.0, 'ids' => []]; } @endphp @section('content') @include('includes.slider')

TEMPLE SCHEDULE

@foreach ($daily_schedules as $key => $val) @if (isset($val['scheduleType']))
{{ $val['refDataName'] }}
{{ $val['timing'] }}
@endif @endforeach

TODAY'S PANCHANGAM

{{--
--}}

Today's Panchangam

{{--
--}}

TEMPLE SCHEDULES
{{-- --}}

@foreach ($daily_schedules as $key => $val) {{-- @dd($val) --}} @if (isset($val['scheduleType']))
{{ $val['refDataName'] }}
{{ $val['timing'] }}
@endif @endforeach

TODAY'S PANCHANGAM
{{-- --}}

{{ $header_data[0]['refDataName'] }}

Welcome to Carolina Murugan Temple !, Our vision is to build a landmark to bring unique Spiritual, Cultural and Language experience representing World Tamils. Language is the bridge to connecting our generation to the next generation and preserving our identity and culture.This site will have the Lord Murugan Temple, the world tallest Murugan statue, the World Tamil Cultural Museum, and the World Tamil Library to showcase our spiritual, culture, language and tradition.

{{--

The Rajdhani Mandir is more than a place of worship; it symbolizes unity and harmony, gathering people from diverse backgrounds to foster a sense of community. Through its grand architecture, vibrant festivities, and cultural celebration, the Mandir allows individuals to embrace their roots, forge connections, and honor Hindu, Jain, and Buddhist traditions.

--}}
@php // $upcoming_events = upcomingevents()['data']; usort($upcoming_events, function ($a, $b) { $dateA = DateTime::createFromFormat('m/d/Y', $a['startDate']); $dateB = DateTime::createFromFormat('m/d/Y', $b['startDate']); // ascending ordering, use `<=` for descending return $dateA >= $dateB; }); $i = 1; @endphp {{-- @dd($upcoming_events) --}} @if ($upcoming_events)
{{--

Upcoming Events

--}}

Upcoming Events

@foreach ($upcoming_events as $val) {{-- @dd($val) --}} @if (strtotime($val['startDate']) >= strtotime(date('m/d/Y')) || strtotime($val['endDate']) >= strtotime(date('m/d/Y'))) @if ($i < 11)
@php $dateString = $val['startDate']; $date = DateTime::createFromFormat( 'm/d/Y', $dateString, ); $day = $date->format('d'); $month = $date->format('M'); @endphp

{{ $day }}
{{ $month }}

@php $i++; @endphp @endif @endif @endforeach
VIEW MORE
@endif

{{ isset($PROJECT_NAME) ? $PROJECT_NAME : 'Carolina Murugan Temple' }}


In Temple Services

Our Temple’s motto has always been that the Devotee should only have the “WILL” to do the Dharmic activity and concern for the “BILL” should be the least. Due to this practice, many devotees have been developing guilt of short-paying for services. Based on increased demand, the Temple Management has decided to publish list of Suggested Donations for various Pooja Services offered.


Away Temple Services

With Puja Services, finding a Priest is no more a tedious process. Using Puja Services, devotees can avail the services of booking a priest online at their convenience for any kind of Puja, ritual, ceremony and occasion. Puja services simplifies the process of booking a priest very much at ease along with the items required for a Puja as well as the vendors where they could procure the puja materials.

Carolina Murugan Temple Services

{{-- Temple Service Sction 1 --}} @endsection @section('script_area') {{-- --}} @endsection