@extends('layouts.vpm-dashboard', ['active' => 'account', 'area' => 'user'])
@section('title', 'Profile photo')
@section('page_title', 'Profile photo')
@section('page_subtitle', 'Upload or remove your profile picture')
@section('parent_title', 'Account')
@section('parent_url', route('app.account'))
@section('content')
@include('app.account._back')
@php
// Mirrors the controller cap, which is clamped to PHP's upload limit.
$photoMaxKb = \App\Support\PublicStorage::maxUploadKb(4096);
$photoMaxLabel = $photoMaxKb >= 1024
? round($photoMaxKb / 1024, 1).' MB'
: $photoMaxKb.' KB';
@endphp
@if ($user->profilePhotoUrl())
 }})
@else
{{ $user->initials() }}
@endif
@if ($user->profile_photo_path)
@endif
@endsection