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

{{ $user->nama }}'s Profile

Foto Profil

NIM: {{ $user->nim }}

Prodi: {{ $user->prodi }}

Semester: {{ $user->semester }}

WhatsApp: {{ $user->whatsapp }}

Email: {{ $user->email }}

Instagram: {{ $user->instagram ?? 'Tidak ada' }}

Postingan {{ $user->nama }}

@if($user->posts->isEmpty())

Tidak ada postingan yang ditemukan.

@else @foreach($user->posts as $post)
Foto Profil {{ $post->user->nama }}

{{ $post->deskripsi }}

@if($post->foto) Postingan @endif
@csrf
{{ $post->likes->count() }} Likes
@csrf
@foreach($post->comments as $comment)
{{ $comment->user->nama }}: {{ $comment->komentar }}
@endforeach
@endforeach @endif
@endsection