@extends('admin.layouts.app') @section('content')
@csrf
{!! $class->name !!}
{!! $class->slug !!}
{!! $class->categories_name ?? "" !!}
{{ $class->elexio_form_embed_code ?? "" }}
@error('elexio_group_id') {!! $message !!} @enderror
{!! $class->description ?? "" !!}
{!! $class->type ?? "" !!}
@if(in_array("Online",$class->typearr))
@if(isset($class->content->name)) {!! $class->content->name !!} @endif
@endif @if(in_array("In Person",$class->typearr))
{!! $class->location ?? "" !!}
@endif
{!! ($class->is_recurring == "1") ? "Yes" : "No" !!}
@if($class->is_recurring == "1")
{!! $class->repeat_at !!}
{!! $class->recurring_start_date ? $class->recurring_start_date->format(config('constants.DISPLAY_DATE_FORMAT')) : "" !!}
{!! $class->recurring_end_date ? $class->recurring_end_date->format(config('constants.DISPLAY_DATE_FORMAT')) : "" !!}
@else
{!! convertUtcToLocal($class->end_date_time,config('constants.DISPLAY_DATE_FORMAT')) !!}
{!! convertUtcToLocal($class->start_date_time,config('constants.DISPLAY_TIME_ZONE_FORMAT')) !!}
{!! convertUtcToLocal($class->end_date_time,config('constants.DISPLAY_TIME_ZONE_FORMAT')) !!}
@endif
@if($class->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
@if($class->products()->count() > 0)
@foreach($class->products as $products) @php $rand = rand(999999,1); @endphp

{!! $products->name !!}

{!! $products->price !!}

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