@extends('layouts.app') @section('title', $community->name) @section('page-title', $community->name) @section('breadcrumb', 'Communities / Details') @section('content')
{{ $community->is_active ? 'Active' : 'Inactive' }} @if($community->requires_approval)Approval Required@endif
@if($community->description)

{{ $community->description }}

@endif

Add Member

@csrf @foreach($learners as $learner) @endforeach

{{ $community->members->count() }} members

@foreach($community->members->take(10) as $member)

{{ $member->name }}

@endforeach

Posts

@csrf
@forelse($community->posts as $post)
@if($post->title)

{{ $post->title }}

@endif

{{ $post->user?->name }} ยท {{ $post->created_at->diffForHumans() }}

@csrf @method('DELETE')

{{ $post->body }}

@empty

No posts yet

@endforelse
@endsection