@extends('frontend.layout') @section('pageHeading') {{ $content->title }} @endsection @php $og_title = $content->title; $og_description = strip_tags($content->description); $og_image = asset('assets/admin/img/event/thumbnail/' . $content->thumbnail); @endphp @section('meta-keywords', "{{ $content->meta_keywords }}") @section('meta-description', "$content->meta_description") @section('og-title', "$og_title") @section('og-description', "$og_description") @section('og-image', "$og_image") @section('custom-style') @endsection @section('hero-section')
@endsection @section('content') @php $map_address = preg_replace('/\s+/u', ' ', trim($content->address)); $map_address = str_replace('/', ' ', $map_address); $map_address = str_replace('?', ' ', $map_address); $map_address = str_replace(',', ' ', $map_address); @endphp
@php if ($content->date_type == 'multiple') { $event_date = eventLatestDates($content->id); $date = strtotime(@$event_date->start_date); } else { $date = strtotime($content->start_date); } @endphp @if ($content->date_type != 'multiple')
{{ \Carbon\Carbon::parse($date)->translatedFormat('M') }}
{{ \Carbon\Carbon::parse($date)->translatedFormat('d') }}
@endif
@php if ($content->date_type == 'multiple') { $event_date = eventLatestDates($content->id); $startDateTime = @$event_date->start_date_time; $endDateTime = @$event_date->end_date_time; //for multiple get last end date $last_end_date = eventLastEndDates($content->id); $last_end_date = $last_end_date->end_date_time; $now_time = \Carbon\Carbon::now()->translatedFormat('Y-m-d H:i:s'); } else { $now_time = \Carbon\Carbon::now()->translatedFormat('Y-m-d H:i:s'); $startDateTime = $content->start_date . ' ' . $content->start_time; $endDateTime = $content->end_date . ' ' . $content->end_time; } $over = false; @endphp @if ($content->date_type == 'single' && $content->countdown_status == 1)
@if ($startDateTime >= $now_time)

{{ $content->title }} {{ __('Upcoming') }}

@elseif ($startDateTime <= $endDateTime && $endDateTime >= $now_time)

{{ $content->title }} {{ __('Running') }}

@else @php $over = true; @endphp

{{ $content->title }} {{ __('Over') }}

@endif
@elseif ($content->date_type == 'multiple')

{{ $content->title }} @if ($startDateTime >= $now_time) {{ __('Upcoming') }} @elseif ($startDateTime <= $last_end_date && $last_end_date >= $now_time) {{ __('Running') }} @else @php $over = true; @endphp {{ __('Over') }} @endif

@else

{{ $content->title }}

@endif
  • {{ \Carbon\Carbon::parse($date)->translatedFormat('D, dS M Y') }}
  • {{ $content->date_type == 'multiple' ? @$event_date->duration : $content->duration }}
  • @if ($content->event_type == 'venue')
  • @if ($content->city != null) {{ $content->city }} @endif @if ($content->state) , {{ $content->state }} @endif @if ($content->country) , {{ $content->country }} @endif
  • @else
  • {{ __('Online') }}
  • @endif
@foreach ($images as $item) Event Details @endforeach
@if (Auth::guard('customer')->check()) @php $customer_id = Auth::guard('customer')->user()->id; $event_id = $content->id; $checkWishList = checkWishList($event_id, $customer_id); @endphp @else @php $checkWishList = false; @endphp @endif @if ($content->event_type != 'online') @endif
@if (Session::has('paypal_error'))
{{ Session::get('paypal_error') }}
@endif @php Session::put('paypal_error', null); @endphp

{{ __('Description') }}

{!! $content->description !!}
@if ($content->event_type != 'online')

{{ __('Map') }}

@endif @if (!empty($content->refund_policy))

{{ __('Return Policy') }}

{{ @$content->refund_policy }}

@endif
@if (!empty(showAd(3)))
{!! showAd(3) !!}
@endif
@if (count($related_events) > 0)

{{ __('Related Events') }}

@endif
@endsection @section('modals') @includeIf('frontend.partials.modals') @endsection