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

Kegiatan Bidang Dakwah

Tambah Kegiatan Baru
@if (session('success')) @endif
@foreach ($activities as $activity)

{{ $activity->title }}

{{ ucfirst($activity->status) }}

{{ Str::limit($activity->description, 100) }}

Program

{{ $activity->program->title }}

@if ($activity->is_featured) Featured @else Not Featured @endif

Learning Paths: {{ $activity->learningPath->count() }}

Detail Edit
@csrf @method('DELETE')
@endforeach
{{ $activities->links() }}
@php $upcomingPrograms = App\Models\Activity::with(['batches']) ->where('status', 'published') ->whereHas('batches', function ($query) { $query->where( 'status', 'aktif', // ->where('tanggal_selesai_pendaftaran', '>=', now()) ); }) ->get(); @endphp

Batch Terbaru

@forelse($upcomingPrograms as $program) @foreach ($program->batches as $batch) @endforeach @empty @endforelse
Poster Program Batch Status Periode Pendaftaran Kuota Harga Link Pendaftaran Aksi
@if ($batch->featured_image)
{{ $batch->title }}
@endif
{{ $program->title }}
Batch {{ $batch->batch_ke }} - {{ $batch->nama_batch }}
{{ ucfirst($batch->status) }}
{{ $batch->tanggal_mulai_pendaftaran->format('d M Y') }} - {{ $batch->tanggal_selesai_pendaftaran->format('d M Y') }}
{{ $batch->kuota }} Rp {{ number_format($batch->harga, 0, ',', '.') }} {{ Str::limit($batch->external_link, 20) }}
{{-- Edit
@csrf @method('DELETE')
--}}
Tidak ada program yang akan datang dalam waktu dekat
@endsection