@extends('admin.layouts.app') @section('content')

Edit Activity: {{ $activity->title }}

Edit activity information and content

@csrf @method('PUT')

Basic Information

@error('program_id')

{{ $message }}

@enderror
@error('status')

{{ $message }}

@enderror
@error('title')

{{ $message }}

@enderror
@error('description')

{{ $message }}

@enderror
@error('overview')

{{ $message }}

@enderror
@if ($activity->featured_image)
Current featured image
@endif @error('featured_image')

{{ $message }}

@enderror

Learning Paths

@if ($activity->learningPath->count() > 0)
@foreach ($activity->learningPath as $path)

{{ $path->title }}

{{ $path->description }}

@endforeach
@else

No learning paths. Add the first learning path.

@endif

Highlights

@if ($activity->highlights->count() > 0)
@foreach ($activity->highlights as $highlight)

{{ $highlight->title }}

{{ $highlight->description }}

@endforeach
@else

No highlights. Add the first highlight.

@endif

Testimonials

@if ($activity->testimonials->count() > 0)
@foreach ($activity->testimonials as $testimonial)

{{ $testimonial->name }}

{{ $testimonial->content }}

@endforeach
@else

No testimonials. Add the first testimonial.

@endif

Gallery

@if ($activity->gallery->count() > 0)
@foreach ($activity->gallery as $image)
{{-- {{ $image->caption }}
@endforeach
@else

No images. Add the first image.

@endif

FAQs

@if ($activity->faqs->count() > 0)
@foreach ($activity->faqs as $faq)

{{ $faq->question }}

{{ $faq->answer }}

@endforeach
@else

No FAQs. Add the first FAQ.

@endif
@push('scripts') @endpush @endsection