@extends('layouts.app') @section('title', "User Profile - {$user->name}") @section('content')
{{-- Info Card --}}
@if($user->avatar) Avatar @else
{{ strtoupper(substr($user->name, 0, 1)) }}
@endif

{{ $user->name }}

{{ $user->email }}

@if($user->bio)

{{ $user->bio }}

@endif {{-- زر للرجوع لصفحة كل اليوزرز --}} ← Back to Users {{-- زر Ban User (لسه هنوصلّه بعدين) --}} {{--
@csrf
--}}
{{-- Posts --}}
User Posts
@forelse($posts as $post)
{{ $post->title }}

{{ $post->created_at->diffForHumans() }}

{{ \Illuminate\Support\Str::limit($post->content, 200) }}

{{-- الأدمن يقدر يحذف البوست من هنا برضه --}}
@csrf @method('DELETE')
@empty

This user has no posts.

@endforelse
@endsection