@extends('layouts.meridian') @section('title', 'Profil Saya') @php $authorRoutePlaceholder = '__author_slug__'; $authorRouteTemplate = route('blog.author', ['slug' => $authorRoutePlaceholder]); $authorBaseUrl = str_replace($authorRoutePlaceholder, '', $authorRouteTemplate); $authorPublicUrl = $user->slug ? route('blog.author', ['slug' => $user->slug]) : $authorBaseUrl.'nama-penulis'; @endphp @push('head') @endpush @section('content')
@csrf @method('PATCH')
Profil Penulis
@if($user->avatar) Foto {{ $user->name }} @else {{ strtoupper(substr($user->name, 0, 1)) }} @endif
URL profil publik {{ $authorPublicUrl }} Slug dibuat otomatis dari nama ketika profil disimpan.
@csrf @method('PUT')
Update Password
@endsection @push('scripts') @endpush