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

Community Details

Community ({{ ucwords($data->type)}})

Type: @switch($data->type) @case('parent') @break @case('teacher') @break @default @endswitch

Status: @switch($data->status) @case('0') @break @case('1') @break @case('2') @break @default @endswitch

Name: {{ $data->name }}

Email: {{ $data->email }}

Phone: {{ $data->phone }}

Amount: {{ $data->amount }}

Membership: {{ $data->membership }}

@csrf

Created at: {{ \Carbon\Carbon::parse($data->created_at)->setTimezone('Asia/Karachi')->toDateTimeString() }}

@if($data->type == 'parent')

Community Member's

@foreach($data->communityMember as $key => $cm) @endforeach
Name Email Phone Type Grade
{{ $cm->name }} {{ $cm->email }} {{ $cm->phone }} {{ $cm->type }} {{ $cm->grade ?? '-' }}
@endif
@endsection