@props(['trader']) @php $profitShare = rtrim(rtrim(number_format((float) $trader->profit_share, 2, '.', ''), '0'), '.'); // Mirrors the controller cap, which is clamped to PHP's upload limit. $photoMaxKb = \App\Support\PublicStorage::maxUploadKb(5120); $photoMaxLabel = $photoMaxKb >= 1024 ? round($photoMaxKb / 1024, 1).' MB' : $photoMaxKb.' KB'; @endphp
@csrf @method('PUT')

Update expert trader

Profile photo
@if ($trader->photoUrl()) @else @endif
JPG, PNG, or WebP — max {{ $photoMaxLabel }}. Leave empty to keep the current photo.
@error('photo') {{ $message }} @enderror @if ($trader->photoUrl()) @endif