Image
  • {{--
    @if (Auth::check() && Auth::user()->avatar) avatar @else avatar @endif
    --}} {{-- image avatar null hoile initails text show kore --}}
    @if (Auth::check() && Auth::user()->avatar) avatar @else
    @php $name = Auth::user()->name ?? 'Admin'; $words = explode(' ', $name); $initials = ''; foreach ($words as $w) { $initials .= $w[0]; } echo strtoupper(substr($initials, 0, 2)); @endphp
    @endif
    {{ auth()->user()->name ?? 'Admin' }}
    View my profile
    • Edit Profile
    • @csrf