@extends('layouts.app') @section('title', 'My Profile') @section('content')
{{-- ── Top row ── --}}

My Profile

Account Information

@if(auth()->check() && auth()->id() === $user->id) Edit Profile @endif
{{-- ── Main card ── --}}
{{-- Success Message --}} @if(session('success'))

{{ session('success') }}

@endif {{-- ── Section: Basic Information ── --}}
Basic Information
{{-- Full Name --}}
Full Name
{{ $user->name }}
{{-- Email --}}
Email
{{ $user->email }}
{{-- Role --}}
Role
@php $roleType = $user->role; if ($roleType === 'admin') $badgeClass = 'profile-badge-admin'; elseif ($roleType === 'student') $badgeClass = 'profile-badge-student'; else $badgeClass = 'profile-badge-other'; @endphp {{ ucfirst(str_replace('_', ' ', $user->role)) }}
{{-- /basic grid --}} {{-- ── Section: Student Information (single, merged) ── --}} @if($user->role === 'student' && $user->student)
Student Information
{{-- Student Photo --}}
Student Photo
@if($user->student->photo) Student Photo @else
No Photo
@endif
{{-- Roll Number --}}
Roll Number
{{ $user->student->roll_no ?? '—' }}
{{-- Mobile --}}
Mobile Number
{{ $user->student->mobile ?? '—' }}
{{-- Gender --}}
Gender
{{ ucfirst($user->student->gender ?? '—') }}
{{-- Trade --}}
Trade
{{ ucfirst($user->student->trade ?? '—') }}
{{-- Shift --}}
Shift
{{ ucfirst($user->student->shift ?? '—') }}
{{-- /student grid --}} {{-- Address --}}
Address
{{ $user->student->address ?? '—' }}
@endif {{-- /student section --}}
{{-- ── Section: Account Information ── --}}
Account Information
Member Since
{{ $user->created_at->format('d M Y') }}
Last Updated
{{ $user->updated_at->format('d M Y, H:i A') }}
{{-- /card-body --}}
{{-- /card --}}
{{-- /wrap --}} @endsection