@extends('admin.layouts.app') @section('content')
@csrf
{!! $event->name !!}
{!! $event->slug !!}
{!! $event->categories_name ?? "" !!}
{!! $event->video_link ?? "" !!}
{!! $event->chat_embed_url ?? "" !!}
{{ $event->elexio_form_embed_code ?? "" }}
@error('elexio_group_id') {!! $message !!} @enderror
{{ $event->eventbrite_id ?? "" }}
{!! $event->description ?? "" !!}
{!! $event->type ?? "" !!}
@if(in_array("Online",$event->typearr))
@if(isset($event->content->name)) {!! $event->content->name !!} @endif
@endif @if(in_array("In Person",$event->typearr))
{!! $event->location ?? "" !!}
@endif
{!! ($event->is_recurring == "1") ? "Yes" : "No" !!}
@if($event->is_recurring == "1")
{!! $event->repeat_at !!}
{!! $event->recurring_start_date ? $event->recurring_start_date->format(config('constants.DISPLAY_DATE_FORMAT')) : "" !!}
{!! $event->recurring_end_date ? $event->recurring_end_date->format(config('constants.DISPLAY_DATE_FORMAT')) : "" !!}
@else
{!! convertUtcToLocal($event->end_date_time,config('constants.DISPLAY_DATE_FORMAT')) !!}
{!! convertUtcToLocal($event->start_date_time,config('constants.DISPLAY_TIME_ZONE_FORMAT')) !!}
{!! convertUtcToLocal($event->end_date_time,config('constants.DISPLAY_TIME_ZONE_FORMAT')) !!}
@endif
@if($event->is_recurring == "1")
@if(isset($data['recurrence_at']) && @count(@$data['recurrence_at']) > 0) @foreach($data['recurrence_at'] as $recurrence_at)

{!! $recurrence_at !!}

@endforeach @endif
@endif
{!! $event->notes ?? "" !!}
@if($event->video_link)
@endif
@if($event->products()->count() > 0)
@foreach($event->products as $products) @php $rand = rand(999999,1); @endphp

{!! $products->name !!}

{!! $products->price !!}

@endforeach
@endif
@if($event->is_hide_end_date_time) Yes @else No @endif
@if($event->is_private) Yes @else No @endif
@if($event->is_active) Active @else Inactive @endif
{!! convertUtcToLocal($event->created_at,config('constants.DISPLAY_DATE_TIME_ZONE_FORMAT')) !!}
{!! @$event->createdBy->name !!}
@if($event->updated_by != "")
{!! convertUtcToLocal($event->updated_at,config('constants.DISPLAY_DATE_TIME_ZONE_FORMAT')) !!}
{!! @$event->updatedBy->name !!}
@endif
@endsection